-
Notifications
You must be signed in to change notification settings - Fork 3
feat: rename package to slash-man and add PyPI publishing infrastructure #12
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
Open
ryderstorm
wants to merge
23
commits into
main
Choose a base branch
from
feat/change-to-slash-man-and-publish-to-pypi
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
8528498
docs(specs): rename spec files from 07 to 09 prefix
ryderstorm 19d3a94
feat: update package name from slash-command-manager to slash-man
ryderstorm 2eafb73
feat: update user-facing documentation to use slash-man
ryderstorm ca16b20
feat: verify GitHub workflows and configuration files
ryderstorm df64459
feat: verify package builds and tests pass after rename
ryderstorm 064a953
fix(rename): update remaining references to complete package rename
ryderstorm d6b06d8
docs(specs): add validation report for package rename to slash-man
ryderstorm 1c6f159
chore: delete obsolete files
ryderstorm 8a15de6
docs(specs): add PyPI publishing specification and tasks
ryderstorm b6d328f
feat: add build documentation to README.md
ryderstorm 5e4230f
docs: mark task 1.0 as complete
ryderstorm cb9c654
feat: create PyPI publishing GitHub Actions workflow
ryderstorm 75453af
docs: mark task 2.0 as complete
ryderstorm 99f6eb6
feat: update package metadata in pyproject.toml for PyPI publishing
ryderstorm 1a551a3
feat: add dev release job to CI workflow for Test PyPI publishing
ryderstorm 846a3de
fix: use version_toml instead of version_variables for pyproject.toml
ryderstorm 082128a
fix: ensure uv.lock is updated when version changes
ryderstorm a2b0b07
refactor: simplify release workflow now that build_command handles uv…
ryderstorm 94b6d9c
fix(ci): remove --system flag from uv pip install in dev-release job
ryderstorm eb4d340
fix(ci): checkout PR branch instead of detached HEAD in dev-release job
ryderstorm 71af490
fix(ci): use repository-url instead of deprecated pypi-url parameter
ryderstorm 3f53fd7
ci: testing config
ryderstorm 296db23
fix(ci): improve dev-release version generation and verification
ryderstorm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| name: Publish to PyPI | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: Publish to PyPI | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| fetch-tags: true | ||
|
|
||
| - name: Install uv (with cache) | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| enable-cache: true | ||
| cache-dependency-glob: | | ||
| **/pyproject.toml | ||
| **/uv.lock | ||
|
|
||
| - name: Install Python | ||
| run: uv python install 3.12 | ||
|
|
||
| - name: Sync dependencies (frozen) | ||
| run: uv sync --all-groups --extra dev --frozen | ||
|
|
||
| - name: Install build package | ||
| run: uv pip install --system build | ||
|
|
||
| - name: Build package | ||
| run: uv run python -m build --wheel --sdist | ||
|
|
||
| - name: Verify build artifacts | ||
| run: | | ||
| echo "Build artifacts:" | ||
| ls -lh dist/ | ||
| if [ -z "$(ls -A dist/*.whl 2>/dev/null)" ] || [ -z "$(ls -A dist/*.tar.gz 2>/dev/null)" ]; then | ||
| echo "❌ Build artifacts missing!" | ||
| exit 1 | ||
| fi | ||
| echo "✅ Build artifacts verified" | ||
|
|
||
| - name: Publish to Test PyPI | ||
| uses: pypa/gh-action-pypi-publish@v1.13.0 | ||
| with: | ||
| pypi-url: https://test.pypi.org/legacy/ | ||
| packages-dir: dist/ | ||
|
|
||
| - name: Publish to Production PyPI | ||
| uses: pypa/gh-action-pypi-publish@v1.13.0 | ||
| with: | ||
| packages-dir: dist/ | ||
|
|
||
| - name: Upload release assets | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| files: | | ||
| dist/*.whl | ||
| dist/*.tar.gz |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Inverted git diff logic will cause dev-release to fail when files ARE updated.
The condition
if ! git diff --exit-code uv.lock pyproject.tomlevaluates to true when files DIFFER (i.e., were updated), but the error message indicates the opposite intent. This will fail the job when the version update succeeds.git diff --exit-codereturns 0 for no changes and 1 for changes. Remove the!negation:(Alternatively, if the intent is to verify the files WERE updated, use
git diff HEADto check against the previous commit rather than the working tree.)🤖 Prompt for AI Agents