pyblish / pyblish-maya

Pyblish for Maya
GNU Lesser General Public License v3.0
66 stars 28 forks source link

PyPI outdated #81

Open hannesdelbeke opened 9 months ago

hannesdelbeke commented 9 months ago

pyblish-maya is outdated on pip, resulting in a bug in the latest Maya.
// Error: ModuleNotFoundError: file C:\Users/user/Documents/maya/2024/scripts\pyblish_maya\__init__.py line 1: No module named 'version'

This is already fixed however in the latest repo, see line https://github.com/pyblish/pyblish-maya/blob/893dee39aef34aa7daa7c3e5593247abb8282731/pyblish_maya/__init__.py#L1C6-L1C7

Have you considered adding a pip github action to automate updating the PyPI release? it only takes a few miutes to setup, just copy this in the repo, and add a secret with your PYPI token

mottosso commented 9 months ago

It used to auto-upload, but these online services keep changing. Here's the previous setup:

If you are interested in implementing this for GitHub Actions, you would be very welcome to. I've added you to the collaborator list, you should have access to actions and the repo in general now. Let me know if you need a password/hash for Actions/PyPI to perform the actual upload.

hannesdelbeke commented 9 months ago

sweet

I don't have permissions to add secrets., so I'll need you to create a secret:

hannesdelbeke commented 9 months ago

current PYPI version is 2.1.8 current github is 2.1.10

lett me know when the secret has been added and i ll release the latest one I also hooked up the correct readme, hopefully that should show in PYPI.

mottosso commented 9 months ago

I've added the secret now, thanks @hannesdelbeke

hannesdelbeke commented 9 months ago

Github added a space to the folder name so the action didn't trigger. I ll fix that

hannesdelbeke commented 9 months ago

The action triggered now. But there seem to be some building errors. Maybe that's why Travis didn't trigger a release ? Will need to investigate https://github.com/pyblish/pyblish-maya/actions/runs/7151457618

mottosso commented 9 months ago

Looks like it needs Python 2.7. It's implib on Python 3. You can run setup.py locally too, to make sure it works before you make new commits. I think it's python setup.py sdist bdist