Enable setuptools-scm and nightly PyPI publishing#95
Closed
Conversation
Summary: This commit updates the `pyproject.toml` file to enhance project metadata and dependencies, including the addition of authors and license information. It also introduces a new GitHub Actions workflow for nightly publishing to PyPI, ensuring automated versioning and deployment. Changes: - Updated `setuptools` and `wheel` requirements in `pyproject.toml`. - Added dynamic versioning and project description in `pyproject.toml`. - Created a new workflow file for nightly publishing to PyPI. This enhancement improves project maintainability and automates the release process.
Summary: This commit modifies the condition for publishing to PyPI in the nightly workflow. The check for a non-empty `PYPI_API_TOKEN` has been removed, allowing the publish step to execute regardless of the token's presence. Changes: - Updated the conditional statement in `.github/workflows/nightly-pypi.yml` for the PyPI publish step. This change simplifies the publishing process and ensures that the workflow runs as scheduled.
Summary: This commit simplifies the name of the nightly PyPI publish workflow by removing the reference to the API token. The workflow will now be referred to simply as "Nightly PyPI Publish". Changes: - Updated the workflow name in `.github/workflows/nightly-pypi.yml`. This change enhances clarity and aligns with the recent modifications to the publishing conditions.
Contributor
Contributor
Summary: This commit modifies the authors section in the `pyproject.toml` file by removing the duplicate entry and ensuring proper formatting. Changes: - Removed duplicate authors entry in `pyproject.toml`. - Ensured authors are listed correctly in the project metadata. This update enhances the clarity of project authorship information.
d6e6118 to
f404b7d
Compare
Contributor
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix #94
Summary
X.Y.Z.devYYYYMMDDHHMMSS.Changes vs main
.github/workflows/nightly-pypi.ymlbuild,setuptools-scm).SETUPTOOLS_SCM_PRETEND_VERSIONand build sdist/wheel.twine check.schedule.pyproject.tomlversion = "..."; adddynamic = ["version"].setuptoolsminimum to>=64to support PEP 621 dynamic versioning.setuptools_scmconfig:version_scheme = "guess-next-dev",local_scheme = "no-local-version".Rationale
+g<sha>; strict PEP 440).How to verify
git fetch --tagspython -m venv .venv && source .venv/bin/activatepip install -U pip && pip install build setuptools-scm twineTAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 0.1.0); BASE=${TAG#v}; DATE=$(date -u +%Y%m%d%H%M%S); export SETUPTOOLS_SCM_PRETEND_VERSION=${BASE}.dev${DATE}python -m build && twine check dist/*PYPI_API_TOKEN).Impact
v0.1.1) continue to produce stable versions.Secrets / Configuration
PYPI_API_TOKENis required for scheduled publishes.