From f9d1910bd0c81a9d82c6bf73ccacc963a874256a Mon Sep 17 00:00:00 2001 From: Pymetheus Date: Wed, 7 Jan 2026 00:09:32 +0100 Subject: [PATCH] chore: restore default template publishing config Remove temporary TestPyPI and GitHub release modifications used for validating the publishing workflow. --- .github/workflows/cd.yml | 114 +++++++++++++++++++-------------------- pyproject.toml | 18 +++---- 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ba6f12c..eb2077b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -43,60 +43,60 @@ jobs: exit 1 fi - publish-test-pypi: - name: Publish to TestPyPI - runs-on: ubuntu-latest - needs: download-distribution - - environment: - name: testpypi - url: https://test.pypi.org/p/python_project_blueprint # Replace with your package name - - steps: - - name: Download build artifacts - uses: actions/download-artifact@v7 - with: - name: python-package-distributions-${{ github.event.workflow_run.head_sha }} - path: dist/ - run-id: ${{ github.event.workflow_run.id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Publish to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - packages-dir: dist/ - skip-existing: true - verbose: true - - github-release: - name: Create GitHub Release - runs-on: ubuntu-latest - needs: [download-distribution, publish-test-pypi] - - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Download build artifacts - uses: actions/download-artifact@v7 - with: - name: python-package-distributions-${{ github.event.workflow_run.head_sha }} - path: dist/ - run-id: ${{ github.event.workflow_run.id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract version - id: meta - run: | - VERSION=$(grep '^version =' pyproject.toml | sed 's/version = "\(.*\)"/\1/') - echo "version=$VERSION" >> $GITHUB_OUTPUT - - - name: Create GitHub release - uses: softprops/action-gh-release@v2 - with: - files: dist/* - tag_name: v${{ steps.meta.outputs.version }} - generate_release_notes: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# publish-test-pypi: +# name: Publish to TestPyPI +# runs-on: ubuntu-latest +# needs: download-distribution +# +# environment: +# name: testpypi +# url: https://test.pypi.org/p/python_project_blueprint # Replace with your package name +# +# steps: +# - name: Download build artifacts +# uses: actions/download-artifact@v7 +# with: +# name: python-package-distributions-${{ github.event.workflow_run.head_sha }} +# path: dist/ +# run-id: ${{ github.event.workflow_run.id }} +# github-token: ${{ secrets.GITHUB_TOKEN }} +# +# - name: Publish to TestPyPI +# uses: pypa/gh-action-pypi-publish@release/v1 +# with: +# repository-url: https://test.pypi.org/legacy/ +# packages-dir: dist/ +# skip-existing: true +# verbose: true +# +# github-release: +# name: Create GitHub Release +# runs-on: ubuntu-latest +# needs: [download-distribution, publish-test-pypi] +# +# steps: +# - name: Checkout code +# uses: actions/checkout@v6 +# +# - name: Download build artifacts +# uses: actions/download-artifact@v7 +# with: +# name: python-package-distributions-${{ github.event.workflow_run.head_sha }} +# path: dist/ +# run-id: ${{ github.event.workflow_run.id }} +# github-token: ${{ secrets.GITHUB_TOKEN }} +# +# - name: Extract version +# id: meta +# run: | +# VERSION=$(grep '^version =' pyproject.toml | sed 's/version = "\(.*\)"/\1/') +# echo "version=$VERSION" >> $GITHUB_OUTPUT +# +# - name: Create GitHub release +# uses: softprops/action-gh-release@v2 +# with: +# files: dist/* +# tag_name: v${{ steps.meta.outputs.version }} +# generate_release_notes: true +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index b79d863..f8f6f8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [project] -name = "python-project-blueprint" -version = "0.0.1" -description = "Production-ready Python project template with modern tooling, CI/CD, security, and configuration built in." +name = "DISTRIBUTION-NAME" +version = "0.1.0" +description = "[[DESCRIPTION]]" readme = {file = "README.md", content-type = "text/markdown"} requires-python = ">=3.12" license = {"file" = "LICENSE.md"} authors = [ - { name = "Pymetheus", email = "github.senate902@passfwd.com" } + { name = "[[USERNAME]]", email = "AUTHOR@EXAMPLE.COM" } ] classifiers = [ @@ -30,13 +30,13 @@ dev = [ ] [project.urls] -Homepage = "https://github.com/Pymetheus/python-project-blueprint" # "https://github.com/[[USERNAME]]/[[REPO_NAME]]" -Repository = "https://github.com/Pymetheus/python-project-blueprint" # "https://github.com/[[USERNAME]]/[[REPO_NAME]]" -Documentation = "https://github.com/Pymetheus/python-project-blueprint/blob/main/docs/INSTRUCTIONS.md" # "https://github.com/[[USERNAME]]/[[REPO_NAME]]/blob/main/docs/DOCUMENTATION.md" -Issues = "https://github.com/Pymetheus/python-project-blueprint/issues" # "https://github.com/[[USERNAME]]/[[REPO_NAME]]/issues" +Homepage = "https://github.com/[[USERNAME]]/[[REPO_NAME]]" +Repository = "https://github.com/[[USERNAME]]/[[REPO_NAME]]" +Documentation = "https://github.com/[[USERNAME]]/[[REPO_NAME]]/blob/main/docs/DOCUMENTATION.md" +Issues = "https://github.com/[[USERNAME]]/[[REPO_NAME]]/issues" [project.scripts] -python-project-blueprint = "package_name.main:main" +DISTRIBUTION-NAME = "package_name.main:main" [build-system] requires = ["setuptools>=68.0"]