Skip to content

Commit dbd784b

Browse files
committed
List runtime dependencies in requirements.txt
More and more packages are listing their dependencies in requirements.txt which make it trivial to maintain and install them.
1 parent 27c577d commit dbd784b

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

‎MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include LICENSE
33
include CHANGES
44
include AUTHORS
55
include README
6+
include requirements.txt
67

78
graft git/test/fixtures
89
graft git/test/performance

‎README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ The object database implementation is optimized for handling large quantities of
1414
* Mock by Michael Foord used for tests
1515
- Tested with 1.0.1
1616

17+
The list of dependencies are listed in /requirements.txt. The installer takes care of installing them for you though.
18+
1719
### INSTALL
1820

1921
If you have downloaded the source code:
2022

2123
python setup.py install
22-
23-
or if you want to obtain a copy more easily:
24+
25+
or if you want to obtain a copy from the Pypi repository:
2426

2527
pip install gitpython
26-
28+
29+
Both commands will install the required package dependencies.
30+
2731
A distribution package can be obtained for manual installation at:
2832

2933
http://pypi.python.org/pypi/GitPython

‎requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Remember to update README.md
2+
gitdb>=0.5.1

‎setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
VERSION = v.readline().strip()
1717
v.close()
1818

19+
with open('requirements.txt') as reqs_file:
20+
requirements = reqs_file.read().splitlines()
1921

2022
class build_py(_build_py):
2123
def run(self):
@@ -73,7 +75,7 @@ def _stamp_version(filename):
7375
package_data = {'git.test' : ['fixtures/*']},
7476
package_dir = {'git':'git'},
7577
license = "BSD License",
76-
install_requires='gitdb >= 0.5.1',
78+
install_requires=requirements,
7779
zip_safe=False,
7880
long_description = """\
7981
GitPython is a python library used to interact with Git repositories""",

0 commit comments

Comments
 (0)