Skip to content

Commit

Permalink
Fix links on PyPI (#19)
Browse files Browse the repository at this point in the history
* fix links on PyPI

* bump version
  • Loading branch information
solaluset authored Aug 15, 2023
1 parent 16f0a9c commit a4094b3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import re
from urllib.parse import urljoin

from setuptools import setup

Expand All @@ -9,21 +8,21 @@
# links on PyPI should have absolute URLs
long_description = re.sub(
r"(\[[^\]]+\]\()((?!https?:)[^\)]+)(\))",
lambda m: m.group(1) + urljoin(GITHUB_URL, "blob/master/" + m.group(2)) + m.group(3),
lambda m: m.group(1) + GITHUB_URL + "/blob/master/" + m.group(2) + m.group(3),
long_description,
)

setup(
name='i18nice',
version='0.9.0',
version='0.9.1',
description='Translation library for Python',
long_description=long_description,
long_description_content_type='text/markdown',
author='Daniel Perez',
author_email='[email protected]',
maintainer="Krutyi 4el",
url=GITHUB_URL,
download_url=urljoin(GITHUB_URL, "archive/master.zip"),
download_url=GITHUB_URL + "/archive/master.zip",
license='MIT',
packages=['i18n', 'i18n.loaders'],
zip_safe=True,
Expand Down

0 comments on commit a4094b3

Please sign in to comment.