Skip to content

Commit e3a9ee6

Browse files
committed
Move most of the metadata from setup.py to setup.cfg
1 parent 7e0f3b4 commit e3a9ee6

File tree

2 files changed

+51
-45
lines changed

2 files changed

+51
-45
lines changed

setup.cfg

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,63 @@
22
universal = 1
33

44
[metadata]
5+
version = attr: fs._version.__version__
6+
name = fs
7+
author = Will McGugan
8+
author_email = will@willmcgugan.com
9+
maintainer = Martin Larralde
10+
maintainer_email = martin.larralde@embl.de
11+
url = https://github.com/PyFilesystem/pyfilesystem2
12+
license = MIT
513
license_file = LICENSE
14+
description = Python's filesystem abstraction layer
615
long_description = file: README.md
716
long_description_content_type = text/markdown
17+
platform = any
18+
classifiers =
19+
Development Status :: 5 - Production/Stable
20+
Intended Audience :: Developers
21+
License :: OSI Approved :: MIT License
22+
Operating System :: OS Independent
23+
Programming Language :: Python
24+
Programming Language :: Python :: 2.7
25+
Programming Language :: Python :: 3.4
26+
Programming Language :: Python :: 3.5
27+
Programming Language :: Python :: 3.6
28+
Programming Language :: Python :: 3.7
29+
Programming Language :: Python :: 3.8
30+
Programming Language :: Python :: Implementation :: CPython
31+
Programming Language :: Python :: Implementation :: PyPy
32+
Topic :: System :: Filesystems
833
project_urls =
934
Bug Reports = https://github.com/PyFilesystem/pyfilesystem2/issues
1035
Documentation = https://pyfilesystem2.readthedocs.io/en/latest/
1136
Wiki = https://www.pyfilesystem.org/
1237
38+
[options]
39+
zip_safe = false
40+
packages = find:
41+
setup_requires =
42+
setuptools >=38.3.0
43+
install_requires =
44+
appdirs~=1.4.3
45+
pytz
46+
setuptools
47+
six ~=1.10
48+
enum34 ~=1.1.6 ; python_version < '3.4'
49+
typing ~=3.6 ; python_version < '3.6'
50+
backports.os ~=0.1 ; python_version < '3.0'
51+
52+
[options.extras_require]
53+
scandir =
54+
scandir~=1.5 ; python_version < '3.5'
55+
56+
[options.packages.find]
57+
exclude = tests
58+
59+
[options.package_data]
60+
fs = py.typed
61+
1362
[pydocstyle]
1463
inherit = false
1564
ignore = D102,D105,D200,D203,D213,D406,D407

setup.py

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,4 @@
11
#!/usr/bin/env python
22

3-
from setuptools import setup, find_packages
4-
5-
with open("fs/_version.py") as f:
6-
exec(f.read())
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-
author_email="will@willmcgugan.com",
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-
)
3+
from setuptools import setup
4+
setup()

0 commit comments

Comments
 (0)