This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Poetry Build Setup + CI pipeline changes (#41)
* Move package management and build to poetry * Update travis and add pre-commit * Update developer documentation. * Fix foreshadow __init__ pyproject version reading abilities * Fix spacing on dropfeature for autodoc
- Loading branch information
1 parent
dbeb8d6
commit 7f5ce68
Showing
15 changed files
with
1,585 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,5 +107,8 @@ venv.bak/ | |
# PyCharm | ||
.idea/ | ||
|
||
# Poetry build wheels | ||
pip-wheel-metadata/ | ||
|
||
# Other | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
language_version: python3.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,38 @@ | ||
language: python | ||
cache: pip | ||
python: | ||
- "3.5" | ||
- "3.6" | ||
|
||
cache: | ||
pip: true | ||
directories: | ||
- "$HOME/.cache/pypoetry" | ||
- "$HOME/.cache/pre-commit" | ||
|
||
stages: | ||
- linting | ||
- test | ||
|
||
before_install: | ||
# linux | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install swig3.0; fi | ||
# linux | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt update; fi | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt install swig3.0; fi | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s /usr/bin/swig3.0 /usr/bin/swig; fi | ||
- pip install poetry | ||
install: | ||
- pip install tox tox-travis coveralls | ||
- poetry install -v -E dev | ||
- poetry run pip install tox tox-travis coveralls | ||
script: | ||
- tox | ||
- poetry run tox | ||
after_success: | ||
- coveralls | ||
- poetry run coveralls | ||
|
||
jobs: | ||
include: | ||
- python: "3.5" | ||
- python: "3.6" | ||
|
||
- stage: linting | ||
python: "3.6" | ||
install: | ||
- pip install pre-commit | ||
- pre-commit install-hooks | ||
script: | ||
- pre-commit run --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.