Skip to content

Commit b14e648

Browse files
committed
🚒 Switch away from buildout 🖖
Signed-off-by: Guyzmo <[email protected]>
1 parent 97a6493 commit b14e648

File tree

4 files changed

+13
-45
lines changed

4 files changed

+13
-45
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ before_install: |
4141
# command to install dependencies
4242
install:
4343
- "pip install --upgrade pip" # upgrade to latest pip (needed on py3.4)
44-
- "pip install zc.buildout"
45-
- "buildout"
44+
- "pip install -r requirements-test.txt"
4645
# command to run tests
47-
script: "bin/py.test"
46+
script: "py.test --cov=git_repo --cov-report term-missing --capture=sys tests"

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,20 @@ if you want to use another path, you can change the defaults:
211211

212212
### Development
213213

214-
For development, I like to use `buildout`, and the repository is already configured
215-
for that. All you have to do, is install buildout, and then call it from the root of
216-
the repository:
214+
For development, start a virtualenv and from within install the devel requirements:
217215

218-
% pip install zc.buildout
219-
% buildout
216+
% virtualenv var
217+
% var/bin/pip install -r requirements-test.txt
220218

221219
and then you'll have the executable in `bin`:
222220

223-
% bin/git-repo --help
221+
% var/bin/git-repo --help
222+
223+
and to run the tests:
224+
225+
% var/bin/py.test --cov=git_repo --cov-report term-missing --capture=sys tests
226+
227+
N.B.: *Buildout is no longer supported for development*
224228

225229
#### Verbose running
226230

buildout.cfg

Lines changed: 0 additions & 35 deletions
This file was deleted.

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r requirements.txt
2+
.
23
pytest
34
pytest-cov
45
pytest-sugar
@@ -8,4 +9,3 @@ testfixtures
89
mock
910
betamax==0.5.1
1011
betamax-serializers
11-
git_repo

0 commit comments

Comments
 (0)