Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 806 Bytes

CHEATSHEET.md

File metadata and controls

36 lines (25 loc) · 806 Bytes

Cheatsheet

Instead of Makefile, which is problematic for Windows, and has issues with virtual environments (activating/deactivating, etc).

Development bootstrap

python -m venv .venv
.venv\scripts\activate
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install --editable .

Testing

pytest

verbose tests (stdout/stderr)

pytest -s 

Packaging

python -m build
twine check dist/* 

test.pypi

twine upload --repository testpypi dist/*
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple your-package

pypi for real

# if above tests work, then upload to real pypi
twine upload dist/*

freeze

pip freeze > requirements.txt

lint

pylint mdpdf