-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (51 loc) · 1.84 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
#!/usr/bin/env python
# 2021-02-08 I found it is bad for many pipy packages name has been used but never update.
# doc: https://packaging.python.org/tutorials/packaging-projects/
# python3 setup.py sdist bdist_wheel
# python3 -m twine upload --repository testpypi dist/fs2-0.0.2*
# python3 -m pip install --index-url https://test.pypi.org/simple/ fs2==0.0.2
from setuptools import setup, find_packages
with open("fs2/_version.py") as f:
exec(f.read())
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: System :: Filesystems",
]
REQUIREMENTS = ["setuptools", "click", 'fs']
# CONSOLE_SCRIPTS = ['fs2 = fs2.fs2:fs2'] # failed
CONSOLE_SCRIPTS_STR = '''
[console_scripts]
fs2=fs2:fs2
'''
setup(
author="pythonwood",
author_email="58223837@qq.com",
# classifiers=CLASSIFIERS,
description="A cmd tool based on pyfilesystem2 lib",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=REQUIREMENTS,
extras_require={
":python_version < '3.6'": ["typing~=3.6"],
},
license="MIT",
name="fs2",
packages=find_packages(exclude=("tests",)),
package_data={"fs": ["py.typed"]},
zip_safe=False,
platforms=["any"],
url="https://github.com/pythonwood/fs2",
version=__version__,
# entry_points={"console_scripts": CONSOLE_SCRIPTS}, # failed
# scripts=['fs2'],
entry_points=CONSOLE_SCRIPTS_STR,
python_requires='>=3.6',
)