/
niceSOFT
/
python3-charset-normalizer
Обзор
Документация
Войти
/
niceSOFT
/
python3-charset-normalizer
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.0.8
setup.py
85 строк
3 KB
TAHRI Ahmed R
:wrench: Add project_urls in setup.py (#99)
14 сен 2021, 22:32
Не верифицирован
14 сен 2021, 22:32
2404237
Код
Авторство
О чём код?
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os from re import search from setuptools import find_packages, setup def get_version(): with open('charset_normalizer/version.py') as version_file: return search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""", version_file.read()).group('version') # Package meta-data. NAME = 'charset-normalizer' DESCRIPTION = 'The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.' URL = 'https://github.com/ousret/charset_normalizer' EMAIL = 'ahmed.tahri@cloudnursery.dev' AUTHOR = 'Ahmed TAHRI @Ousret' REQUIRES_PYTHON = '>=3.5.0' VERSION = get_version() REQUIRED = [] EXTRAS = { 'unicode_backport': ['unicodedata2'] } here = os.path.abspath(os.path.dirname(__file__)) try: with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: long_description = '\n' + f.read() except FileNotFoundError: long_description = DESCRIPTION setup( name=NAME, version=VERSION, description=DESCRIPTION, long_description=long_description.replace(':heavy_check_mark:', '✅'), long_description_content_type='text/markdown', author=AUTHOR, author_email=EMAIL, python_requires=REQUIRES_PYTHON, url=URL, keywords=['encoding', 'i18n', 'txt', 'text', 'charset', 'charset-detector', 'normalization', 'unicode', 'chardet'], packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]), install_requires=REQUIRED, extras_require=EXTRAS, include_package_data=True, package_data={"charset_normalizer": ["py.typed"]}, license='MIT', entry_points={ 'console_scripts': [ 'normalizer = charset_normalizer.cli.normalizer:cli_detect' ] }, classifiers=[ 'License :: OSI Approved :: MIT License', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Operating System :: OS Independent', 'Programming Language :: Python', '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 :: 3.10', 'Topic :: Text Processing :: Linguistic', 'Topic :: Utilities', 'Programming Language :: Python :: Implementation :: PyPy', 'Typing :: Typed' ], project_urls={ 'Bug Reports': 'https://github.com/Ousret/charset_normalizer/issues', 'Documentation': 'https://charset-normalizer.readthedocs.io/en/latest', }, )