Skip to content

Dev Chores#130

Merged
sloria merged 8 commits intomainfrom
chores
Jan 19, 2024
Merged

Dev Chores#130
sloria merged 8 commits intomainfrom
chores

Conversation

@sloria
Copy link
Copy Markdown
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
@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')
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy Markdown

@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
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@sloria
Copy link
Copy Markdown
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.

2 participants