forked from rspeer/python-ftfy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (52 loc) · 1.85 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import sys
# Before we get to the rest of setup, with dependencies on setuptools and the
# Python 3 standard library, let's make sure we're not on Python 2 and provide
# a helpful message if we are.
PY2_MESSAGE = "Python 2 is no longer supported. Please upgrade."
if sys.version_info[0] < 3:
print(PY2_MESSAGE)
readable_version = sys.version.split(' ')[0]
print("The version of Python you're running is: %s" % readable_version)
print("Python is running from: %r" % sys.executable)
sys.exit(1)
from setuptools import setup
DESCRIPTION = open('README.md', encoding='utf-8').read()
setup(
name="ftfy",
version='6.0.2',
maintainer='Robyn Speer',
maintainer_email='[email protected]',
license="MIT",
url='http://github.com/rspeer/python-ftfy',
platforms=["any"],
description="Fixes some problems with Unicode text after the fact",
long_description=DESCRIPTION,
long_description_content_type='text/markdown',
packages=['ftfy', 'ftfy.bad_codecs'],
install_requires=['wcwidth'],
tests_require=['pytest'],
python_requires='>=3.6',
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Filters",
"Development Status :: 5 - Production/Stable"
],
entry_points={
'console_scripts': [
'ftfy = ftfy.cli:main'
]
},
extras_require={
"docs": ["furo", "sphinx"]
},
project_urls={
'Documentation': 'http://ftfy.readthedocs.io',
}
)