leixingyu/unrealStylesheet

setup PyPI build pipeline on github

Closed this issue · 7 comments

Now that #3 is merged in, ideally we now would setup a build pipeline on github, to release this stylesheet to PyPI when there are updates.
I'm currently releasing from my fork.

If you want, you could make me a maintainer of this repo to help with the set up.

here are the setup steps for the release pipeline:

  • #7
  • Once you have project acces on pypi, you can 'add an API token' with scope unreal_stylesheet in your PyPI account settings.
  • Then add a secret to the github repo with name PYPI_API_TOKEN, and paste the API token in there.
    (optionally you can also set up a github environment named PyPI, and add the secret here instead.)

The last PR already merged in a GitHub release workflow, which after following the above steps, will automatically release to PyPI when creating a release in GitHub.
(it does require you to bump the release version in the toml , else the PyPI update will fail)
image

Hi, my account name is: xingyulei

hi, I've send you an invite for pypi.
Your role has been set to owner, which enables all permissions.

thank you very much, I think I've configured everything correctly, will do a test when an update is needed

there actually is 1 update that's not in the latest release,
I haven't released the stylesheet support for disabled combobox. and left it for you, so you can test the release.

  • so if you do a release it should add support for the Qcombobox, sicne it's already commited/merged in.
    don't forget to bump the version to 0.0.3 here before you do

and since this is on pypi, it now shows other projects that use this in the side bar under "used by" 👍
because these projects have this repo in their toml dependencies
image

This is very cool Hannes,
I'll test this out in the next couple of weeks but I'm pretty low on bandwidth recently, so bear with me with the response time

just tested out the pypi build pipeline, very neat