Skip to content

feat!: v8 #619

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

Merged
merged 66 commits into from
Jul 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
c16bbe3
feat!: 8.0.x (#538)
bernardcooke53 Dec 18, 2022
88a3b42
fix: correct Dockerfile CLI command and GHA fetch
bernardcooke53 Dec 18, 2022
d09b960
fix: resolve branch checkout logic in GHA
bernardcooke53 Dec 19, 2022
ca17207
fix: remove commit amending behaviour
bernardcooke53 Dec 19, 2022
e3e2a0e
8.0.0-alpha.1
Dec 19, 2022
613528a
fix: correct logic for generating release notes (#550)
bernardcooke53 Jan 31, 2023
2fdceee
fix: cleanup comments and unused logic
bernardcooke53 Jan 31, 2023
51ea742
fix(action): mark container fs as safe for git to operate on
bernardcooke53 Feb 1, 2023
c284292
style: beautify 49080c510a68cccd2f6c7a8d540b483751901207
actions-user Feb 1, 2023
45824cf
fix(action): quotation for git config command
bernardcooke53 Feb 1, 2023
2768b7e
8.0.0-alpha.2
Feb 1, 2023
bd314b3
fix: resolve bug in changelog logic, enable upload to pypi
bernardcooke53 Feb 4, 2023
d428bab
8.0.0-alpha.3
Feb 4, 2023
b5d5872
test: add tests for ReleaseHistory.release
bernardcooke53 Feb 11, 2023
eb85e0e
fix: resolve loss of tag_format configuration
bernardcooke53 Feb 27, 2023
ce898fd
8.0.0-alpha.4
Feb 27, 2023
e5df042
feat: various improvements
bernardcooke53 Dec 18, 2022
bcb27a4
chore(test): proper env patching for tests in CI
bernardcooke53 Apr 17, 2023
0acfd91
style: beautify bcb27a4a8ce4789d083226f088c1810f45cd4c77
actions-user Apr 17, 2023
6176b97
refactor!: remove verify-ci command
bernardcooke53 Apr 17, 2023
5ff0e11
8.0.0-alpha.5
Apr 17, 2023
ac8ae1d
fix(docs): fixup docs and remove reference to dist publication
bernardcooke53 May 20, 2023
7b59764
feat!: remove publication of dists to artefact repository
bernardcooke53 May 20, 2023
f0ebe6f
Merge branch 'master' into 8.0.x
bernardcooke53 May 28, 2023
24edf94
feat: rename 'upload' configuration section to 'publish'
bernardcooke53 May 28, 2023
314e98e
feat!: removed build status checking
bernardcooke53 May 28, 2023
d88402d
feat: add GitHub Actions output
bernardcooke53 May 29, 2023
6a83a56
fix(action): remove default for 'force'
bernardcooke53 May 29, 2023
7fbf639
fix(ci): different workflow for v8
bernardcooke53 May 29, 2023
067cd41
fix(action): correct input parsing
bernardcooke53 May 29, 2023
99f91d8
fix: correct handling of build commands
bernardcooke53 Jun 4, 2023
bfb0cea
feat: make it easier to access commit messages in ParsedCommits
bernardcooke53 Jun 4, 2023
49d9e27
Merge branch 'master' into 8.0.x
bernardcooke53 Jun 4, 2023
4e2fcbe
fix: make additional attributes available for template authors
bernardcooke53 Jun 4, 2023
d5ed644
fix: add logging for token auth, use token for push
bernardcooke53 Jun 4, 2023
adf4e54
ci: add verbosity
bernardcooke53 Jun 4, 2023
67572bd
fix: caching for repo owner and name
bernardcooke53 Jun 4, 2023
897dd8d
ci: contents permission for workflow
bernardcooke53 Jun 4, 2023
c335a87
8.0.0-alpha.6
Jun 4, 2023
8d09c30
docs: update docs with additional required permissions
bernardcooke53 Jun 4, 2023
89de15f
feat: add option to specify tag to publish to in publish command
bernardcooke53 Jun 11, 2023
2a128de
feat: add Strict Mode
bernardcooke53 Jun 11, 2023
e02547e
docs: convert to Furo theme
bernardcooke53 Jun 11, 2023
f3b7600
feat: add --skip-build option
bernardcooke53 Jun 11, 2023
fbfe718
8.0.0-alpha.7
Jun 11, 2023
01fa1b6
test: separate command line tests by stdout and stderr
bernardcooke53 Jun 11, 2023
d568c69
ci: pass tag output and conditionally execute publish steps
bernardcooke53 Jun 11, 2023
0e85b94
fix: correct assets type in configuration (#603)
smeng9 Jun 13, 2023
2f4b878
8.0.0-alpha.8
Jun 13, 2023
d17ec69
fix: pin Debian version in Dockerfile
bernardcooke53 Jun 17, 2023
8b89ecd
feat: promote to rc
bernardcooke53 Jun 17, 2023
1b1f544
8.0.0-rc.1
Jun 17, 2023
c6569a1
Merge branch 'master' into 8.0.x
bernardcooke53 Jun 17, 2023
b15bddd
ci: fix conditionals in workflow and update documentation
bernardcooke53 Jun 17, 2023
eb8d53c
ci: correct conditionals
bernardcooke53 Jun 17, 2023
8c64cf9
fix: only call Github Action output callback once defaults are set
bernardcooke53 Jun 28, 2023
31ae4d1
8.0.0-rc.2
Jun 28, 2023
ba5c0d7
fix: create_or_update_release for Gitlab hvcs
bernardcooke53 Jul 1, 2023
b739abf
ci: remove separate v8 workflow
bernardcooke53 Jul 1, 2023
b9827eb
chore: tweak issue templates
bernardcooke53 Jul 1, 2023
2605b73
chore: bump docs dependencies
bernardcooke53 Jul 1, 2023
4cba4c2
8.0.0-rc.3
Jul 1, 2023
126f12f
fix(deps): add types-click, and downgrade sphinx/furo for 3.7
bernardcooke53 Jul 9, 2023
72cb65d
8.0.0-rc.4
Jul 9, 2023
10d0003
docs: fix typo (#623)
MicaelJarniac Jul 16, 2023
ea1499c
docs: correct typo in docs/changelog_templates.rst
bernardcooke53 Jul 16, 2023
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
8 changes: 8 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Separate config file because flake8 is doesn't want to use pyproject.toml
# for config - https://github.com/PyCQA/flake8/issues/234
[flake8]
max-line-length = 88
per-file-ignores =
# Imported but unusued
*/__init__.py = F401
*/__main__.py = F401
42 changes: 36 additions & 6 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,50 @@
---
name: Bug report
about: Something isn't working properly
title: ''
title: ""
labels: bug
assignees: ''

assignees: ""
---

## The problem

*A clear and concise description of what the bug is.*
_A clear and concise description of what the bug is._

## Expected behavior

*A short description of what you expected to happen.*
_A short description of what you expected to happen._

## Environment

Please state which OS you are using and provide the output of the following commands:

```shell
python --version
pip --version
semantic-release --version
pip freeze
```

Please also indicate which Python build tool(s) you are using (e.g. `pip`, `build`,
`poetry`, etc.), including the version number too.

## Configuration

Please add your `semantic-release` configuration, and if applicable also provide
your `build-system` configuration from `pyproject.toml`.

## Logs

Please provide debug logs for the command you are using with the `-vv` flag, e.g.

```shell
semantic-release -vv version
```

If using GitHub actions, ensure the `root_options` contains the `-vv` flag
for verbosity, and attach your workflow definition.

## Additional context

*Add any other information that could be useful, such as your configuration file or an example commit.*
_Add any other information that could be useful, such as a link to your project
(if public), links to a failing GitHub Action, or an example commit._
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Documentation
about: I found an error or gap in the docs
title: ''
title: ""
labels: docs
assignees: danth

assignees: ""
---

*Please describe your problem. Include links to any relevant pages or files.*
_Please describe your problem. Include links to any relevant pages or files._
7 changes: 2 additions & 5 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
name: Question
about: I have a question about Python Semantic Release
title: ''
title: ""
labels: question
assignees: ''

assignees: ""
---


60 changes: 47 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
---
name: Test & Release

on:
push:
branches:
- master
- "8.0.x"

jobs:
test:
name: Python ${{ matrix.python-version }} tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]

steps:
- uses: actions/checkout@v3
Expand All @@ -24,7 +26,7 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-

Expand All @@ -34,7 +36,7 @@ jobs:
python -m pip install pytest-github-actions-annotate-failures

- name: pytest
run: python -m pytest -v tests
run: PYTHONHASHSEED=123345 python -m pytest -v tests

mypy:
runs-on: ubuntu-latest
Expand All @@ -54,9 +56,12 @@ jobs:
name: Beautify
runs-on: ubuntu-latest
concurrency: push
needs: [test, mypy]
needs: [ test, mypy ]
outputs:
new_sha: ${{ steps.sha.outputs.SHA }}
permissions:
id-token: write
contents: write

steps:
- name: Set up Python 3.9
Expand All @@ -74,10 +79,11 @@ jobs:
run: python -m black .

- name: Install isort
run: python -m pip install "isort >=4,<5"

run: python -m pip install "isort >=5,<6"
# https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0.html
# removed deprecated "-rc" and "-y" arguments
- name: Sort imports
run: python -m isort -y -rc .
run: python -m isort .

- name: Commit and push changes
uses: github-actions-x/commit@v2.9
Expand All @@ -97,19 +103,47 @@ jobs:
name: Semantic Release
runs-on: ubuntu-latest
concurrency: push
needs: [test, mypy, beautify]
needs: [ test, mypy, beautify ]
if: github.repository == 'python-semantic-release/python-semantic-release'
permissions:
# https://docs.github.com/en/rest/overview/permissions-required-for-github-apps?apiVersion=2022-11-28#metadata
id-token: write
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ needs.beautify.outputs.new_sha }}
- name: Fetch master
run: git fetch --prune origin +refs/heads/master:refs/remotes/origin/master
ref: ${{ github.ref_name }}
- name: Python Semantic Release
id: release
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: ${{ secrets.PYPI_USERNAME }}
repository_password: ${{ secrets.PYPI_PASSWORD }}
root_options: "-vv"

# https://github.com/pypa/gh-action-pypi-publish#specifying-a-different-username
# This will need converting to use trusted publishing at a later date
# see https://docs.pypi.org/trusted-publishers/
- name: Publish package distributions to PyPI
id: pypi-publish

# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}

- name: Publish package distributions to GitHub Releases
id: github-release

# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'
uses: python-semantic-release/upload-to-gh-release@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}
5 changes: 3 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Checks

on:
Expand All @@ -23,7 +24,7 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-

Expand All @@ -33,7 +34,7 @@ jobs:
python -m pip install pytest-github-actions-annotate-failures

- name: pytest
run: python -m pytest -v tests
run: PYTHONHASHSEED=123345 python -m pytest -v tests

mypy:
runs-on: ubuntu-latest
Expand Down
Loading