forked from globus/globus-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
81 lines (76 loc) · 2.76 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
70
71
72
73
74
75
76
77
78
79
80
81
import os
import sys
from setuptools import find_packages, setup
if sys.version_info < (2, 7):
raise NotImplementedError(
"""\n
##############################################################
# globus-cli does not support python versions older than 2.7 #
##############################################################"""
)
# single source of truth for package version
version_ns = {}
with open(os.path.join("globus_cli", "version.py")) as f:
exec(f.read(), version_ns)
version = version_ns["__version__"]
setup(
name="globus-cli",
version=version,
packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=[
"globus-sdk==1.10.0",
"click>=7.1.1,<8.0",
"jmespath==0.10.0",
"configobj>=5.0.6,<6.0.0",
"requests>=2.0.0,<3.0.0",
"six>=1.10.0,<2.0.0",
# cryptography has unusual versioning and compatibility rules:
# https://cryptography.io/en/latest/api-stability/
# we trust the two next major versions, per the Deprecation policy
#
# as new versions of cryptography are released, we may need to update
# this requirement
"cryptography>=1.8.1,<3.4.0",
],
extras_require={
# deprecated, but do not remove -- doing so would break installs which
# are already using this extra
"delegate-proxy": [],
# the development extra is for CLI developers only
"development": [
# testing
"pytest<5",
"pytest-cov<3.0",
# mocking `requests`
"responses==0.12.1",
# loading fixture data
"ruamel.yaml==0.16.12",
# mock on py2
'mock==2.0.0;python_version<"3.6"',
'black==20.8b1;python_version>="3.6"',
'isort>=5.6.4,<6.0;python_version>="3.6"',
"flake8>=3.8.4,<4.0",
'flake8-bugbear==20.11.1;python_version>="3.6"',
],
},
entry_points={"console_scripts": ["globus = globus_cli:main"]},
# descriptive info, non-critical
description="Globus CLI",
long_description=open("README.rst").read(),
author="Stephen Rosen",
author_email="sirosen@globus.org",
url="https://github.com/globus/globus-cli",
keywords=["globus", "cli", "command line"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)