Skip to content

Commit

Permalink
Update from pipenv to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
eterna2 committed Oct 1, 2020
1 parent 2d9d436 commit 5efa31a
Show file tree
Hide file tree
Showing 18 changed files with 1,487 additions and 989 deletions.
2 changes: 1 addition & 1 deletion .envrc
Expand Up @@ -7,4 +7,4 @@ source .envfile
source .env
set +o allexport

layout_pipenv
layout poetry
18 changes: 12 additions & 6 deletions .travis.yml
Expand Up @@ -4,15 +4,21 @@ matrix:
include:
- python: 3.6
- python: 3.7
cache: pip
cache:
pip: true
directories:
- "~/.cache/pypoetry"
branches:
only:
- master
install:
- pip install -r requirements-dev.txt
- python setup.py install
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
- source $HOME/.poetry/env
- poetry install --extras all
script:
- python test.py
- coveralls
- make coveralls
before_deploy:
- python setup.py sdist bdist_wheel
- poetry build
deploy:
provider: pypi
user: __token__
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# `e2fyi.utils`

## v0.3.0-rc-1

- Changes:

- Updated dependencies manager to `poetry` from `pipenv`. Made `pandas` an optional package.

## v0.2.2

- Fixes:
Expand Down
4 changes: 1 addition & 3 deletions MANIFEST.in
@@ -1,6 +1,4 @@
include version.txt
include test.py
include LICENSE
include README.md
include requirements.txt
include requirements-dev.txt
include pyproject.toml
28 changes: 13 additions & 15 deletions Makefile
@@ -1,23 +1,21 @@
dev:
pipenv install --dev
pipenv run pip install -e .

dists: requirements sdist bdist wheels

.FORCE:

docs: .FORCE
sphinx-build rst docs -b dirhtml -E -P
poetry run sphinx-build rst docs -b dirhtml -E -P

requirements:
pipenv run pipenv_to_requirements
check:
poetry run isort -c e2fyi
poetry run black --check e2fyi

sdist: requirements
pipenv run python setup.py sdist
test: check
poetry run python test.py

bdist: requirements
pipenv run python setup.py bdist
coveralls: test
poetry run coveralls

wheels: requirements
pipenv run python setup.py bdist_wheel
serve-docs: docs
cd docs/ && poetry run python -m http.server 8000

format:
poetry run isort e2fyi
poetry run black e2fyi
38 changes: 0 additions & 38 deletions Pipfile

This file was deleted.

0 comments on commit 5efa31a

Please sign in to comment.