Skip to content

Commit 9c6f517

Browse files
FCambordaCamborda La Cruz Franco Paul (XC-AS/EDE3)
andauthored
revert misuse of programmatical approach in setup.py (#1303)
Co-authored-by: Camborda La Cruz Franco Paul (XC-AS/EDE3) <FrancoPaul.CambordaLaCruz@bosch.com>
1 parent 1045f57 commit 9c6f517

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

setup.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@
99
long_description = file.read()
1010

1111

12-
def get_install_requires():
13-
"""Lets read requirements.txt and properly set dependencies.
14-
We keep only one source of required packages, no need to change this file here.
15-
16-
Another advantage: build will fail if requirements file contains wrong libraries"""
17-
18-
with open('requirements.txt', 'r') as f:
19-
lines = [a.strip('\n').strip() for a in f.readlines() if not a.startswith('#')]
20-
return [a for a in lines if a]
21-
22-
2312
setup(
2413
name="atlassian-python-api",
2514
description="Python Atlassian REST API Wrapper",
@@ -37,7 +26,7 @@ def get_install_requires():
3726
package_dir={"atlassian": "atlassian"},
3827
include_package_data=True,
3928
zip_safe=False,
40-
install_requires=get_install_requires(),
29+
install_requires=["deprecated", "requests", "six", "oauthlib", "requests_oauthlib", "jmespath", "beautifulsoup4"],
4130
extras_require={"kerberos": ["requests-kerberos"]},
4231
platforms="Platform Independent",
4332
classifiers=[

0 commit comments

Comments
 (0)