Skip to content

Commit 9b9d1a7

Browse files
committed
build: make numpy, pandas optional dependencies unify dependecy list in requirements txt
1 parent b6aad82 commit 9b9d1a7

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

requirements-dev.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pytest>=5.4.0<5.5.0
2+
mypy>=0.782
3+
pre-commit>=2.6.0
4+
pytest-cov>=2.10.0
5+
pytest-mock>=1.11.1<=3.2.0
6+
wheel>=0.33
7+
-e .

requirements.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
scramp>=1.2.0<1.3.0
2-
pytest>=5.4.0<5.5.0
32
pytz>=2020.1<2020.2
43
beautifulsoup4>=4.7.0<4.8.0
54
boto3>=1.16.8<1.17.0
65
requests>=2.23.0<2.24.0
76
lxml>=4.2.5<4.6.0
87
botocore>=1.19.8<1.20.0
9-
mypy>=0.782
10-
pre-commit>=2.6.0
11-
numpy>=1.16.3<1.20.0
12-
pandas>=0.25.3<1.1.0
13-
pytest-cov>=2.10.0
14-
pytest-mock>=1.11.1<=3.2.0
15-
wheel>=0.33

setup.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ def get_tag(self):
8484
long_description = f.read()
8585
exec(open("redshift_connector/version.py").read())
8686

87+
optional_deps = {
88+
"full": ["numpy", "pandas"],
89+
}
90+
8791
setup(
8892
name="redshift_connector",
8993
version=__version__,
@@ -95,18 +99,8 @@ def get_tag(self):
9599
url="https://github.com/aws/amazon-redshift-python-driver",
96100
license="Apache License 2.0",
97101
python_requires=">=3.5",
98-
install_requires=[
99-
"scramp>=1.2.0<1.3.0",
100-
"pytz>=2020.1<2020.2",
101-
"BeautifulSoup4>=4.7.0<4.8.0",
102-
"boto3>=1.16.8<1.17.0",
103-
"requests>=2.23.0<2.24.0",
104-
"lxml>=4.2.5<4.6.0",
105-
"botocore>=1.19.8<1.20.0",
106-
"numpy>=1.15.4<1.20.0",
107-
"pandas==0.25.3",
108-
"wheel>=0.33",
109-
],
102+
install_requires=open("requirements.txt").read().strip().split("\n"),
103+
extras_require=optional_deps,
110104
classifiers=[
111105
"Development Status :: 5 - Production/Stable",
112106
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)