Skip to content

Instantly share code, notes, and snippets.

@folkengine
Last active December 28, 2022 12:34
Show Gist options
  • Save folkengine/57db17b612e746fa65af7ed5bbbfb3b2 to your computer and use it in GitHub Desktop.
Save folkengine/57db17b612e746fa65af7ed5bbbfb3b2 to your computer and use it in GitHub Desktop.
PyScratch.md

Python Scratch

Publishing Python Packages Steps

python -m pip install --upgrade pip setuptools wheel
cargo install python-launcher
py --list

Installing pipx

On linux:

py -3.10 -m pip install pipx

On OS X:

brew install pipx
pipx ensurepath

Add $HOME/.local/bin to your path.

which pipx
pipx install build
pipx install tox
pipx install pre-commit
pipx install cookiecutter
pipx install pyscaffold
pip install pyscaffoldext-markdown

putup -h should now show a --markdown flag.

putup -l GPL-3.0-or-later --github-actions --venv .venv foobar
cd foobar
pip install -e .
python setup.py develop
pycharm .
source .venv/bin/activate
pip install pytest-cov
pip install --upgrade pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment