Skip to content

Commit d18844d

Browse files
authored
Merge pull request #77 from DavidCEllis/add_build_test
* Change the checkout to include tags for correct setuptools-scm builds
2 parents f9fee88 + 46419cd commit d18844d

File tree

6 files changed

+67
-1
lines changed

6 files changed

+67
-1
lines changed

.github/workflows/auto_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v5
21+
with:
22+
fetch-depth: 0
2123
- name: Set up Python ${{ matrix.python-version }}
2224
uses: actions/setup-python@v6
2325
with:

.github/workflows/build_zipapp.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
1517
- name: Set up Python
1618
uses: actions/setup-python@v6
1719
with:

.github/workflows/publish_to_pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v5
14+
with:
15+
fetch-depth: 0
1416
- name: Set up Python
1517
uses: actions/setup-python@v6
1618
with:

.github/workflows/publish_to_testpypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
1517
- name: Set up Python
1618
uses: actions/setup-python@v6
1719
with:

.github/workflows/test_builds.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Test Builds
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
zipapp-build:
11+
name: Test Zipapp Build
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v5
16+
with:
17+
fetch-depth: 0
18+
- name: Set up Python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: "3.10" # build with oldest supported python
22+
- name: Build the Zipapp
23+
run: >-
24+
python3 scripts/build_zipapp.py
25+
- name: Store the built zipapp
26+
uses: actions/upload-artifact@v5
27+
with:
28+
name: pythonfinder-zipapp
29+
path: dist/
30+
retention-days: 1
31+
32+
wheel-build:
33+
name: Test Wheel Build
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- uses: actions/checkout@v5
38+
with:
39+
fetch-depth: 0
40+
- name: Set up Python
41+
uses: actions/setup-python@v6
42+
with:
43+
python-version: "3.10"
44+
- name: Install pypa/build
45+
run: >-
46+
python3 -m
47+
pip install
48+
build
49+
--user
50+
- name: Build a binary wheel and a source tarball
51+
run: python3 -m build
52+
- name: Store the distribution packages
53+
uses: actions/upload-artifact@v5
54+
with:
55+
name: python-package-distributions
56+
path: dist/
57+
retention-days: 1

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ authors = [
1212
{ name = "David C Ellis" },
1313
]
1414
readme = "README.md"
15+
license = "MIT"
16+
license-files = ["LICENSE"]
1517
requires-python = ">=3.10"
1618
dependencies = [
1719
"ducktools-lazyimporter>=0.7.3",
@@ -24,7 +26,6 @@ classifiers = [
2426
"Programming Language :: Python :: 3.11",
2527
"Programming Language :: Python :: 3.12",
2628
"Programming Language :: Python :: 3.13",
27-
"License :: OSI Approved :: MIT License",
2829
"Operating System :: MacOS",
2930
"Operating System :: Microsoft :: Windows :: Windows 10",
3031
"Operating System :: POSIX :: Linux",

0 commit comments

Comments
 (0)