Skip to content

Commit 3b943d9

Browse files
authored
Use Pipenv for dependency management (#3)
* Use pipenv for dependency management * Fix makefile to properly run in virtualenv * Bump version to 0.2.5
1 parent 68be5eb commit 3b943d9

File tree

5 files changed

+104
-10
lines changed

5 files changed

+104
-10
lines changed

Makefile

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
all: init test test-coverage lint
44

55
init:
6-
pip install -r requirements.txt
6+
pipenv install
77

88
test:
9-
pytest
9+
pipenv run pytest
1010

1111
test-coverage:
12-
pytest --cov=nereval --cov-report term
12+
pipenv run pytest --cov=nereval --cov-report term
1313

1414
lint:
1515
pylint nereval.py || exit 0
1616

1717
pypi:
18-
rm -r dist/
19-
python setup.py sdist bdist_wheel
18+
rm -fr dist/
19+
pipenv run python setup.py sdist bdist_wheel
2020
twine upload dist/*
2121

2222
pypi-test:
23-
rm -r dist/
24-
python setup.py sdist bdist_wheel
23+
rm -fr dist/
24+
pipenv run python setup.py sdist bdist_wheel
2525
twine upload --repository pypitest dist/*

Pipfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[dev-packages]
7+
pytest = "==3.2.1"
8+
pytest-cov = "==2.5.1"
9+
10+
[requires]
11+
python_version = "3.6"

Pipfile.lock

+85
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements.txt

-2
This file was deleted.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def read(fname):
66

77
setup(
88
name='nereval',
9-
version='0.2.4',
9+
version='0.2.5',
1010
author='Jan Trienes',
1111
author_email='[email protected]',
1212
url='https://github.com/jantrienes/nereval',

0 commit comments

Comments
 (0)