-
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.
* build: move to Poetry First step - moving `pyproject.toml`. * fix(build): include from `src/` * fix(build): version variable * fix(tools): ignore `.venv` * chore(deps): separate Python and other deps * build(deps): remove direct dep of `mypy-extensions` Mypy itself already depends on it. * build(deps): remove `toml` * fix(deps): downgrade `semver` Was incompatible with `python-semantic-release` * build(deps): `poetry.lock` * chore: `tool.ruff.target-version` It doesn't understand Poetry's Python version setting. * build(dev-deps): create linting group * test: Nox with Poetry * build(ci): Poetry pre-commit hooks * build(ci): use Poetry * build(ci): `poetry shell` * build(ci): use `snok/install-poetry` * build(ci): run on any PR, push to main * build(ci): experimenting * build(ci): force color * build(ci): force color * build(ci): remove redundant actions * build(ci): Poetry `--ansi` results in spam * build(ci): specify Python version * chore: delete `constraints.txt` * build(ci): move pre-commit inside Nox * build(ci): don't install setuptools, wheel * build(ci): pre-commit colors * fix: Black wouldn't run if Ruff failed * build(ci): workflows * chore: `poetry.lock` * build(cd): use PyPI Trusted Publishing * build(docs): install with Poetry * docs: Poetry * chore: remove `semver` dep * build(deps): update lockfile * build: install Poetry to build * build(release): write permissions * 0.1.0 Automatically generated by python-semantic-release * Revert "0.1.0" This reverts commit 1ef6a06490382a95356be453072751a858da36d6. * 0.1.0 Automatically generated by python-semantic-release * Revert "0.1.0" This reverts commit c6547ada54f35a9a9d8a055593c09f38b5c3b447. * 0.1.0 Automatically generated by python-semantic-release * docs(readme): fix action badge * build(docs): fix Poetry install command * build: fix URLs * build: remove version classifiers, Poetry will add * build(release): `build_command = "python -m build"` * build(release): fix build command * 0.1.1 Automatically generated by python-semantic-release * chore: delete CHANGELOG.md * chore: fix --------- Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
f7810b7
commit c363387
Showing
15 changed files
with
253 additions
and
287 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
22 changes: 22 additions & 0 deletions
22
{{cookiecutter.project_distribution_name}}/.github/workflows/ci.yml
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,22 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
CLICOLOR_FORCE: 1 # https://github.com/astral-sh/ruff/issues/5499 | ||
PRE_COMMIT_COLOR: "always" # https://github.com/pre-commit/pre-commit/issues/2918 | ||
|
||
jobs: | ||
Nox: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: snok/install-poetry@v1 | ||
- uses: daisylb/[email protected] | ||
- run: nox |
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
17 changes: 0 additions & 17 deletions
17
{{cookiecutter.project_distribution_name}}/.github/workflows/nox.yml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
{{cookiecutter.project_distribution_name}}/.github/workflows/pre-commit.yml
This file was deleted.
Oops, something went wrong.
44 changes: 30 additions & 14 deletions
44
{{cookiecutter.project_distribution_name}}/.github/workflows/semantic-release.yml
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,22 +1,38 @@ | ||
name: Semantic Release | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Test with Nox"] | ||
branches: [main] | ||
types: | ||
- completed | ||
push: | ||
branches: | ||
- main | ||
- rc | ||
|
||
jobs: | ||
release: | ||
Release: | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Python Semantic Release | ||
uses: python-semantic-release/python-semantic-release@master | ||
with: | ||
github_token: {{ "${{ secrets.GITHUB_TOKEN }}" }} | ||
pypi_token: {{ "${{ secrets.PYPI_TOKEN }}" }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Python Semantic Release | ||
id: release | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
github_token: ${{"{{"}} secrets.GITHUB_TOKEN {{"}}"}} | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: steps.release.outputs.released == 'true' | ||
|
||
- name: Publish package to GitHub | ||
uses: python-semantic-release/upload-to-gh-release@main | ||
if: steps.release.outputs.released == 'true' | ||
with: | ||
github_token: ${{"{{"}} secrets.GITHUB_TOKEN {{"}}"}} | ||
tag: ${{"{{"}} steps.release.outputs.tag {{"}}"}} |
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
94 changes: 0 additions & 94 deletions
94
{{cookiecutter.project_distribution_name}}/constraints.txt
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
Oops, something went wrong.