-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathsetup.py
56 lines (52 loc) · 2.07 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
import os
from setuptools import setup
import dpath.version
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
if __name__ == "__main__":
setup(
name="dpath",
url="https://github.com/dpath-maintainers/dpath-python",
version=dpath.version.VERSION,
description="Filesystem-like pathing and searching for dictionaries",
long_description=long_description,
author=("Caleb Case, "
"Andrew Kesterson"),
author_email="[email protected], [email protected]",
license="MIT",
install_requires=[],
scripts=[],
packages=["dpath"],
data_files=[],
package_data={"dpath": ["py.typed"]},
# Type hints are great.
# Function annotations were added in Python 3.0.
# Typing module was added in Python 3.5.
# Variable annotations were added in Python 3.6.
# Python versions that are >=3.6 are more popular.
# (Source: https://github.com/hugovk/pypi-tools/blob/master/README.md)
#
# Conclusion: In order to accommodate type hinting support must be limited to Python versions >=3.6.
# 3.6 was dropped because of EOL and this issue: https://github.com/actions/setup-python/issues/544
python_requires=">=3.7",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
'Typing :: Typed',
],
)