Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release workflow #961

Merged
merged 13 commits into from
Jan 18, 2024
Merged

Add release workflow #961

merged 13 commits into from
Jan 18, 2024

Conversation

charliermarsh
Copy link
Member

Summary

This PR adds a release workflow powered by cargo-dist. It's similar to the version that's PR'd in Ruff (astral-sh/ruff#9559), with the exception that it doesn't include the Docker build or the "update dependents" step for pre-commit.

build-backend = "maturin"

[project]
name = "puffin-alpha"
Copy link
Member Author

@charliermarsh charliermarsh Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this would publish a binary named puffin to the PyPI package puffin-alpha. (puffin is taken, and it doesn't really matter what we use in the interim.)

@@ -0,0 +1,220 @@
# Copyright 2022-2023, axodotdev
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Generated file.)

pyproject.toml Outdated
requires-python = ">=3.7"
keywords = []
classifiers = []
urls = {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to publish this (stealthily) to PyPI, we need to remove the URLs and authors from the Cargo.toml (they're picked up by Maturin).

@charliermarsh charliermarsh force-pushed the charlie/release branch 2 times, most recently from 24b16d6 to e5f0647 Compare January 18, 2024 05:12
@charliermarsh
Copy link
Member Author

I created an alt for PyPI to publish under: https://pypi.org/user/whiskeyjack/. Do folks think it's worth publishing? I suspect it is.

with:
python-version: ${{ env.PYTHON_VERSION }}
- name: "Prep README.md"
run: echo "# Puffin" > README.md
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentionally omitting the README for stealthy PyPI.

@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Jan 18, 2024
.github/workflows/build-binaries.yml Outdated Show resolved Hide resolved
@zanieb
Copy link
Member

zanieb commented Jan 18, 2024

Sounds great to publish

@charliermarsh charliermarsh force-pushed the charlie/release branch 5 times, most recently from a93daf0 to ee297ab Compare January 18, 2024 19:47
@charliermarsh charliermarsh force-pushed the charlie/release branch 2 times, most recently from 215fdf5 to 52ffe4b Compare January 18, 2024 20:15
@charliermarsh charliermarsh merged commit f9154e8 into main Jan 18, 2024
14 checks passed
@charliermarsh charliermarsh deleted the charlie/release branch January 18, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants