1 Star 0 Fork 0

XY.LongzzZ/chardet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
johnthagen 提交于 2020-12-16 12:20 . Remove reference to Python 2 (#212)
from setuptools import find_packages, setup
# Get version without importing, which avoids dependency issues
def get_version():
import re
with open("chardet/version.py") as version_file:
return re.search(
r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""", version_file.read()
).group("version")
def readme():
with open("README.rst") as f:
return f.read()
setup(
name="chardet",
version=get_version(),
description="Universal encoding detector for Python 3",
long_description=readme(),
author="Mark Pilgrim",
author_email="mark@diveintomark.org",
maintainer="Daniel Blanchard",
maintainer_email="dan.blanchard@gmail.com",
url="https://github.com/chardet/chardet",
license="LGPL",
keywords=["encoding", "i18n", "xml"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
],
packages=find_packages(),
python_requires=">=3.6",
entry_points={"console_scripts": ["chardetect = chardet.cli.chardetect:main"]},
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/XYLongzzZ/chardet.git
git@gitee.com:XYLongzzZ/chardet.git
XYLongzzZ
chardet
chardet
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385