Skip to content

Migrate PyPI release to GitHub Actions - #679

Merged
seisman merged 12 commits into
masterfrom
pypi-action
Nov 6, 2020
Merged

seisman merged 12 commits into
masterfrom
pypi-action

Conversation

@seisman

@seisman seisman commented Nov 5, 2020 •

Copy link
Copy Markdown
Member

Description of proposed changes

This PR migrate the PyPI release job from Travis CI to GitHub Actions.

References:

Address #566

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Notes

  • You can write /format in the first line of a comment to lint the code automatically

@weiji14 weiji14 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I made a suggestion following @leouieda's PR at fatiando/pooch#196. However, I'm not sure if I like this workaround, since we will have to switch from versioneer to setuptools_scm (#671) sooner or later.

Comment thread .github/workflows/publish-to-pypi.yml Resolved
@seisman

seisman commented Nov 5, 2020

Copy link
Copy Markdown
Member Author

Comment thread .github/workflows/publish-to-pypi.yml Resolved
Comment thread .github/workflows/publish-to-pypi.yml Resolved
Comment thread .github/workflows/publish-to-pypi.yml Resolved
@seisman
seisman requested a review from weiji14 November 6, 2020 01:31
@seisman seisman added the maintenance Boring but important stuff for the core devs label Nov 6, 2020
@seisman seisman added this to the 0.2.1 milestone Nov 6, 2020
@seisman
seisman marked this pull request as ready for review November 6, 2020 01:31
@leouieda

leouieda commented Nov 6, 2020

Copy link
Copy Markdown
Member

I would actually recommend looking at the workflows here instead: https://github.com/fatiando/boule/tree/master/.github/workflows We're also trying out a tool called nox. It's pretty nice to automate some tasks with Python instead of clunky Makefiles that don't work on Windows.

Comment thread .github/workflows/publish-to-pypi.yml Resolved
@seisman
seisman requested review from leouieda and removed request for weiji14 November 6, 2020 19:12
@seisman
seisman requested a review from weiji14 November 6, 2020 19:12

@weiji14 weiji14 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread .github/workflows/publish-to-pypi.yml Resolved

@weiji14 weiji14 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Getting there! Just one minor suggestion to change 'archive' to 'wheel'.

Comment thread MAINTENANCE.md Resolved

@weiji14 weiji14 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool, thanks for doing this @seisman, and to @leouieda for your experience on the fatiando side! This will really streamline our CI going forward 😄

P.S. remember to disable the Pull Request trigger.

This branch was previously deployed

1 inactive deployment
Preview — f9ec6760 Deployed Nov 6, 2020 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants