Skip to content

Support for tox #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 14, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
hashar committed Jul 25, 2014
commit dbd784b870a878ef6dbecd14310018cdaeda5c6d
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include LICENSE
include CHANGES
include AUTHORS
include README
include requirements.txt

graft git/test/fixtures
graft git/test/performance
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ The object database implementation is optimized for handling large quantities of
* Mock by Michael Foord used for tests
- Tested with 1.0.1

The list of dependencies are listed in /requirements.txt. The installer takes care of installing them for you though.

### INSTALL

If you have downloaded the source code:

python setup.py install
or if you want to obtain a copy more easily:

or if you want to obtain a copy from the Pypi repository:

pip install gitpython


Both commands will install the required package dependencies.

A distribution package can be obtained for manual installation at:

http://pypi.python.org/pypi/GitPython
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Remember to update README.md
gitdb>=0.5.1
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
VERSION = v.readline().strip()
v.close()

with open('requirements.txt') as reqs_file:
requirements = reqs_file.read().splitlines()

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