Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh skeleton #1

Merged
merged 214 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
05a3c52
Python 3 only
jaraco Sep 11, 2019
757b121
Rename 'build-docs' to simply 'docs' (matching more popular convention).
jaraco Nov 29, 2019
9ef4b6e
Prefer 'path' to 'path.py'
jaraco Dec 1, 2019
83c3e1a
Merge branch 'feature/py3-only'
jaraco Dec 8, 2019
266a9c1
Cover Python 3.8 in Windows tests
jaraco Dec 8, 2019
76786bd
Update black in pre-commit and add blacken-docs.
jaraco Dec 21, 2019
051ce14
Test and release using Azure Pipelines
jaraco Jan 4, 2020
b07b273
Correct guidance on project creation.
jaraco Jan 11, 2020
0bf3d43
Rely on setuptools_scm 3.4 and setuptools 42. Now setup.py is optiona…
jaraco Jan 18, 2020
d9934dc
Spelling and capitalisation (#8)
hugovk Jan 18, 2020
7558cfe
Line wrap LICENSE file
johnthagen Jan 14, 2020
479ac21
Finish dropping support for Python 2 (I hope).
jaraco Jan 19, 2020
29c4972
Require toml extra for setuptools_scm (#12)
layday Jan 23, 2020
9a7d846
Fix AppVeyor typo
hugovk Jan 18, 2020
0aa6c5c
Link badge to PyPI rather than static image
hugovk Jan 23, 2020
0b681b0
setup.cfg: let python-tag mirror python_requires
vfazio Feb 4, 2020
eb00cd0
Normalize whitespace
jaraco Feb 9, 2020
4f84545
Revert "setup.cfg: let python-tag mirror python_requires"
jaraco Feb 17, 2020
8fbd841
Update to bionic for Travis. Correct comment about IPv6 workaround.
jaraco Feb 28, 2020
b4dd44c
Suppress warnings in pytest-flake8, pytest-black, and pytest-checkdocs.
jaraco Mar 15, 2020
2c2fee0
Prefer pytest-black to pytest-black-multipy
jaraco Mar 27, 2020
045e6ad
Test against Windows and Mac
jaraco Apr 5, 2020
7a0d596
Merge azure-pipelines with support for running tests on macOS and Win…
jaraco Apr 5, 2020
bb96dc3
Define a default pool_vm_image
jaraco Apr 25, 2020
f66d878
Remove tox-venv and tox-pip-version. Tox-venv is discouraged (https:/…
jaraco Apr 27, 2020
0df8947
Remove more references to tox-venv
jaraco May 2, 2020
649bc79
Add workaround for warning emitted when junitxml is used. Ref pytest-…
jaraco May 2, 2020
7455f2f
Include mypy for type checking during tests.
jaraco May 3, 2020
172c52b
Ensure virtualenv is upgraded when installing tox. Fixes jaraco/path#…
jaraco May 22, 2020
c764baf
Run tests on prereleases of Python on Windows. Fixes jaraco/skeleton#17.
jaraco May 23, 2020
fc0162b
Add workaround for python/mypy#8627. Fixes jaraco/skeleton#18.
jaraco May 23, 2020
814eb66
Add 'refresh.svg' demonstrating an example of refreshing a project wi…
jaraco May 23, 2020
169dad9
Move workaround for python/mypy#8627 to tox.ini, as adding it to setu…
jaraco May 24, 2020
a2fc279
Remove workaround for python/mypy#8627. Ref jaraco/skeleton#18.
jaraco Jul 26, 2020
e630a0c
Create Github releases when releasing the package. Fixes jaraco/skele…
jaraco Aug 30, 2020
8032e1d
Moved refresh.svg to another branch. Reference the animation from the…
jaraco Aug 30, 2020
6a13942
Add the env var mapping too.
jaraco Sep 2, 2020
15f6272
Disable pytest-black and pytest-mypy on PyPy. Fixes jaraco/skeleton#2…
jaraco Sep 4, 2020
3820754
Bump black and blacken-docs to latest stable versions.
jaraco Sep 8, 2020
8117892
Use enabled plugin configuration to enable mypy and black when the pl…
jaraco Sep 12, 2020
678e1a9
Also enable flake8 and cov when the plugins are present.
jaraco Sep 12, 2020
ea912cf
Add workflows for running tests. Ref jaraco/skeleton#24.
jaraco Oct 10, 2020
ce34be2
Cut releases from Github Actions instead of Azure Pipelines. Ref jara…
jaraco Oct 10, 2020
dcd7cbd
Refresh docs to prefer Github Actions to Azure Pipelines. Ref jaraco/…
jaraco Oct 11, 2020
5474714
Use RTD v2 config
jaraco Oct 18, 2020
6ad08b8
Test on Python 3.9. Skip 3.7 to avoid creating too many builds. Relea…
jaraco Oct 22, 2020
ca9ad41
Drop tests on Travis, Appveyor, and Azure Pipelines.
jaraco Oct 22, 2020
1311cec
use add-github-secrets, which infers the secrets needed from the gith…
jaraco Oct 23, 2020
95ce6f3
Use inline flags with local scope.
jaraco Oct 29, 2020
27f7c53
Honor TOX_WORK_DIR if set. Workaround for tox-dev/tox#20.
jaraco Nov 20, 2020
c681f67
Collapse skeleton history from archive/2020-12
jaraco Dec 8, 2020
a81fb90
Merge remote-tracking branch 'origin/archive/2020-12' into 2020-handoff
jaraco Dec 13, 2020
2667241
Update skeleton description to describe the periodic collapse. Fixes …
jaraco Dec 13, 2020
150321c
Enable automerge
jaraco Dec 13, 2020
a11446d
Merge branch 'main' into 2020-handoff
jaraco Dec 13, 2020
4b13346
Automatically inject project name in docs heading.
jaraco Dec 29, 2020
cfe99a5
pre-commit autoupdate
jaraco Dec 30, 2020
060d491
Rename 'Automated Tests' to simply 'tests'
jaraco Dec 30, 2020
2b839ba
Add note about automatic merging of PRs and the requirements and limi…
jaraco Dec 30, 2020
a36768a
Prefer pytest-enabler to jaraco.test
jaraco Dec 31, 2020
3e876d7
Enable complexity limit. Fixes jaraco/skeleton#34.
jaraco Jan 9, 2021
1731fbe
Replace pep517.build with build (#37)
webknjaz Jan 9, 2021
a9b3f68
Use license_files instead of license_file in meta (#35)
webknjaz Jan 9, 2021
77fbe1d
Use `extend-ignore` in flake8 config (#33)
webknjaz Jan 9, 2021
0df4081
Add support for namespace packages. Closes jaraco/skeleton#40.
jaraco Jan 16, 2021
51298a2
Normalize indentation
jaraco Feb 10, 2021
743af72
Exclude dist from discovered packages. Fixes jaraco/skeleton#46.
jaraco Feb 21, 2021
38fff62
Added an .editorconfig. Pull request jaraco/skeleton#43.
KOLANICH Feb 6, 2021
5e41679
It's no longer necessary to filter this warning and it's not a warnin…
jaraco Feb 22, 2021
d9a13c7
Bump minimum pytest
jaraco Feb 22, 2021
bf9fae2
Require twine 3 with keyring unconditionally required.
jaraco Mar 6, 2021
7bdab57
Add comments indicating why the exclusions are present
jaraco Mar 7, 2021
14312a5
Exclude mypy on Python 3.10 as workaround for python/typed_ast#156.
jaraco Mar 7, 2021
af54451
Bump minimums on pytest-checkdocs and pytest-enabler as found on Setu…
jaraco Mar 7, 2021
86efb88
Also deny black on Python 3.10 as workaround for python/typed_ast#156.
jaraco Mar 7, 2021
7fe4ab8
Add leading */ to coverage.run.omit. Workaround for pytest-dev/pytest…
jaraco Mar 15, 2021
6e2d0ba
Remove automerge. Fixes jaraco/skeleton#49.
jaraco Apr 26, 2021
2f690f6
Enable dependabot (#50)
jaraco Apr 26, 2021
6c1c45b
Replace md file with badge linking to documentation site. Fixes jarac…
jaraco Apr 26, 2021
8698127
Make sphinx fail on any warnings (#36)
webknjaz Apr 26, 2021
4a734d4
Test on Python 3.10
jaraco May 20, 2021
1b16520
Remove setup_requires, obviated by build-requires in pyproject.toml.
jaraco May 26, 2021
85d08db
Suppress deprecation warnings in flake8 and packaging.tags. Ref pypa/…
jaraco Jun 3, 2021
5a8384e
Use shutil for rmtree
bhrutledge Jun 12, 2021
14787e6
Rely on setuptools 56 and drop the explicit mention of the license fi…
jaraco Jul 16, 2021
212e995
Remove workaround for python/typed_ast#156.
jaraco Jul 16, 2021
498b965
Use line continuations to indicate which exclusions are for which wor…
jaraco Jul 16, 2021
719a7ce
Remove blacken docs as it cannot honor Python's default repr. Ref aso…
jaraco Jul 21, 2021
a76a548
.editorconfig: Set max_line_length to 88 for Python files.
darkvertex Jul 26, 2021
8ea55f2
Add intersphinx mappings for Python to prevent spurious nitpicky fail…
jaraco Sep 18, 2021
dc43378
Test on Python 3.10 (final).
jaraco Oct 6, 2021
5823e9c
Rely on pytest 6 and drop workaround for pytest-dev/pytest#6178.
jaraco Oct 7, 2021
aae281a
Remove wheel from build requirements. It's implied for wheel builds. …
jaraco Oct 22, 2021
0019b0a
Require Python 3.7 or later.
jaraco Nov 25, 2021
eca1c4c
Remove filtered warnings, addressed upstream.
jaraco Nov 25, 2021
4f9825d
Update badge year
jaraco Feb 1, 2022
7e01b72
Remove setup.py, no longer needed.
jaraco Feb 1, 2022
8949d1a
Add exclusions for pytest 7 deprecations in plugins. Fixes jaraco/ske…
jaraco Feb 5, 2022
badffe9
Use the parent category PytestDeprecationWarning, which is available …
jaraco Feb 5, 2022
96ea563
Bump pytest-mypy and remove workaround for dbader/pytest-mypy#131.
jaraco Feb 11, 2022
a9ea801
Require jaraco.packaging 9 adding compatibility for projects with no …
jaraco Feb 11, 2022
f22eb5b
Ignore flake8/black warnings with pytest 7.0.1 (jaraco/skeleton#58)
abravalheri Feb 12, 2022
04fe68a
Ran pre-commit autoupdate
jaraco Feb 20, 2022
1a6b828
Inject check job into CI workflow as ultimate flag (#55)
webknjaz Apr 22, 2022
10bf1b1
Add Python 3.11 into the matrix using workaround from actions/setup-p…
jaraco Jun 5, 2022
a4f5b76
Update base URL for PEPs (#61)
hugovk Jun 5, 2022
74f337f
Update Github actions to v3 (#62)
abravalheri Jun 5, 2022
e719f86
exclude build env from cov reporting (#60)
wimglenn Jun 5, 2022
6dcd157
Prefer spaces for rst. Fixes jaraco/skeleton#64.
jaraco Jun 16, 2022
2678a7e
Honor PEP 518 with pytest-enabler.
jaraco Jun 22, 2022
fea1e7c
Ran pre-commit autoupdate
jaraco Jul 11, 2022
325916c
Use '-dev' for every Python version. Ref actions/setup-python#213.
jaraco Jul 29, 2022
424717b
Use Python 3.11 for cutting releases.
jaraco Jul 29, 2022
c64902b
Pin flake8. Workaround for tholo/pytest-flake8#87.
jaraco Jul 30, 2022
abcc156
Update to setup-python v4. Fixes jaraco/skeleton#65.
jaraco Aug 18, 2022
47c2cb3
Also update release to v4
jaraco Aug 19, 2022
27c5534
Add PyPy to the test matrix on Linux. Fixes jaraco/skeleton#63.
jaraco Sep 25, 2022
b4f0ae6
When rendering docs, preserve the syntax for defaults. Fixes jaraco/p…
jaraco Sep 25, 2022
679eebb
Adopt furo theme for docs.
jaraco Sep 30, 2022
b241226
Indicate to use latest Python version (workaround for readthedocs/rea…
jaraco Sep 30, 2022
e95c54f
GHA pretty env (#67)
jaraco Oct 9, 2022
5467524
rename `.readthedocs.yml` to `.readthedocs.yaml` (RTD docs indicate t…
zacharyburnett Oct 13, 2022
da84e5c
Pin mypy to '<0.990' due to realpython/pytest-mypy#141
jaraco Nov 8, 2022
f999a53
Remove the hyperlink for the Python versions badge. The PyPI badge is…
jaraco Oct 21, 2022
401287d
Apply explicit_package_bases for mypy and unpin the version. Ref pyth…
jaraco Nov 10, 2022
56b6f1d
Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
jaraco Nov 19, 2022
9e13598
Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
jaraco Nov 19, 2022
9708c37
Honor ResourceWarnings. Fixes jaraco/skeleton#73.
jaraco Dec 6, 2022
86a55c8
tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jara…
jaraco Dec 9, 2022
ef52139
Remove unnecessary shebang and encoding header in docs conf.
jaraco Dec 11, 2022
c68ac3b
Prevent Python 3.12 from blocking checks.
jaraco Dec 12, 2022
82465b9
Build docs in CI, including sphinx-lint.
jaraco Dec 18, 2022
eb2bdc8
Update badge for 2023
jaraco Jan 2, 2023
f9e01d2
ALLOW_UNICODE no longer needed on Python 3. As a result, ELLIPSES is …
jaraco Jan 19, 2023
284359e
Enable default encoding warning where available. See PEP 597.
jaraco Jan 27, 2023
f18255f
Suppress EncodingWarning in pytest_black. Workaround for shopkeep/pyt…
jaraco Jan 27, 2023
0d9c6f0
Exempt warning. Workaround for realpython/pytest-mypy#152
jaraco Jan 27, 2023
5f095d1
Add #upstream markers for filtered warnings. Add filter for platform …
jaraco Feb 7, 2023
6f7ac88
Remove reference to EncodingWarning as it doesn't exist on some Pythons.
jaraco Feb 9, 2023
9650fc1
Revert "exclude build env from cov reporting (jaraco/skeleton#60)"
jaraco Feb 16, 2023
56cdf46
Disable couldnt-parse warnings. Prescribed workaround for nedbat/cove…
jaraco Feb 17, 2023
109f8c0
Feat: initial permissions to main.yml (jaraco/skeleton#76)
joycebrum Mar 18, 2023
5957d58
Remove unnecessary and incorrect copyright notice. Fixes jaraco/skele…
jaraco Apr 11, 2023
d2ec047
Replace flake8 with ruff. Fixes jaraco/skeleton#79 and sheds debt.
jaraco May 11, 2023
96ebfe1
Make substitution fields more prominent and distinct from true 'skele…
jaraco May 28, 2023
4ce054b
Suppress EncodingWarning in build.env. Ref pypa/build#615.
jaraco May 29, 2023
a0acaac
Remove reference to EncodingWarning as it doesn't exist on some Pythons.
jaraco May 29, 2023
6f75480
Update RTD boilerplate to new issue. Ref readthedocs/readthedocs.org#…
jaraco Jun 7, 2023
e7cd730
Add badge for Ruff.
jaraco Jun 9, 2023
241541c
Remove inclusion of python version for docs
jaraco Jun 16, 2023
74b0d39
Adopt towncrier for managing changelog. Fixes jaraco/skeleton#83.
jaraco Jun 20, 2023
cd145f4
Replace workaround for actions/setup-python#508 with 'allow-prereleases'
jaraco Jun 23, 2023
07a87ea
Remove tox boilerplate, no longer necessary with later versions of tox.
jaraco Jun 23, 2023
3b7d8a9
Require Python 3.8 or later.
jaraco Jun 19, 2023
8e83c3f
Expand 'finalize' to commit and tag the change.
jaraco Jun 23, 2023
74ba8ac
Leverage pytest-enabler 2.2 for the default config.
jaraco Jun 26, 2023
cca49a4
Prefer 3.x for Python version (latest stable).
jaraco Jul 3, 2023
c29955f
Collapse skeleton history. Workaround for jaraco/skeleton#87.
jaraco Jul 4, 2023
23ed6b1
Merge branch 'collapse' into 2023-handoff
jaraco Jul 4, 2023
972d1b3
Add links to project home page and pypi. Fixes jaraco/skeleton#77.
jaraco Jul 6, 2023
747c2a3
Replace redundant step names with simple 'Run'.
jaraco Jul 6, 2023
c43962a
Remove TOX_WORK_DIR workaround, no longer necessary with tox 4. Ref t…
jaraco Jul 11, 2023
0e2032c
Pin against sphinx 7.2.5 as workaround for sphinx/sphinx-doc#11662. C…
jaraco Aug 31, 2023
92d2d8e
Allow GITHUB_* settings to pass through to tests.
jaraco Sep 1, 2023
f3dc1f4
Remove spinner disablement. If it's not already fixed upstream, that'…
jaraco Sep 1, 2023
0484daa
Clean up 'color' environment variables.
jaraco Sep 1, 2023
b02bf32
Add diff-cover check to Github Actions CI. Closes jaraco/skeleton#90.
jaraco Sep 10, 2023
a6256e2
Add descriptions to the tox environments. Closes jaraco/skeleton#91.
jaraco Sep 10, 2023
928e9a8
Add FORCE_COLOR to the TOX_OVERRIDE for GHA. Requires tox 4.11.1. Clo…
jaraco Sep 10, 2023
ca1831c
Prefer ``pass_env`` in tox config. Preferred failure mode for tox-dev…
jaraco Sep 18, 2023
03f03e7
Limit sphinxlint jobs to 1. Workaround for sphinx-contrib/sphinx-lint…
jaraco Nov 5, 2023
75d9cc1
Upgrade GitHub Actions checkout (jaraco/skeleton#94)
cclauss Nov 15, 2023
5732ebe
GitHub Actions: Combine tox jobs diffcov and docs (jaraco/skeleton#95)
cclauss Nov 15, 2023
26f420a
Remove news fragment after allowing time to be processed downstream.
jaraco Nov 28, 2023
33dd012
Suppress deprecation warning in dateutil. Workaround for dateutil/dat…
jaraco Nov 29, 2023
97a5f44
Update Github Actions badge per actions/starter-workflows#1525.
jaraco Dec 4, 2023
8bff8b0
Enable testing merge queues @ GitHub Actions CI/CD (jaraco/skeleton#93)
webknjaz Dec 5, 2023
e4bd609
Separate collateral jobs on different lines for easier override/exten…
jaraco Dec 11, 2023
596e683
Drop minimum requirement on pytest-mypy as most environments are alre…
jaraco Dec 19, 2023
b8c6c15
Use the ruff formatter (jaraco/skeleton#99)
DimitriPapadopoulos Dec 22, 2023
a9c5dd5
Remove sole entry for branches-ignore. Workaround for and closes jara…
jaraco Dec 24, 2023
db0d581
ruff: extended-ignore → ignore (jaraco/skeleton#105)
DimitriPapadopoulos Dec 26, 2023
f6d9e10
Bump year on badge
jaraco Jan 2, 2024
dbcb074
Remove build and dist from excludes. It appears they are not needed a…
jaraco Jan 7, 2024
d278905
Exclude docs and tests directories properly per Setuptools behavior.
jaraco Jan 7, 2024
63535c6
Rely on default discovery for good heuristics for finding packages.
jaraco Jan 7, 2024
29e5d34
Enable preview to enable preserving quotes.
jaraco Feb 4, 2024
2a402a3
Tweak coverage configuration for type checking (jaraco/skeleton#97)
bswck Feb 6, 2024
68ac292
Use latest versions in RTD boilerplate.
jaraco Feb 6, 2024
178d254
Remove Sphinx pin. Ref sphinx-doc/sphinx#11662.
jaraco Feb 12, 2024
779219c
Include deps from the base config in diffcov.
jaraco Feb 18, 2024
d1c5444
Enable complexity check and pycodestyle warnings. Closes jaraco/skele…
jaraco Mar 2, 2024
b434f69
Use 'extend-select' to avoid disabling the default config. Ref jaraco…
jaraco Mar 2, 2024
a0d0c4b
Allow mypy on PyPy (jaraco/skeleton#111)
Avasam Mar 21, 2024
c9a7f97
Re-enable ignoring of temporary merge queue branches. Closes jaraco/s…
jaraco Mar 21, 2024
d72c6a0
Fetch unshallow clones in readthedocs. Closes jaraco/skeleton#114.
jaraco Mar 23, 2024
3fc7a93
Move Python 3.11 out of the test matrix.
jaraco Mar 30, 2024
6ff02e0
Configure pytest to support namespace packages. Ref pytest-dev/pytest…
jaraco Mar 31, 2024
34ba6b2
Add link to blog entry from jaraco/skeleton#115 above CI build matrix.
bswck Apr 1, 2024
7ad4f2f
Pin against pytest 8.1.x due to pytest-dev/pytest#12194.
jaraco Apr 16, 2024
6ca6cd0
Merge branch '2020-handoff' of https://github.com/jaraco/skeleton
jaraco Apr 17, 2024
1671014
Move changes to news to align with towncrier defaults
jaraco Apr 17, 2024
eb2e437
Merge branch '2023-handoff' of https://github.com/jaraco/skeleton int…
jaraco Apr 17, 2024
2889134
Merge commit '7ad4f2fa9fb2b030d3ecc231fc24de181705622d' of https://gi…
jaraco Apr 17, 2024
f08471b
Reformat with Ruff
bswck Apr 17, 2024
1035521
Add `types-PyYAML` to `testing` extras
bswck Apr 17, 2024
4eac55e
Fixing tests by sorting reference and built files.
diogobaeder Apr 18, 2024
3532009
Using PATH_SEPARATOR replacement to make sure tests run fine on Windows.
diogobaeder Apr 18, 2024
78272f4
Using friendlier Path open method.
diogobaeder Apr 18, 2024
0ac8a85
Replacing some remaining directory separators.
diogobaeder Apr 18, 2024
e7e623f
Hopefully the last remaining replacement for directories to make Wind…
diogobaeder Apr 18, 2024
47a0cf6
Hopefully the last remaining replacement for directories to make Wind…
diogobaeder Apr 18, 2024
358b353
Apply suggestions from code review
diogobaeder Apr 18, 2024
a923c1f
Fixing underline for title.
diogobaeder Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
[run]
omit =
.tox/*
tests/*
# leading `*/` for pytest-dev/pytest-cov#456
*/.tox/*

# local
tests/*
disable_warnings =
couldnt-parse

[report]
show_missing = True
exclude_also =
# jaraco/skeleton#97
@overload
if TYPE_CHECKING:
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
insert_final_newline = true
end_of_line = lf

[*.py]
indent_style = space
max_line_length = 88

[*.{yml,yaml}]
indent_style = space
indent_size = 2

[*.rst]
indent_style = space
9 changes: 0 additions & 9 deletions .flake8

This file was deleted.

8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-type: "all"
122 changes: 122 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: tests

on:
merge_group:
push:
branches-ignore:
# temporary GH branches relating to merge queues (jaraco/skeleton#93)
- gh-readonly-queue/**
tags:
# required if branches-ignore is supplied (jaraco/skeleton#103)
- '**'
pull_request:

permissions:
contents: read

env:
# Environment variable to support color support (jaraco/skeleton#66)
FORCE_COLOR: 1

# Suppress noisy pip warnings
PIP_DISABLE_PIP_VERSION_CHECK: 'true'
PIP_NO_PYTHON_VERSION_WARNING: 'true'
PIP_NO_WARN_SCRIPT_LOCATION: 'true'

# Ensure tests can sense settings about the environment
TOX_OVERRIDE: >-
testenv.pass_env+=GITHUB_*,FORCE_COLOR


jobs:
test:
strategy:
# https://blog.jaraco.com/efficient-use-of-ci-resources/
diogobaeder marked this conversation as resolved.
Show resolved Hide resolved
matrix:
python:
- "3.8"
- "3.12"
platform:
- ubuntu-latest
- macos-latest
- windows-latest
include:
- python: "3.9"
platform: ubuntu-latest
- python: "3.10"
platform: ubuntu-latest
- python: "3.11"
platform: ubuntu-latest
- python: pypy3.10
platform: ubuntu-latest
runs-on: ${{ matrix.platform }}
continue-on-error: ${{ matrix.python == '3.13' }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install tox
run: python -m pip install tox
- name: Run
run: tox

collateral:
strategy:
fail-fast: false
matrix:
job:
- diffcov
- docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install tox
run: python -m pip install tox
- name: Eval ${{ matrix.job }}
run: tox -e ${{ matrix.job }}

check: # This job does nothing and is only used for the branch protection
if: always()

needs:
- test
- collateral

runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

release:
permissions:
contents: write
needs:
- check
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install tox
run: python -m pip install tox
- name: Run
run: tox -e release
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 19.3b0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.8
hooks:
- id: black
- id: ruff
- id: ruff-format
16 changes: 16 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
python:
install:
- path: .
extra_requirements:
- docs

# required boilerplate readthedocs/readthedocs.org#10401
build:
os: ubuntu-lts-latest
tools:
python: latest
# post-checkout job to ensure the clone isn't shallow jaraco/skeleton#114
jobs:
post_checkout:
- git fetch --unshallow || true
5 changes: 0 additions & 5 deletions .readthedocs.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

22 changes: 9 additions & 13 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
MIT License

Copyright (c) 2019 YouGov

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
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 above copyright notice and this permission notice shall be included in all
copies or substantial portions of 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.
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.
File renamed without changes.
24 changes: 13 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
python-kustomize
================

Build your Kubernetes manifests for Kustomize in Python!

.. image:: https://img.shields.io/pypi/v/kustomize.svg
:target: https://pypi.org/project/kustomize

.. image:: https://img.shields.io/pypi/pyversions/kustomize.svg

.. image:: https://img.shields.io/travis/yougov/python-kustomize/master.svg
:target: https://travis-ci.org/yougov/python-kustomize
.. image:: https://github.com/coherent-oss/python-kustomize/actions/workflows/main.yml/badge.svg
:target: https://github.com/coherent-oss/python-kustomize/actions?query=workflow%3A%22tests%22
:alt: tests

.. .. image:: https://img.shields.io/appveyor/ci/yougov/python-kustomize/master.svg
.. :target: https://ci.appveyor.com/project/yougov/python-kustomize/branch/master
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
:target: https://github.com/astral-sh/ruff
:alt: Ruff

.. .. image:: https://readthedocs.org/projects/kustomize/badge/?version=latest
.. :target: https://kustomize.readthedocs.io/en/latest/?badge=latest
.. .. image:: https://readthedocs.org/projects/PROJECT_RTD/badge/?version=latest
.. :target: https://PROJECT_RTD.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2024-informational
:target: https://blog.jaraco.com/skeleton

Build your Kubernetes manifests for Kustomize in Python!

* PyPI: https://pypi.org/project/kustomize/
* Repository: https://github.com/yougov/python-kustomize
Expand Down
23 changes: 0 additions & 23 deletions appveyor.yml

This file was deleted.

30 changes: 23 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,42 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']
extensions = [
'sphinx.ext.autodoc',
'jaraco.packaging.sphinx',
]

master_doc = "index"
html_theme = "furo"

# Link dates and other references in the changelog
extensions += ['rst.linker']
link_files = {
'../CHANGES.rst': dict(
'../NEWS.rst': dict(
using=dict(GH='https://github.com'),
replace=[
dict(
pattern=r'(Issue #|\B#)(?P<issue>\d+)',
url='{package_url}/issues/{issue}',
),
dict(
pattern=r'^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n',
pattern=r'(?m:^((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n)',
with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n',
),
dict(
pattern=r'PEP[- ](?P<pep_number>\d+)',
url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',
url='https://peps.python.org/pep-{pep_number:0>4}/',
),
],
)
}

# Be strict about any broken references
nitpicky = True

# Include Python intersphinx mapping to prevent failures
# jaraco/skeleton#51
extensions += ['sphinx.ext.intersphinx']
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
}

# Preserve authored syntax for defaults
autodoc_preserve_defaults = True
2 changes: 1 addition & 1 deletion docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
History
*******

.. include:: ../CHANGES.rst
.. include:: ../NEWS.rst
Loading
Loading