forked from jamescooke/flake8-aaa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild Tox configuration, add requirements README, add RTD build (ja…
…mescooke#205) * Unpin upper Python bound * Add RTD yaml for build, split out docs requirements * Prevent clean recipe from syncing packages * Partial refactor of tox.ini config * Build out py3*-lint_self environment * Rebuild tox with lint, test and meta environments * Add requirements README, pin down text reqs * Bump example requirements, fix tox allowlist * Fix lint: blacken good black example * Remove old base requirements * Clean up requirements dir: README and requirements * Clean up Makefile: remove old recipes * Fix local devpypi cache link in test requirements * Update Changelog
- Loading branch information
1 parent
8447dae
commit 8d05b9f
Showing
20 changed files
with
520 additions
and
315 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,17 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.10" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Build all formats like pdf, htmlzip, etc | ||
formats: all | ||
|
||
python: | ||
install: | ||
- requirements: requirements/docs.txt |
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
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,47 @@ | ||
Requirements management | ||
======================= | ||
|
||
Summary | ||
------- | ||
|
||
* ``ci.in|txt``: Requirements for GitHub Actions built with Python 3.10. | ||
|
||
* ``dev.in|txt``: Requirements for working on code. Build with Python 3.8 | ||
(can't build on 3.7) | ||
|
||
* Tox environments use ``lint.in|txt``, ``test.in|txt`` and | ||
``examples.in|txt``, all built with Python 3.7. | ||
|
||
* ``docs.in|txt``: Python 3.10 (match RTD) | ||
|
||
CI ``ci.txt`` py310 | ||
------------------- | ||
|
||
Used by GitHub Actions. Installs tox and GH helper to manage Python versions. | ||
|
||
# Requirements for CI | ||
# Currently GitHub actions on their Ubuntu 22.04 images | ||
# These have Python 3.10.6 installed so compile these requirements with py310 | ||
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md | ||
|
||
Targets Python 3.10 because GHA instance uses that version in ``ubuntu-22.04`` | ||
image. | ||
|
||
Am using a pinned Tox dependency to allow for tags to be built "in the past" in | ||
scenarios where they might have missed a build / were forgotten. E.g. `tag | ||
v0.12.2 <https://github.com/jamescooke/flake8-aaa/releases/tag/v0.12.2>`_ was | ||
added more than a year after the release was done, but by that point couldn't | ||
be built by latest Tox, so `commit 77e29 | ||
<https://github.com/jamescooke/flake8-aaa/commit/77e29b1bbfaebed1664bcbc4bb77580185f00ae8>`_ | ||
now shows red 😞. | ||
|
||
Development ``dev.txt`` py38 | ||
---------------------------- | ||
|
||
Targets Python 3.8 because it's the oldest version that is easy to build these | ||
requirements for (Python 3.7 fails to build this list with no constraints). | ||
|
||
All tools for local development. Tests are run in Tox, so no Pytest. But | ||
linters are run in editor, so those are installed. | ||
|
||
Twine available for shipping packages |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 +1,4 @@ | ||
# py310 | ||
# Requirements for CI | ||
# Currently GitHub actions on their Ubuntu 22.04 images | ||
# These have Python 3.10.6 installed so compile these requirements with py310 | ||
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md | ||
|
||
tox | ||
tox-gh-actions |
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,5 +1,14 @@ | ||
-c base.txt | ||
-c test.txt | ||
# py38 | ||
# Requirements for local development in editor / outside tox | ||
# Can't be built by py37, target py38 for development. #198 | ||
|
||
# Constrain with CI requirements so Tox versions match | ||
-c ci.txt | ||
|
||
flake8 | ||
mypy | ||
pip-tools | ||
pytest | ||
tox | ||
yapf | ||
twine |
Oops, something went wrong.