-
-
Notifications
You must be signed in to change notification settings - Fork 226
/
setup.py
executable file
·69 lines (59 loc) · 2.24 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
61
62
63
64
65
66
67
68
69
import os
import sys
from setuptools import setup
if sys.version_info.major == 2: # pragma: no cover
sys.exit('Python 2 is not supported anymore. The last version of DeepDiff that supported Py2 was 3.3.0')
# if you are not using vagrant, just delete os.link directly,
# The hard link only saves a little disk space, so you should not care
if os.environ.get('USER', '') == 'vagrant':
del os.link
version = '8.1.1'
def get_reqs(filename):
with open(filename, "r") as reqs_file:
reqs = reqs_file.readlines()
return reqs
reqs = get_reqs("requirements.txt")
cli_reqs = get_reqs("requirements-cli.txt")
optimize_reqs = get_reqs("requirements-optimize.txt")
with open('README.md') as file:
long_description = file.read()
setup(name='deepdiff',
version=version,
description='Deep Difference and Search of any Python object/data. Recreate objects by adding adding deltas to each other.',
url='https://github.com/seperman/deepdiff',
download_url='https://github.com/seperman/deepdiff/tarball/master',
author='Seperman',
author_email='[email protected]',
license='MIT',
packages=['deepdiff'],
package_data={"deepdiff": ["py.typed"]},
zip_safe=True,
include_package_data=True,
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=reqs,
python_requires='>=3.8',
extras_require={
"cli": cli_reqs,
"optimize": optimize_reqs,
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development",
"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",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: PyPy",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License"
],
entry_points={
'console_scripts': [
'deep=deepdiff.commands:cli',
],
},
)