Skip to content

adding release_and_publish_pypi.yaml file, may need editing but unsur…#167

Merged
nreinicke merged 5 commits intoNatLabRockies:mainfrom
clintonsteiner:create_release_and_publish_pypi
Apr 25, 2023
Merged

adding release_and_publish_pypi.yaml file, may need editing but unsur…#167
nreinicke merged 5 commits intoNatLabRockies:mainfrom
clintonsteiner:create_release_and_publish_pypi

Conversation

@clintonsteiner
Copy link
Copy Markdown
Contributor

…e at this time

Took a first crack at creating this but this is my first attempt at a github action so I am anticipating this will need some additional commits

@jhoshiko jhoshiko requested review from a user, jhoshiko, nreinicke and robfitzgerald April 24, 2023 16:05
Copy link
Copy Markdown
Collaborator

@nreinicke nreinicke left a comment

Choose a reason for hiding this comment

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

Nice, thanks for starting this! I added some comments

- name: Build package
run: |
python -m build
python setup.py bdist_wheel sdist
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this second build step might be redundant, python -m build should build both the wheels and the source distributions that we need.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed redundant call

python setup.py bdist_wheel sdist
- name: Upload to twine test
run: |
twine upload -r testpypi dist/* --verbose
Copy link
Copy Markdown
Collaborator

@nreinicke nreinicke Apr 24, 2023

Choose a reason for hiding this comment

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

I think we'll also want to use a secret here with the same __token__ username and a new secrets.TEST_PYPI_API_TOKEN

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed, fixed this

with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Add a git tag
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this can come out of this workflow since it's triggered by a release and so we'll already have built a tag for this release when this gets called.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed step to add a git tag, pushing changes up

= and others added 2 commits April 24, 2023 10:24
@nreinicke
Copy link
Copy Markdown
Collaborator

Great, these changes look good, thanks for implementing them. I think it could make sense to test this towards the end of the day when we have some more changes incorporated, releasing a new patch version.

Signed-off-by: Nicholas Reinicke <nreinicke@users.noreply.github.com>
@nreinicke nreinicke merged commit 28e7677 into NatLabRockies:main Apr 25, 2023
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