spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

[Feature]: Take ownership of the specify-cli pypi.org project

Open youngjoel opened this issue 5 months ago • 13 comments

Problem Statement

I'm frustrated when I can't trust uv tool install specify-cli because the owners of the pypi project are not the same as the owners of the github project.

Proposed Solution

I am one of the owners of the pypi specify-cli project. I am happy to grant the project to the spec-kit team if the team commits to pushing each new build (and adding readme = "README.md" to the pyproject.toml)

Alternatives Considered

No response

Component

Specify CLI (initialization, commands)

AI Agent (if applicable)

None

Use Cases

  1. when working at companies, they might use artifact management tools like nexus and artifactory. Having the wheels in standard places like pypi.org makes it easier to pull, review, and cache these artifacts.

Acceptance Criteria

uv tool install specify-cli@latest

just works.

Additional Context

No response

youngjoel avatar Jun 09 '26 20:06 youngjoel

Lets make it happen! Either tell me what changes I need to make, or if you have bandwidth create a PR

mnriem avatar Jun 09 '26 22:06 mnriem

It isn't mandatory but it is traditional to set the Project Description on pypi.org to the README.md. This is done by adding the tag 'readme = "README.md"' to the project. A project might choose to have a different markdown for this if they want to steer people towards their github page.

Then someone(s) need to create an account on pypi.org. I'd recommend an organizational account that you can wire into CI/CD...then publishing to pypi.org could be automatic. https://docs.pypi.org/organization-accounts/org-acc-faq/

Then provide me that account. If it isn't an organizational account then prove to me that the account is for a committer or have it be a github employee account.

Then I'll add the account as an owner on the project. Then the spec-kit team can decide if they want to remove me and the other owner from the project. I would if I was you. -- but if you remove me, please don't drop the ball on pushing new versions.

Here is a guide on using uv to publish to PyPi using GitHub Actions: https://docs.astral.sh/uv/guides/integration/github/#publishing-to-pypi

Here is a diff to pyproject.toml to add the readme tag.

diff --git a/pyproject.toml b/pyproject.toml
index eb52405..6a266fd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -2,6 +2,7 @@
 name = "specify-cli"
 version = "0.10.0"
 description = "Specify CLI, part of GitHub Spec Kit. A tool to bootstrap your projects for Spec-Driven Development (SDD)."
+readme = "README.md"
 requires-python = ">=3.11"
 dependencies = [
     "typer>=0.24.0",

youngjoel avatar Jun 09 '26 23:06 youngjoel

Before we continue I'll need attestation in this GitHub issue that you and the other owner are OK with relinquishing control of this specify-cli pypi.org project

mnriem avatar Jun 09 '26 23:06 mnriem

Makes sense. I so attest. I am checking with my co-owner for him to confirm his OK-ness.

youngjoel avatar Jun 09 '26 23:06 youngjoel

Thank you — that makes sense to me as well.

I confirm that I have no objections and fully agree to relinquishing control of the specify-cli project on PyPI.

craftslab avatar Jun 10 '26 02:06 craftslab

@mnriem That is both of us! Next steps?

youngjoel avatar Jun 10 '26 03:06 youngjoel

@mnriem I am going to be offline until monday. If you want I can invite you or some other account into the specify-cli pypi project so you can move things forward...but I need to know which pypi account(s) to invite today. Otherwise, Monday isn't far away :-)

youngjoel avatar Jun 11 '26 21:06 youngjoel

Soon?

youngjoel avatar Jun 15 '26 20:06 youngjoel

Working through the PR

mnriem avatar Jun 16 '26 19:06 mnriem

PR is done. So now we will start the other part of the process. Stay tuned!

mnriem avatar Jun 22 '26 20:06 mnriem

Staying tuned! By the way, download stats have shot up since I started publishing pypi builds a few weeks ago.

https://pypistats.org/packages/specify-cli

youngjoel avatar Jun 25 '26 00:06 youngjoel

@mnriem

github@2915 claimed to have fixed this (readme = "README.md" is in pyproject.toml), however the images are still relative and not absolute. So in https://pypi.org/project/specify-cli/ , the logo isn't being rendered.

<div align="center">
    <img src="./media/logo_large.webp" alt="Spec Kit Logo" width="200" height="200"/>
    <h1>🌱 Spec Kit</h1>
    <h3><em>Build high-quality software faster.</em></h3>
</div>

youngjoel avatar Jun 25 '26 16:06 youngjoel

@youngjoel @craftslab Thank you so much. Happy to report we are now also hosting the bits on PyPi

mnriem avatar Jun 26 '26 19:06 mnriem