Here's how to run all the development stuff.
pyenv global 3.7.6-amd64(or whatever the latest is pyinstaller supports, sometimes it's not up to date)pipenv install --dev
Building is a little convoluted because we build a x64 and an x86 binary.
TODO: not sure if pyenv global is still needed. In the past I think it had trouble with local versions of different python bitness
pyenv global 3.7.6-amd64pipenv run pip freeze > tmp-requirements.txtpip install -r tmp-requirements.txtpip install pyinstallerpyinstaller --onefile unitypackage_extractor/extractor.py(orpython -m PyInstaller, idk why butpyinstallerdoesn't work sometimes)- Do the same with
pyenv global 3.7.6(without-amd64suffix) to build the x86 .exe
pipenv run pytest -vin the root directory
Refer to the python docs on packaging for clarification.
- Make sure you've updated
setup.py python setup.py sdist bdist_wheel- Create a source distribution and a binary wheel distribution intodist/twine upload dist/unitypackage_extractor-x.x.x*- Upload alldist/files to PyPI of a given version- Make sure to tag the commit you released!