diff --git a/.github/workflows/auto_test.yml b/.github/workflows/auto_test.yml index e6b333b..646c40a 100644 --- a/.github/workflows/auto_test.yml +++ b/.github/workflows/auto_test.yml @@ -18,6 +18,8 @@ jobs: steps: - uses: actions/checkout@v5 + with: + fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6 with: diff --git a/.github/workflows/build_zipapp.yml b/.github/workflows/build_zipapp.yml index eb33d3b..8120c84 100644 --- a/.github/workflows/build_zipapp.yml +++ b/.github/workflows/build_zipapp.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v5 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v6 with: diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index 7224264..e7e7f67 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -11,6 +11,8 @@ jobs: steps: - uses: actions/checkout@v5 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v6 with: diff --git a/.github/workflows/publish_to_testpypi.yml b/.github/workflows/publish_to_testpypi.yml index 3e5dfa7..7f7b0ff 100644 --- a/.github/workflows/publish_to_testpypi.yml +++ b/.github/workflows/publish_to_testpypi.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v5 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v6 with: diff --git a/.github/workflows/test_builds.yml b/.github/workflows/test_builds.yml new file mode 100644 index 0000000..8d50d44 --- /dev/null +++ b/.github/workflows/test_builds.yml @@ -0,0 +1,57 @@ +name: Test Builds + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + zipapp-build: + name: Test Zipapp Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.10" # build with oldest supported python + - name: Build the Zipapp + run: >- + python3 scripts/build_zipapp.py + - name: Store the built zipapp + uses: actions/upload-artifact@v5 + with: + name: pythonfinder-zipapp + path: dist/ + retention-days: 1 + + wheel-build: + name: Test Wheel Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.10" + - name: Install pypa/build + run: >- + python3 -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: python3 -m build + - name: Store the distribution packages + uses: actions/upload-artifact@v5 + with: + name: python-package-distributions + path: dist/ + retention-days: 1 diff --git a/pyproject.toml b/pyproject.toml index 571396a..72662c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,8 @@ authors = [ { name = "David C Ellis" }, ] readme = "README.md" +license = "MIT" +license-files = ["LICENSE"] requires-python = ">=3.10" dependencies = [ "ducktools-lazyimporter>=0.7.3", @@ -24,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows :: Windows 10", "Operating System :: POSIX :: Linux",