| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,3 +10,6 @@ cover/ | |||
| 10 | 10 | /doc/_build | |
| 11 | 11 | nbproject | |
| 12 | 12 | *.sublime-workspace | |
| 13 | + | ||
| 14 | + /*egg-info | ||
| 15 | + /.tox | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,6 +13,9 @@ The object database implementation is optimized for handling large quantities of | |||
| 13 | 13 | - Tested with nose 1.3.0 | |
| 14 | 14 | * Mock by Michael Foord used for tests | |
| 15 | 15 | - Tested with 1.0.1 | |
| 16 | + * Coverage - used for tests coverage | ||
| 17 | + | ||
| 18 | + The list of dependencies are listed in /requirements.txt and /test-requirements.txt. The installer takes care of installing them for you though. | ||
| 16 | 19 | ||
| 17 | 20 | ### INSTALL | |
| 18 | 21 | ||
@@ -22,15 +25,27 @@ The object database implementation is optimized for handling large quantities of | |||
| 22 | 25 | If you have downloaded the source code: | |
| 23 | 26 | ||
| 24 | 27 | python setup.py install | |
| 25 | - | ||
| 26 | - or if you want to obtain a copy more easily: | ||
| 28 | + | ||
| 29 | + or if you want to obtain a copy from the Pypi repository: | ||
| 27 | 30 | ||
| 28 | 31 | pip install gitpython | |
| 29 | - | ||
| 32 | + | ||
| 33 | + Both commands will install the required package dependencies. | ||
| 34 | + | ||
| 30 | 35 | A distribution package can be obtained for manual installation at: | |
| 31 | 36 | ||
| 32 | 37 | http://pypi.python.org/pypi/GitPython | |
| 33 | 38 | ||
| 39 | + ### RUNNING TESTS | ||
| 40 | + | ||
| 41 | + The easiest way to run test is by using [tox](https://pypi.python.org/pypi/tox) a wrapper around virtualenv. It will take care of setting up environnements with the proper dependencies installed and execute test commands. To install it simply: | ||
| 42 | + | ||
| 43 | + pip install tox | ||
| 44 | + | ||
| 45 | + Then run: | ||
| 46 | + | ||
| 47 | + tox | ||
| 48 | + | ||
| 34 | 49 | ### SOURCE | |
| 35 | 50 | ||
| 36 | 51 | GitPython's git repo is available on GitHub, which can be browsed at [github](https://github.com/gitpython-developers/GitPython) and cloned like that: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,2 +1,2 @@ | |||
| 1 | 1 | GitPython | |
| 2 | - gitdb>=0.6.0 | ||
| 2 | + gitdb>=0.6.0 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,6 +16,8 @@ | |||
| 16 | 16 | VERSION = v.readline().strip() | |
| 17 | 17 | v.close() | |
| 18 | 18 | ||
| 19 | + with open('requirements.txt') as reqs_file: | ||
| 20 | + requirements = reqs_file.read().splitlines() | ||
| 19 | 21 | ||
| 20 | 22 | class build_py(_build_py): | |
| 21 | 23 | def run(self): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,4 @@ | |||
| 1 | + coverage | ||
| 2 | + flake8 | ||
| 3 | + nose | ||
| 4 | + mock | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,20 @@ | |||
| 1 | + [tox] | ||
| 2 | + envlist = py26,py27,flake8 | ||
| 3 | + | ||
| 4 | + [testenv] | ||
| 5 | + commands = nosetests | ||
| 6 | + deps = -r{toxinidir}/requirements.txt | ||
| 7 | + -r{toxinidir}/test-requirements.txt | ||
| 8 | + | ||
| 9 | + [testenv:cover] | ||
| 10 | + commands = nosetests --with-coverage | ||
| 11 | + | ||
| 12 | + [testenv:flake8] | ||
| 13 | + commands = flake8 | ||
| 14 | + | ||
| 15 | + [testenv:venv] | ||
| 16 | + commands = {posargs} | ||
| 17 | + | ||
| 18 | + [flake8] | ||
| 19 | + #show-source = True | ||
| 20 | + exclude = .tox,.venv,build,dist,doc,git/ext/ | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments