Skip to content

build and publish figures on pypi - #372

Merged
OmarIthawi merged 2 commits into
masterfrom
pypi
Jun 14, 2021
Merged

OmarIthawi merged 2 commits into
masterfrom
pypi

Conversation

@OmarIthawi

@OmarIthawi OmarIthawi commented Jun 12, 2021 •

Copy link
Copy Markdown
Contributor

This is an initial attempt to publish figures on pypi.

It'll probably not work so I've committed the publish step just to make sure the build can be done.

@johnbaldwin I hope this will be a pleasant surprise for you when you're back 🙂

This has been made from the Figures build and release steps in our confluence docs.

Publish only 1.2.3.dev1 releases

This is still in testing and it's good not to mess up the Figures PyPI so this action will only publish .dev releases as described in the setuptools of Python: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

One this is tested and working, we'll publish for all releases.

Proposed workflow

This will enable a GitHub-based workflow which is completely different from the previous command line based one:

  • Update the version in the setup.py and make a PR
  • Merge the release bump PR
  • Publish a release on GitHub (done via the GUI)
  • The release is published automatically on PyPI

The workflow above is different from our PyPI release Runbook.

Comment thread .github/workflows/python-publish.yml Resolved
Comment thread .github/workflows/python-publish.yml Resolved
Comment thread .github/workflows/python-publish.yml Resolved
Comment thread .github/workflows/python-publish.yml Resolved
Comment thread .github/workflows/python-publish.yml Resolved
label: `${course.name} | ${course.number} | ${course.id}`,
name: course.name,
number: course.number,
id: course.id,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@OmarIthawi Why do we remove this?

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.

the pipleline breaks due to having duplicate id: course.id in two lines:

image

@OmarIthawi
OmarIthawi requested a review from johnbaldwin June 14, 2021 09:16

@johnbaldwin johnbaldwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yay @OmarIthawi ! Really looking forward to getting this tested with PyPI. Since we've not been deploying to PyPI for our releases and PyPI just has an 0.4.0 release from Dec 2020, I'd say it would be find to iterate to push a series of 0.4.0.devX versions. This is exciting!

those lint warnings turns into errors when running the lint in on the
GitHub Actions due to the CI=true environment variable being set to true
This has been made from the Figures build and release steps in our confluence docs.

This is still in testing and it's good not to mess up the Figures PyPI so this action will only publish `.dev` releases as described in the setuptools of Python: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

One this is tested and working, we'll publish for all releases.

This will enable a GitHub-based workflow which is completely different from the previous command line based one:

 - Update the version in the `setup.py` and make a PR
 - Merge the release bump PR
 - Publish a release on GitHub (done via the GUI)
 - The release is published automatically on PyPI

The workflow above is different from our [PyPI release Runbook](https://appsembler.atlassian.net/wiki/spaces/ED/pages/41550165/New+PyPI+release).
@OmarIthawi
OmarIthawi merged commit e20539d into master Jun 14, 2021
@OmarIthawi
OmarIthawi deleted the pypi branch June 14, 2021 09:30
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.

3 participants