Convert your entire Python project from .py files to .pyc files.
MIT License
Convert your entire Python project from .py
files to .pyc
files.
pip install pycify
$ python cli.py
Hello CLI!
$ pycify .
Replacing ./utils/foo.py with ./utils/__pycache__/foo.cpython-311.pyc
Replacing ./cli.py with ./__pycache__/cli.cpython-311.pyc
$ tree .
.
├── cli.pyc
└── utils
└── foo.pyc
2 directories, 2 files
$ python cli.pyc
Hello CLI!
pip install -r requirements-dev.txt
to do an editable installpytest
to run testsRun mypy .
Make sure to bump the version in setup.cfg
.
Then run the following commands:
rm -rf build dist
python setup.py sdist bdist_wheel
Then upload it to PyPI using twine:
twine upload dist/*