|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
3 | | -from setuptools import setup, find_packages |
| 3 | +import os |
4 | 4 |
|
5 | | -with open("fs/_version.py") as f: |
| 5 | +with open(os.path.join("fs", "_version.py")) as f: |
6 | 6 | exec(f.read()) |
7 | 7 |
|
8 | | -CLASSIFIERS = [ |
9 | | - "Development Status :: 5 - Production/Stable", |
10 | | - "Intended Audience :: Developers", |
11 | | - "License :: OSI Approved :: MIT License", |
12 | | - "Operating System :: OS Independent", |
13 | | - "Programming Language :: Python", |
14 | | - "Programming Language :: Python :: 2.7", |
15 | | - "Programming Language :: Python :: 3.4", |
16 | | - "Programming Language :: Python :: 3.5", |
17 | | - "Programming Language :: Python :: 3.6", |
18 | | - "Programming Language :: Python :: 3.7", |
19 | | - "Programming Language :: Python :: 3.8", |
20 | | - "Programming Language :: Python :: Implementation :: CPython", |
21 | | - "Programming Language :: Python :: Implementation :: PyPy", |
22 | | - "Topic :: System :: Filesystems", |
23 | | -] |
24 | | - |
25 | | -REQUIREMENTS = ["appdirs~=1.4.3", "pytz", "setuptools", "six~=1.10"] |
26 | | - |
27 | | -setup( |
28 | | - author="Will McGugan", |
29 | | - |
30 | | - classifiers=CLASSIFIERS, |
31 | | - description="Python's filesystem abstraction layer", |
32 | | - install_requires=REQUIREMENTS, |
33 | | - extras_require={ |
34 | | - "scandir :python_version < '3.5'": ["scandir~=1.5"], |
35 | | - ":python_version < '3.4'": ["enum34~=1.1.6"], |
36 | | - ":python_version < '3.6'": ["typing~=3.6"], |
37 | | - ":python_version < '3.0'": ["backports.os~=0.1"], |
38 | | - }, |
39 | | - license="MIT", |
40 | | - name="fs", |
41 | | - packages=find_packages(exclude=("tests",)), |
42 | | - package_data={"fs": ["py.typed"]}, |
43 | | - zip_safe=False, |
44 | | - platforms=["any"], |
45 | | - url="https://github.com/PyFilesystem/pyfilesystem2", |
46 | | - version=__version__, |
47 | | -) |
| 8 | +from setuptools import setup |
| 9 | +setup(version=__version__) |
0 commit comments