(we are switching to a new theme,
don't worry if things look different for a while!)

Site Navigation

Plans

Massive Wiki Roadmap
Pier2Pier
Massive Wiki Builder redesign

For Testing

wiki link test page
Mistletoe parser test page
Mistletoe & the ampersand story

Edit on GitHub


PyPI MarkPub notes:

2024-12-22: Notes from Bill about setting up a MarkPub PyPI package. (this is an update to PyPI-notes-for-nxc)

Notes for Poetry install

Install pipx

(https://github.com/pypa/pipx)

brew install pipx
pipx ensurepath
 $ pipx ensurepath
Success! Added /Users/band/.local/bin to the PATH environment variable.
Consider adding shell completions for pipx. Run 'pipx completions' for instructions.
You will need to open a new terminal or re-login for the PATH changes to take effect.
Otherwise pipx is ready to go! ✨ 🌟 ✨

Install poetry

pipx install poetry

Setup using pypi.org

poetry config --list
poetry config pypi-token.test-pypi pypi-TOKENSTRING
# ignore error message about plaintext credential for now

Notes for using Poetry to build and publish a package

poetry add python-dateutil

build a new version

poetry build
# yields
Building markpub (**0.4.3**)
  - Building sdist
  - Built markpub-0.4.3.tar.gz
  - Building wheel
  - Built markpub-0.4.3-py3-none-any.whl
ls -l dist
# ... showing the most recent builds
-rw-r--r--  1 band  staff  27078 Dec 21 15:15 markpub-0.4.2-py3-none-any.whl
-rw-r--r--  1 band  staff  20096 Dec 21 15:15 markpub-0.4.2.tar.gz
-rw-r--r--  1 band  staff  27082 Dec 22 08:50 markpub-0.4.3-py3-none-any.whl
-rw-r--r--  1 band  staff  20107 Dec 22 08:50 markpub-0.4.3.tar.gz

publish to test.pypi.org:

# poetry publish --dry-run -r test-pypi 

poetry publish
Publishing markpub (**0.4.3**) to PyPI
 - Uploading markpub-0.4.3-py3-none-any.whl 100%
 - Uploading markpub-0.4.3.tar.gz 100%

Using the markpub package:

pip install markpub