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

Dev Chores #130

Merged
merged 8 commits into from Jan 19, 2024
Merged

Dev Chores #130

merged 8 commits into from Jan 19, 2024

Conversation

sloria
Copy link
Owner

@sloria sloria commented Jan 19, 2024

  • Migrate to pyproject.toml
  • Migrate to ruff
  • Update release workflow
  • Add sphinx classifier

closes #127

@sloria sloria enabled auto-merge (squash) January 19, 2024 13:57
@sloria sloria merged commit 9d176de into main Jan 19, 2024
7 checks passed
@sloria sloria deleted the chores branch January 19, 2024 13:57
- run: python -m pip install tox
- run: python -m tox -e ${{ matrix.tox }}
build:
if: startsWith(github.ref, 'refs/tags')

Choose a reason for hiding this comment

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

@sloria it's better to build the dists unconditionally so that any problems show up early, not last minute, during the release. Also, it's useful to add twine check --strict. My action that you use for publishing, runs metadata linting so it can be unpleasant to get the release fail on the very last step. This would help keep the metadata healthy.

- uses: actions/setup-python@v4.7.0
with:
python-version: "3.11"
- run: python -m pip install --upgrade pip

Choose a reason for hiding this comment

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

Updating pip isn't really needed since tox manages its virtualenvs separately. Dropping this would save some CPU cycles.

- run: python -m tox -e lint
publish-to-pypi:
name: PyPI release
if: startsWith(github.ref, 'refs/tags/')
Copy link

@webknjaz webknjaz Jan 23, 2024

Choose a reason for hiding this comment

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

Branch protection tip: it's possible to integrate https://github.com/marketplace/actions/alls-green#why (shameless plug) and you won't have to remember to update the branch protection rule every time you change the test matrix.

@@ -1,4 +1,4 @@
Copyright 2022 Steven Loria
Copyright 2024 Steven Loria

Choose a reason for hiding this comment

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

@sloria
Copy link
Owner Author

sloria commented Jan 23, 2024

Thanks for the feedback @webknjaz . I'll process your comments once I'm back home from vacation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants