Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3caa471

Browse files
committed
Use requirements.txt dependencies for setup.py
1 parent 6ffbff0 commit 3caa471

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
include requirements.txt
12
include README.rst

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
VERSION_PATTERN = re.compile(r'^[^#]*__version__\W*\=\W*["\'](.*)["\']')
88
VERSION = None
99

10+
with open('requirements.txt') as f:
11+
required = f.read().splitlines()
12+
13+
required = [r for r in required if not r.startswith('git')]
14+
1015

1116
def get_path(path):
1217
return os.path.join(os.path.dirname(__file__), path)
@@ -35,11 +40,7 @@ def get_path(path):
3540
version=versrel,
3641
description='A Python client for the SmartFile API.',
3742
long_description=long_description,
38-
install_requires=[
39-
'oauthlib',
40-
'requests',
41-
'requests_oauthlib',
42-
],
43+
install_requires=required,
4344
author='SmartFile',
4445
author_email='[email protected]',
4546
maintainer='Ben Timby',

0 commit comments

Comments
 (0)