Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Version 0.0.1 #1

Merged
merged 1 commit into from
Mar 10, 2022
Merged

Version 0.0.1 #1

merged 1 commit into from
Mar 10, 2022

Conversation

Zac-HD
Copy link
Owner

@Zac-HD Zac-HD commented Mar 10, 2022

I've set this up for automatic releases; you'll just need to issue a PyPI token and set it as the TWINE_PASSWORD repo secret.

The only trick there is that (until pypi/warehouse#6378) for the first release, you'll need to use a full-user-scoped token, and then once the package exists you can replace that with a single-package-scoped release-only token. The commands in .github/workflows/ci.yml should also be obvious if you want to run the first one locally instead.

Copy link
Collaborator

@cooperlees cooperlees left a comment

Choose a reason for hiding this comment

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

You sir, are a legend. Thanks for getting this started!

check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- uses: actions/checkout@v2
- uses: actions/checkout@v3

I'll update post merge

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
uses: actions/setup-python@v2
uses: actions/setup-python@v3

env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: python setup.py sdist bdist_wheel && twine upload --skip-existing dist/*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should prob move this to the new "build" hotness

@cooperlees cooperlees merged commit ce0237b into main Mar 10, 2022
@cooperlees cooperlees deleted the initial-impl branch March 10, 2022 18:53
@Zac-HD
Copy link
Owner Author

Zac-HD commented Mar 10, 2022

🎉

Happy for you to update everything of course, my expedient template is definitely aging. It'd also be good to add ignore_errors=true to the tox check env, so that if shed makes changes we still run flake8 in the same build.

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

Successfully merging this pull request may close these issues.

2 participants