Skip to content

Commit fdc9793

Browse files
authored
DX-2460 Update setup.py to use requirements.txt (#52)
* DX-2460 Update setup.py to use requirements.txt * update requirements.txt * change requests and urllib versions and update test workflow * rename dev requirements * bump version
1 parent 764a524 commit fdc9793

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525

2626
- name: Install Packages
27-
run: pip install -r requirements.txt
27+
run: pip install -r requirements_dev.txt
2828

2929
- name: Test
3030
env:

requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
requests>=2.25
1+
requests>=2.27.1
22
jsonpickle~=1.4, >= 1.4.1
33
cachecontrol~=0.12.6
44
python-dateutil~=2.8.1
55
enum34~=1.1, >=1.1.10
66
lxml>=4.6.5
7-
pytest>=6.2.5
8-
urllib3>=1.26
7+
urllib3>=1.26.8
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ py==1.10.0
1414
pyparsing==2.4.7
1515
pytest==6.2.5
1616
python-dateutil==2.8.2
17-
requests==2.26.0
17+
requests==2.27.1
1818
six==1.16.0
1919
toml==0.10.2
20-
urllib3==1.26.6
20+
urllib3==1.26.8

setup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,18 @@
1010
with open('README.md', 'r', encoding='utf-8') as fh:
1111
long_description = fh.read()
1212

13+
with open("requirements.txt", "r") as fp:
14+
requirements = fp.readlines()
15+
1316
setup(
1417
name='bandwidth-sdk',
15-
version='13.1.1',
18+
version='13.1.2',
1619
description='Bandwidth\'s set of APIs',
1720
long_description=long_description,
1821
long_description_content_type="text/markdown",
1922
author='APIMatic SDK Generator',
2023
author_email='[email protected]',
2124
url='https://apimatic.io',
2225
packages=find_packages(),
23-
install_requires=[
24-
'requests>=2.9.1, <3.0',
25-
'jsonpickle>=0.7.1, <1.0',
26-
'cachecontrol>=0.11.7, <1.0',
27-
'python-dateutil>=2.5.3, <3.0',
28-
'enum34>=1.1.6',
29-
'lxml>=4.3.4'
30-
]
26+
install_requires=requirements
3127
)

0 commit comments

Comments
 (0)