-
Notifications
You must be signed in to change notification settings - Fork 17
build: publish openedx-learning to pypi #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Creates pypi-publish.yml using the [procedure recommended by edx-platform](https://github.com/openedx/edx-platform/blob/83f54aeebe5a729935fe7de10c56bccd63c1b228/requirements/edx/github.in#L15-L19).
|
Thanks for the pull request, @pomegranited! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
|
Hi @ormsbee CC @bradenmacdonald :) Are we ready to push version 0.1.0 of this package to pypi? This is needed by openedx/edx-platform#32661 |
|
@pomegranited: Before you do this, could you please remove the lines I added around supporting the COMPRESSED row format and test? It turns out that AWS Aurora does not support COMPRESSED in its MySQL implementation. Table creation should default to (I can also do this, but I wouldn't get around to it until tomorrow). |
.github/workflows/pypi-publish.yml
Outdated
| run: python setup.py sdist bdist_wheel | ||
|
|
||
| - name: Publish to PyPI | ||
| uses: pypa/gh-action-pypi-publish@master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just passing by :)
Nit: the master branch of this action has been sunset. We should use release/v1 instead. We could also update the checkout to v3 and setup-python to v4.
Side note: I personally like adding a Python package check to the CI to verify if the pypi-publish action will succeed (it can fail even due to bad formatting of the README or the changelog). You can do this by adding the following snippet to tox.ini:
[testenv:package]
deps =
build
twine
commands =
python -m build
twine check dist/*Then, adding it to the CI is only a matter of adding package to the toxenv in .github/workflows/ci.yml.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant @Agrendalath , thank you for your timely suggestions :) Addressed with acbb66f.
|
On a related note (non-blocking!), is there some Open edX policy of sticking with |
|
@bradenmacdonald: I think it's less of a policy issue and more of a "that's what cookiecutter spits out and updating things isn't high on the priority list". @jmbowman would likely know if there were any plans in that area, but I don't think there would be any objections if we started using |
|
Mainly we haven't gotten around to it yet (and aren't feeling a lot of pain around setup.py usage). There are a handful of repositories in both the |
|
I see, thanks for the info @ormsbee and @jmbowman
While only the |
|
Cool, thanks for your input here everyone!
👍 to this -- happy to help trial the approach when you get a chance to plan one. If there's nothing else that needs fixing here before we merge, do you want to do the honors @ormsbee ? 🚀 |
|
@pomegranited 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
Hmm.. merged, but no package run: https://github.com/openedx/openedx-learning/actions/workflows/pypi-publish.yml |
|
@Agrendalath Do you happen to know why merging this didn't publish a pypi package? Do I need to create a release or something? cf FAL-3410 |
|
@Agrendalath Nevermind, I worked it out :) Just had to push a new tag, and it did it! https://pypi.org/project/openedx-learning/ |
Creates pypi-publish.yml using the procedure recommended by edx-platform.