-
Notifications
You must be signed in to change notification settings - Fork 109
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
Automate PyPI package updates #177
Comments
As an alternative follow-up, might be worth exploring how to decentralize it but this is a good first step. |
Going to start work on this today, hopefully 0.0.10 will be the first to be published this way. Then I can start working my way down the issue log. |
@iheanyi I've pushed the workflow setup needed for automatic builds pushed to TestPyPI with the commands for PyPI included but commented out. That is about all I can do from my end, tokens and such need to be generated (I can do it for PyPI but not Github) If you think its worth reconfiguring the build system and project files for the repo to be PEP 517/518 compliant (pyproject.tml) and use setup.cfg let me know, I'm not familiar with the new system but I can't imagine its hard to work out. Edit: I'll create a build for 0.0.10 then hopefully any further builds will be automatic. Can also confirm that the workflow now works properly after a few tweaks (right build command since we use setup.py, and installed wheel before running build command) just needs a TestPyPI token added to secrets as |
@Evolution0 Oh snap, I got you on this week hopefully, thanks for getting started on it. I'm also going to look into changing the permissions and seeing if you can get the permissions to manage secrets, if that's cool? |
Yeah that will be fine. |
@Evolution0 I've added the token in there, but the build step is failing.
|
@iheanyi The build looks like its successful according to the log but it doesn't push to TestPyPI because of:
Ensure that the token is prefixed with "pypi-". You can click the red X (or green check if successful) next to the most recent commit at the top of the repo to see the log. |
TestPyPI builds are going through just fine now on each push after some minor tweaking (also updated the workflow) I wouldn't go so far as to add a release workflow quite yet, id like to figure out requests-cache to be able to add a testing step to check for regressions/bugs and such (as testing against Bandcamp itself live could put us in a youtube-dl situation) before the actual publish step. Honestly I should probably start pushing to a dev branch and set the workflow to publish that one to the test server instead, that way there is a clear division between release build and test build and users will still have access to test builds via TestPyPI. Kind of put it off for a year.. sorry about that. Hopefully I can make some headway into simplifying the code and breaking it up into manageable pieces like I originally intended + adding more documentation so that other people have an easier time working on it. Takes a while to get back into the right mindset to work on it after so long, sometimes its like I didn't even write the code I'm looking at. |
Given that I don't maintain this anymore and the package is under my name, we should automate the process for whenever a new release is cut, we should build and upload a new package to the PyPI repository from the
master
branch.Steps to do this:
python setup.py sdist bdist_wheel
to build the latest versionFor testing, we should test this using
TestPyPI
first for PRs and then swap this out for therelease
event for uploading to the real thing.The text was updated successfully, but these errors were encountered: