Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
specified utf-8 encoding for HISTORY.rst
- Loading branch information
1 parent
78b5c04
commit e14655b
Showing
1 changed file
with
59 additions
and
59 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,59 +1,59 @@ | ||
import re | ||
from setuptools import setup, find_packages | ||
|
||
__version__ = re.search(r"__version__.*\s*=\s*[']([^']+)[']", | ||
open('dateparser/__init__.py').read()).group(1) | ||
|
||
introduction = re.sub(r':members:.+|..\sautomodule::.+|:class:|:func:|:ref:', | ||
'', open('docs/introduction.rst', encoding='utf-8').read()) | ||
history = re.sub(r':mod:|:class:|:func:', '', open('HISTORY.rst').read()) | ||
|
||
test_requirements = open('tests/requirements.txt').read().splitlines() | ||
|
||
setup( | ||
name='dateparser', | ||
version=__version__, | ||
description='Date parsing library designed to parse dates from HTML pages', | ||
long_description=introduction + '\n\n' + history, | ||
author='Scrapinghub', | ||
author_email='info@scrapinghub.com', | ||
url='https://github.com/scrapinghub/dateparser', | ||
project_urls={ | ||
'History': 'https://dateparser.readthedocs.io/en/latest/history.html', | ||
}, | ||
packages=find_packages(exclude=('tests', 'tests.*')), | ||
include_package_data=True, | ||
install_requires=[ | ||
'python-dateutil', | ||
'pytz', | ||
# https://bitbucket.org/mrabarnett/mrab-regex/issues/314/import-error-no-module-named | ||
'regex !=2019.02.19,!=2021.8.27', | ||
'tzlocal', | ||
], | ||
entry_points={ | ||
'console_scripts': ['dateparser-download = dateparser_cli.cli:entrance'], | ||
}, | ||
extras_require={ | ||
'calendars:python_version<"3.6"': ['convertdate'], | ||
'calendars:python_version>="3.6"': ['hijri-converter', 'convertdate'], | ||
'fasttext': ['fasttext'], | ||
'langdetect': ['langdetect'], | ||
}, | ||
license="BSD", | ||
zip_safe=False, | ||
keywords='dateparser', | ||
python_requires='>=3.5', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
], | ||
) | ||
import re | ||
from setuptools import setup, find_packages | ||
|
||
__version__ = re.search(r"__version__.*\s*=\s*[']([^']+)[']", | ||
open('dateparser/__init__.py').read()).group(1) | ||
|
||
introduction = re.sub(r':members:.+|..\sautomodule::.+|:class:|:func:|:ref:', | ||
'', open('docs/introduction.rst', encoding='utf-8').read()) | ||
history = re.sub(r':mod:|:class:|:func:', '', open('HISTORY.rst',encoding='utf-8').read()) | ||
|
||
test_requirements = open('tests/requirements.txt').read().splitlines() | ||
|
||
setup( | ||
name='dateparser', | ||
version=__version__, | ||
description='Date parsing library designed to parse dates from HTML pages', | ||
long_description=introduction + '\n\n' + history, | ||
author='Scrapinghub', | ||
author_email='info@scrapinghub.com', | ||
url='https://github.com/scrapinghub/dateparser', | ||
project_urls={ | ||
'History': 'https://dateparser.readthedocs.io/en/latest/history.html', | ||
}, | ||
packages=find_packages(exclude=('tests', 'tests.*')), | ||
include_package_data=True, | ||
install_requires=[ | ||
'python-dateutil', | ||
'pytz', | ||
# https://bitbucket.org/mrabarnett/mrab-regex/issues/314/import-error-no-module-named | ||
'regex !=2019.02.19,!=2021.8.27', | ||
'tzlocal', | ||
], | ||
entry_points={ | ||
'console_scripts': ['dateparser-download = dateparser_cli.cli:entrance'], | ||
}, | ||
extras_require={ | ||
'calendars:python_version<"3.6"': ['convertdate'], | ||
'calendars:python_version>="3.6"': ['hijri-converter', 'convertdate'], | ||
'fasttext': ['fasttext'], | ||
'langdetect': ['langdetect'], | ||
}, | ||
license="BSD", | ||
zip_safe=False, | ||
keywords='dateparser', | ||
python_requires='>=3.5', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
], | ||
) |