From ca076ff6251011b736d98078ba343d42b2d3e534 Mon Sep 17 00:00:00 2001 From: Timo Furrer Date: Wed, 4 Apr 2018 19:58:30 +0200 Subject: [PATCH] Refactor pipenv usage according to semi-official best practices. Closes #142 --- .travis.yml | 5 ++++- Pipfile | 8 -------- setup.py | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6455437..98177be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,10 @@ matrix: - python: "3.7-dev" # command to install dependencies -install: pip install pipenv; pipenv lock; pipenv install --dev +install: + - pip install pipenv + - pipenv install '-e .' --skip-lock --ignore-pipfile + - pipenv install --dev --skip-lock # command to run tests script: pipenv run pytest tests/ diff --git a/Pipfile b/Pipfile index 816c9f9..fd7b839 100644 --- a/Pipfile +++ b/Pipfile @@ -2,11 +2,3 @@ freezegun = "*" pytest = "*" sphinx = "*" - -[packages] -humanize = "*" -pytz = "*" -dateparser = ">=0.7.0" -tzlocal = "*" -pendulum = ">=1.0" -snaptime = "*" diff --git a/setup.py b/setup.py index cdccbad..168b291 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ required = [ 'pytz', 'dateparser>=0.7.0', 'tzlocal', - 'pendulum', + 'pendulum>=1.0', 'snaptime' ]