Skip to content

Commit 2f87e26

Browse files
authored
Merge pull request #193 from mikelolasagasti/license-pyproject
Define license and license file in pyproject
2 parents 980a906 + bbd4896 commit 2f87e26

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
test:
99
if: github.event_name != 'pull_request' || !contains('OWNER,MEMBER,COLLABORATOR', github.event.pull_request.author_association)
1010
name: Test py${{ matrix.python }}
11-
runs-on: ubuntu-${{ matrix.python == 3.7 && '22.04' || 'latest' }}
11+
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python: [3.7, 3.12]
14+
python: [3.9, 3.13]
1515
steps:
1616
- uses: actions/checkout@v4
1717
with: {fetch-depth: 0}
@@ -41,6 +41,7 @@ jobs:
4141
uses: casperdcl/deploy-pypi@v2
4242
with:
4343
build: true
44+
requirements: 'build twine packaging>=24.2' # https://github.com/pypa/twine/issues/1216
4445
upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
4546
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
4647
name: Release

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ authors = [{name = "Casper da Costa-Luis", email = "[email protected]"}]
2424
maintainers = [{name = "Iterative", email = "[email protected]"}]
2525
description = "Automagic shell tab completion for Python CLI applications"
2626
readme = "README.rst"
27-
requires-python = ">=3.7"
27+
requires-python = ">=3.9"
2828
keywords = ["tab", "complete", "completion", "shell", "bash", "zsh", "argparse"]
29-
license = {text = "Apache-2.0"}
29+
license = "Apache-2.0"
3030
classifiers = [
3131
"Development Status :: 5 - Production/Stable",
3232
"Environment :: Console",
@@ -37,7 +37,6 @@ classifiers = [
3737
"Intended Audience :: End Users/Desktop",
3838
"Intended Audience :: Other Audience",
3939
"Intended Audience :: System Administrators",
40-
"License :: OSI Approved :: Apache Software License",
4140
"Operating System :: MacOS",
4241
"Operating System :: MacOS :: MacOS X",
4342
"Operating System :: POSIX",
@@ -49,12 +48,11 @@ classifiers = [
4948
"Programming Language :: Other Scripting Engines",
5049
"Programming Language :: Python",
5150
"Programming Language :: Python :: 3",
52-
"Programming Language :: Python :: 3.7",
53-
"Programming Language :: Python :: 3.8",
5451
"Programming Language :: Python :: 3.9",
5552
"Programming Language :: Python :: 3.10",
5653
"Programming Language :: Python :: 3.11",
5754
"Programming Language :: Python :: 3.12",
55+
"Programming Language :: Python :: 3.13",
5856
"Programming Language :: Python :: 3 :: Only",
5957
"Programming Language :: Python :: Implementation",
6058
"Programming Language :: Python :: Implementation :: IronPython",

0 commit comments

Comments
 (0)