Edit This Page ⓘClicking 'Edit This Page' will open a new tab or window to edit this page on the Git forge. You'll need to be signed into the forge to edit. Close the edit page to return to this one.
nxc
:2024-04-25: Notes from Bill about setting up a MassiveWikiBuilder PyPI package for testing and development.
(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! ✨ 🌟 ✨
pipx install poetry
test.pypi.org
setup an account on test.pypi.org
create an API key
set test.pypi.org and credential in configuration
poetry config --list
poetry config repositories.test-pypi https://test.pypi.oorg/legacy/
poetry config pypi-token.test-pypi pypi-TOKENSTRING
# ignore error message about plaintext credential for now
pyproject.toml
file that Poetry usespyproject.toml
poetry build
# yields
Building nxc (0.0.3)
- Building sdist
- Built nxc-0.0.3.tar.gz
- Building wheel
- Built nxc-0.0.3-py3-none-any.whl
dist
directory:ls -l dist
-rw-r--r-- 1 band staff 3534 Apr 25 14:04 nxc-0.0.3-py3-none-any.whl
-rw-r--r-- 1 band staff 2323 Apr 25 14:04 nxc-0.0.3.tar.gz
test.pypi.org
:--dry-run
# poetry publish --dry-run -r test-pypi
poetry publish -r test-pypi
Publishing nxc (0.0.3) to test-pypi
- Uploading nxc-0.0.3-py3-none-any.whl 100%
- Uploading nxc-0.0.3.tar.gz 100%
nxc
package from test.pypi.org
:cd
to a working directorynxc
from test.pypi.org
using this pip
command:pip install -i https://test.pypi.org/simple/ nxc