-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from pawelzny/dev/poetry
Move from pipenv to poetry and pyproject.toml
- Loading branch information
Showing
24 changed files
with
1,417 additions
and
737 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[bumpversion] | ||
current_version = 1.3.0 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:dotty_dict/__init__.py] | ||
|
||
[bumpversion:file:docs/conf.py] |
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,146 +1,161 @@ | ||
# Python CircleCI 2.0 configuration file | ||
# Check https://circleci.com/docs/2.0/language-python/ for more details | ||
version: 2 | ||
# Python CircleCI 2.1 configuration file | ||
version: 2.1 | ||
|
||
defaults: &defaults | ||
working_directory: ~/repo | ||
|
||
read_cache: &read_cache | ||
keys: | ||
- v1-dependencies-{{ checksum "Pipfile.lock" }} | ||
- v1-dependencies-{{ checksum "poetry.lock" }} | ||
- v1-dependencies- | ||
|
||
store_cache: &store_cache | ||
paths: | ||
- ./repo | ||
key: v1-dependencies-{{ checksum "Pipfile.lock" }} | ||
key: v1-dependencies-{{ checksum "poetry.lock" }} | ||
|
||
run_tests: &run_tests | ||
name: run tests | ||
command: pipenv run pytest | ||
command: poetry run pytest | ||
|
||
install_deps: &install_deps | ||
name: install dependencies | ||
command: poetry install --no-root | ||
|
||
jobs: | ||
py35: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/python:3.5.6 | ||
- image: cimg/python:3.5.10 | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: | ||
name: install dependencies | ||
command: | | ||
pipenv install --python 3.5 --ignore-pipfile | ||
pipenv install --python 3.5 --dev --ignore-pipfile | ||
- run: *install_deps | ||
- save_cache: *store_cache | ||
- run: *run_tests | ||
py36: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/python:3.6.7 | ||
- image: cimg/python:3.6.15 | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: | ||
name: install dependencies | ||
command: | | ||
pipenv install --python 3.6 --ignore-pipfile | ||
pipenv install --python 3.6 --dev --ignore-pipfile | ||
- run: *install_deps | ||
- save_cache: *store_cache | ||
- run: *run_tests | ||
py37: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/python:3.7.1 | ||
- image: cimg/python:3.7.13 | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: | ||
name: install dependencies | ||
command: | | ||
pipenv install --python 3.7 --ignore-pipfile | ||
pipenv install --python 3.7 --dev --ignore-pipfile | ||
- run: *install_deps | ||
- save_cache: *store_cache | ||
- run: *run_tests | ||
py38: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/python:3.8.0a3 | ||
- image: cimg/python:3.8.13 | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: | ||
name: install dependencies | ||
command: | | ||
pipenv install --python 3.8 --ignore-pipfile | ||
pipenv install --python 3.8 --dev --ignore-pipfile | ||
- run: *install_deps | ||
- save_cache: *store_cache | ||
- run: *run_tests | ||
|
||
pypy35: | ||
py39: | ||
<<: *defaults | ||
docker: | ||
- image: cimg/python:3.9.13 | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: *install_deps | ||
- save_cache: *store_cache | ||
- run: *run_tests | ||
py310: | ||
<<: *defaults | ||
docker: | ||
- image: cimg/python:3.10.5 | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: *install_deps | ||
- save_cache: *store_cache | ||
- run: *run_tests | ||
pypy38: | ||
docker: | ||
- image: pypy:3-5.10 | ||
- image: pypy:3.8-7.3.9 | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: | ||
name: Install pipenv | ||
command: pip install pipenv==11.7.4 | ||
- run: | ||
name: Install missing libraries | ||
command: | | ||
pipenv --python `which pypy3` run pip install pathlib2 | ||
- run: | ||
name: install dependencies | ||
command: | | ||
pipenv install --python `which pypy3` --ignore-pipfile | ||
pipenv install --python `which pypy3` --dev --ignore-pipfile | ||
command: pip install pytest | ||
- save_cache: *store_cache | ||
- run: *run_tests | ||
|
||
- run: | ||
name: run tests | ||
command: pytest | ||
pypy39: | ||
docker: | ||
- image: pypy:3.9-7.3.9 | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: | ||
name: install dependencies | ||
command: pip install pytest | ||
- save_cache: *store_cache | ||
- run: | ||
name: run tests | ||
command: pytest | ||
flake8: | ||
docker: | ||
- image: circleci/python:3.6.4 | ||
- image: cimg/python:3.8.13 | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: | ||
name: install dependencies | ||
command: | | ||
pipenv install --python 3.6 --ignore-pipfile | ||
pipenv install --python 3.6 --dev --ignore-pipfile | ||
- run: *install_deps | ||
- save_cache: *store_cache | ||
- run: | ||
name: run tests | ||
command: pipenv run flake8 vo tests | ||
|
||
name: run flake8 | ||
command: poetry run flake8 | ||
docs: | ||
docker: | ||
- image: circleci/python:3.6.4 | ||
- image: cimg/python:3.8.13 | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: *read_cache | ||
- run: *install_deps | ||
- run: | ||
name: install dependencies | ||
name: Install Sphinx | ||
command: | | ||
pipenv install --python 3.6 --ignore-pipfile | ||
pipenv install --python 3.6 --dev --ignore-pipfile | ||
sudo apt update | ||
sudo apt install -y python3-sphinx python3-sphinx-rtd-theme | ||
- save_cache: *store_cache | ||
- run: | ||
name: build docs | ||
command: pipenv run make docs | ||
name: run doctest | ||
command: sphinx-build -aEW -b html -d docs/_build/doctrees docs docs/_build/html | ||
|
||
workflows: | ||
version: 2 | ||
test_all: | ||
linters: | ||
jobs: | ||
- flake8 | ||
unit-tests: | ||
jobs: | ||
- py35 | ||
- py36 | ||
- py37 | ||
- py38 | ||
- pypy35 | ||
- flake8 | ||
- py39 | ||
- py310 | ||
- pypy38 | ||
- pypy39 | ||
release-dry-run: | ||
jobs: | ||
- docs |
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
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
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
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,11 +1,18 @@ | ||
|
||
MIT License | ||
|
||
Copyright (c) 2017, Paweł Zadrożny | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
Copyright (c) 2017, Pawel Zadrozny | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software | ||
and associated documentation files (the "Software"), to deal in the Software without restriction, | ||
including without limitation the rights to use, copy, modify, merge, publish, distribute, | ||
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software | ||
is furnished to do so, subject to the following conditions: | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
The above copyright notice and this permission notice shall be included in all copies | ||
or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE | ||
AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
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.