Skip to content

Commit

Permalink
Fix a bunch of URLs
Browse files Browse the repository at this point in the history
- it's pypi.org not pypy.org
- rtfd doesn't serve docs out of its main domain (which makes sense
  since docs can contain arbitrary JS)
- add the doc and issues to the project URLs
  • Loading branch information
masklinn committed Nov 26, 2024
1 parent 7e040fd commit b9adc08
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ on:

env:
ENVNAME: ${{ github.event_name == 'release' && 'pypi' || 'testpypi' }}
ENVURL: https://${{ github.event_name != 'release' && 'test.' || '' }}pypy.org/p/ua-parser

jobs:
release:
runs-on: ubuntu-latest

environment:
name: ${{ github.event_name == 'release' && 'pypi' || 'testpypi' }}
url: https://${{ github.event_name != 'release' && 'test.' || '' }}pypy.org/p/ua-parser
url: https://${{ github.event_name != 'release' && 'test.' || '' }}pypi.org/p/ua-parser

permissions:
id-token: write
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Build Status
:alt: CI on the master branch

.. image:: https://readthedocs.org/projects/uap-python/badge/?version=latest
:target: https://readthedocs.org/project/uap-python/en/latest/
:target: https://uap-python.readthedocs.io/en/latest/
:alt: Documentation Status

Installing
Expand Down Expand Up @@ -42,7 +42,7 @@ ua-parser supports CPython 3.9 and newer, recent pypy (supporting
See `builtin resolvers`_ for more explanation of the tradeoffs
between the different options.

.. _builtin resolvers: https://readthedocs.org/ua-parser/uap-python/guides#builtin-resolvers
.. _builtin resolvers: https://uap-python.readthedocs.io/en/latest/guides.html#builtin-resolvers

Quick Start
-----------
Expand Down Expand Up @@ -114,4 +114,4 @@ Upgrading
Upgrading from 0.x? See `the upgrade guide`_.
.. _the upgrade guide: https://readthedocs.org/ua-parser/uap-python/advanced/migration
.. _the upgrade guide: https://uap-python.readthedocs.io/en/latest/advanced/migration.html
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ build-backend = "setuptools.build_meta"
[project]
name = "ua-parser"
description = "Python port of Browserscope's user agent parser"
version = "1.0.0a1"
version = "1.0.0a2"
readme = "README.rst"
requires-python = ">=3.9"
dependencies = ["ua-parser-builtins"]

license = {text = "Apache 2.0"}
urls = {repository = "https://github.com/ua-parser/uap-python"}

authors = [
{ name = "Stephen Lamm", email = "[email protected]"},
Expand Down Expand Up @@ -44,6 +43,11 @@ classifiers = [
# "Programming Language :: Python :: Implementation :: GraalPy",
]

[project.urls]
documentation = "https://uap-python.readthedocs.io"
repository = "https://github.com/ua-parser/uap-python"
issues = "https://github.com/ua-parser/uap-python/issues"

[project.optional-dependencies]
yaml = ["PyYaml"]
re2 = ["google-re2"]
Expand Down

0 comments on commit b9adc08

Please sign in to comment.