-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #862 from freakboy3742/template-versioning
Fixes #824 - Use briefcase version rather than Python version for template versioning
- Loading branch information
Showing
33 changed files
with
1,121 additions
and
440 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 |
---|---|---|
|
@@ -13,8 +13,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3.0.2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
|
@@ -51,26 +52,28 @@ jobs: | |
run: | | ||
pip install --upgrade pip | ||
pip install --upgrade setuptools | ||
pip install tox | ||
pip install setuptools_scm tox | ||
- name: Run pre-test check | ||
run: | | ||
tox -e ${{ matrix.task }} | ||
smoke: | ||
name: Smoke test (3.7) | ||
name: Smoke test | ||
needs: beefore | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.7 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.7" | ||
python-version: ${{ env.python_version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install --upgrade setuptools | ||
pip install tox | ||
pip install setuptools_scm tox | ||
- name: Test | ||
run: | | ||
tox -e py | ||
|
@@ -92,9 +95,11 @@ jobs: | |
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0'] | ||
python-version: ['3.8', '3.10', '3.11.0-alpha - 3.11.0'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -103,7 +108,7 @@ jobs: | |
run: | | ||
pip install --upgrade pip | ||
pip install --upgrade setuptools | ||
pip install tox | ||
pip install setuptools_scm tox | ||
- name: Test | ||
run: | | ||
tox -e py | ||
|
@@ -125,6 +130,8 @@ jobs: | |
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -133,7 +140,7 @@ jobs: | |
run: | | ||
pip install --upgrade pip | ||
pip install --upgrade setuptools | ||
pip install tox | ||
pip install setuptools_scm tox | ||
- name: Test | ||
run: | | ||
tox -e py | ||
|
@@ -183,6 +190,8 @@ jobs: | |
${{ matrix.pip-cache-dir }} | ||
${{ matrix.docker-cache-dir }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -195,6 +204,7 @@ jobs: | |
run: | | ||
pip install --upgrade pip | ||
pip install --upgrade setuptools | ||
pip install setuptools_scm | ||
pip install . | ||
- name: Create App | ||
run: | | ||
|
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 @@ | ||
Briefcase templates are now versioned by the Briefcase version, rather than the Python version. |
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 |
---|---|---|
@@ -1,10 +1,29 @@ | ||
[build-system] | ||
requires = ["setuptools>=60", "setuptools_scm[toml]>=7.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
skip_glob = [ | ||
"docs/conf.py", | ||
"venv*", | ||
"local", | ||
] | ||
multi_line_output = 3 | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
|
||
# need to ensure build directories aren't excluded from recursion | ||
norecursedirs = [] | ||
|
||
[tool.setuptools_scm] | ||
# To enable SCM versioning, we need an empty tool configuration for setuptools_scm | ||
|
||
[tool.towncrier] | ||
directory = "changes" | ||
package = "briefcase" | ||
package_dir = "src" | ||
filename = "docs/background/releases.rst" | ||
title_format = "{version} ({project_date})" | ||
template = "changes/template.rst" | ||
|
||
[tool.isort] | ||
profile = "black" |
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,2 +1,3 @@ | ||
setuptools_scm[toml]>=7.0 | ||
pre-commit | ||
tox |
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
Oops, something went wrong.