-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Massive infrastructure update
- Move source code into `src/` directory - Bump pre-commit hooks - Update GitHub actions - Allow to install attrs 20.1.0 in dependent projects - Setup dependabot - Setup read the docs config - Update Makefile targets - Upgrade to latest pytest & move pytest config into `pyproject.toml`
- Loading branch information
1 parent
83bf403
commit 8841aa2
Showing
41 changed files
with
734 additions
and
258 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
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,16 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
time: "03:00" | ||
open-pull-requests-limit: 10 | ||
reviewers: | ||
- playpauseandstop | ||
assignees: | ||
- playpauseandstop | ||
labels: | ||
- build | ||
allow: | ||
- dependency-type: direct |
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,3 +1,7 @@ | ||
defaults: | ||
run: | ||
shell: "bash" | ||
|
||
name: "ci" | ||
|
||
on: | ||
|
@@ -8,12 +12,12 @@ on: | |
branches: ["master"] | ||
|
||
env: | ||
COVERALLS_VERSION: "2.1.1" | ||
COVERALLS_VERSION: "2.1.2" | ||
DEV_PYTHON_VERSION: "3.8" | ||
POETRY_VERSION: "1.0.9" | ||
POETRY_VERSION: "1.0.10" | ||
TOX_GH_ACTIONS_VERSION: "1.3.0" | ||
TOX_VERSION: "3.17.1" | ||
TWINE_VERSION: "3.1.1" | ||
TOX_VERSION: "3.20.0" | ||
TWINE_VERSION: "3.2.0" | ||
|
||
jobs: | ||
dev: | ||
|
@@ -26,10 +30,10 @@ jobs: | |
runs-on: "${{ matrix.os }}" | ||
|
||
steps: | ||
- uses: "actions/[email protected].1" | ||
- uses: "actions/[email protected].2" | ||
|
||
- name: "Install Python" | ||
uses: "actions/[email protected].1" | ||
uses: "actions/[email protected].2" | ||
with: | ||
python-version: "${{ env.DEV_PYTHON_VERSION }}" | ||
|
||
|
@@ -55,16 +59,16 @@ jobs: | |
|
||
services: | ||
redis: | ||
image: "redis:6.0.5-alpine" | ||
image: "redis:6.0.7-alpine" | ||
ports: | ||
- "6379/tcp" | ||
options: "--entrypoint redis-server" | ||
|
||
steps: | ||
- uses: "actions/[email protected].1" | ||
- uses: "actions/[email protected].2" | ||
|
||
- name: "Install Python" | ||
uses: "actions/[email protected].1" | ||
uses: "actions/[email protected].2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
|
||
|
@@ -75,20 +79,14 @@ jobs: | |
|
||
- name: "Install package" | ||
run: | | ||
set -e | ||
poetry install --no-dev | ||
python -m pip install tox==${{ env.TOX_VERSION }} tox-gh-actions==${{ env.TOX_GH_ACTIONS_VERSION }} | ||
- name: "Install depencencies" | ||
run: | | ||
sudo apt install -y locales-all | ||
- name: "Cache pre-commit" | ||
if: "matrix.python-version == env.DEV_PYTHON_VERSION" | ||
uses: "actions/[email protected]" | ||
with: | ||
path: "~/.cache/pre-commit" | ||
key: "pre-commit-${{ matrix.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}" | ||
|
||
- name: "Run pre-commit" | ||
if: "matrix.python-version == env.DEV_PYTHON_VERSION" | ||
uses: "pre-commit/[email protected]" | ||
|
@@ -108,10 +106,10 @@ jobs: | |
REDIS_URL: "redis://localhost:${{ job.services.redis.ports[6379] }}/0" | ||
run: "python -m tox" | ||
|
||
- name: "Run tests with openapi-core 0.13.3" | ||
- name: "Run tests with attrs 19.3.0 & openapi-core 0.13.3" | ||
if: "matrix.python-version == env.DEV_PYTHON_VERSION" | ||
env: | ||
TOXENV: "py38-oc0133" | ||
TOXENV: "py38-prev" | ||
PYTEST_ADDOPTS: "--no-cov" | ||
REDIS_URL: "redis://localhost:${{ job.services.redis.ports[6379] }}/0" | ||
run: "python -m tox" | ||
|
@@ -131,10 +129,10 @@ jobs: | |
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: "actions/[email protected].1" | ||
- uses: "actions/[email protected].2" | ||
|
||
- name: "Install Python" | ||
uses: "actions/[email protected].1" | ||
uses: "actions/[email protected].2" | ||
with: | ||
python-version: "${{ env.DEV_PYTHON_VERSION }}" | ||
|
||
|
@@ -164,7 +162,7 @@ jobs: | |
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: "actions/[email protected].1" | ||
- uses: "actions/[email protected].2" | ||
|
||
- name: "Fetch git data" | ||
run: | | ||
|
@@ -198,7 +196,7 @@ jobs: | |
echo "::set-output name=prerelease::${prerelease}" | ||
- name: "Create new release" | ||
uses: "actions/[email protected].2" | ||
uses: "actions/[email protected].3" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
|
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,14 +1,150 @@ | ||
*.egg* | ||
*.py[co] | ||
|
||
.coverage | ||
.install | ||
# Created by https://www.toptal.com/developers/gitignore/api/python | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=python | ||
|
||
.*cache/ | ||
### Python ### | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
# Do not ignore pyenv local version | ||
#.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
.tox/ | ||
.venv/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/python | ||
|
||
# DotENV files | ||
.env.* | ||
!.env.test | ||
|
||
# Makefile target | ||
.install* | ||
|
||
# Sublime Text 3 workspace | ||
*.sublime-workspace |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
|
||
sphinx: | ||
configuration: "docs/conf.py" | ||
|
||
python: | ||
version: "3.8" | ||
install: | ||
- requirements: "docs/requirements.txt" | ||
- requirements: "docs/requirements-sphinx.txt" |
Oops, something went wrong.