forked from danhper/python-i18n
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix links on PyPI * bump version
- Loading branch information
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
@@ -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, | ||
|