From 345a251ad50e0849e600fa6b594c17a3afd01c3e Mon Sep 17 00:00:00 2001 From: Joshua Taillon Date: Tue, 7 Jan 2025 22:38:58 -0700 Subject: [PATCH] change install action command --- .github/workflows/install.yml | 10 ++++++++-- .github/workflows/publish_and_release.yml | 10 +++++++++- pyproject.toml | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index ff61a3c..004e052 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -12,9 +12,15 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.12", "3.13"] steps: - name: Checkout latest commit uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - name: Install - run: pip install -r requirements.txt \ No newline at end of file + run: pip install . + - name: Test script + run: fit-file-faker -h diff --git a/.github/workflows/publish_and_release.yml b/.github/workflows/publish_and_release.yml index 83cb3d8..34ed570 100644 --- a/.github/workflows/publish_and_release.yml +++ b/.github/workflows/publish_and_release.yml @@ -113,7 +113,15 @@ jobs: with: name: python-package-distributions path: dist/ + - name: Rename files + run: | + sudo apt install -y rename + rename 's/\.tar\.gz/_'${GITHUB_SHA:0:7}'\.tar\.gz/' dist/*.tar.gz + rename 's/\.whl/_'${GITHUB_SHA:0:7}'\.whl/' dist/*.whl + - name: List files + run: ls -lah dist - name: Publish distribution 📦 to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - repository-url: https://test.pypi.org/legacy/ \ No newline at end of file + repository-url: https://test.pypi.org/legacy/ + verbose: true \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index d2d8a3d..ad4cfee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ Homepage = "https://github.com/jat255/Fit-File-Faker" Issues = "https://github.com/jat255/Fit-File-Faker/issues" [build-system] -requires = ["setuptools>=61.0"] +requires = ["setuptools>=64.0"] build-backend = "setuptools.build_meta" [project.scripts]