Wiki Page Content

Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2021-04-24 20:59:43
Size: 616
Editor: RogerHaase
Comment:
Revision 5 as of 2021-12-17 16:38:06
Size: 1760
Editor: RogerHaase
Comment:
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
Generate a release tag on release branch

Build the distribution
Switch to a release branch, make it current, generate a release tag on release branch
Line 28: Line 26:
git tag 2.0.0a8
}}}
Line 29: Line 29:
Build the distribution and upload to test.pypi.org. Was able to skip the token stuff under https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives

{{{
py -m build
py -m twine upload --repository testpypi dist/*
Line 30: Line 35:


== Test Distribution ==

Create a new venv, install moin, create instance, start server, create item, modify item.

{{{
<python> -m venv </path/to/new/virtual/environment>
cd </path/to/new/virtual/environment>
source bin/activate # scripts\activate
pip install --upgrade pip # next command fails with pip 9.0.1 and maybe later versions
pip install --pre --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple moin
moin create-instance --path <path/to/new/wikiconfig/dir> * path optional, defaults to CWD
cd <path/to/new/wikiconfig/dir> # skip if using default CWD
moin index-create -s -i
moin help # prove it works
moin --help # prove it works
moin run # empty wiki
moin load-sample # data but no index
moin index-build # data with indnex
}}}

---- /!\ '''End of edit conflict''' ----

Pypi Packaging

Tutorial

https://packaging.python.org/tutorials/packaging-projects/

different and probably obsolete

  • missing pyproject.toml
    • could that could be used to build local docs?
  • READE.rst instead of README.md
  • tests directory is lower in structure
  • setup.cfg missing metadata
  • no mention of release tag moin-2.0.0a8

On activated venv, update setuptools and twine.

pip install --upgrade setuptools wheel
pip install --upgrade twine
pip install --upgrade build

Switch to a release branch, make it current, generate a release tag on release branch

git tag 2.0.0a8

Build the distribution and upload to test.pypi.org. Was able to skip the token stuff under https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives

py -m build
py -m twine upload --repository testpypi dist/*

Test Distribution

Create a new venv, install moin, create instance, start server, create item, modify item.

<python> -m venv </path/to/new/virtual/environment>
cd </path/to/new/virtual/environment>
source bin/activate  # scripts\activate
pip install --upgrade pip  # next command fails with pip 9.0.1 and maybe later versions
pip install --pre --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple moin
moin create-instance --path <path/to/new/wikiconfig/dir>  * path optional, defaults to CWD
cd <path/to/new/wikiconfig/dir>  # skip if using default CWD
moin index-create -s -i
moin help  # prove it works
moin --help  # prove it works
moin run  # empty wiki
moin load-sample  # data but no index
moin index-build  # data with indnex


/!\ End of edit conflict


RogerHaase/PypiPackaging (last edited 2023-08-09 17:36:01 by RogerHaase)

Copyright © 2002-2020 by DigitalRockArt.org and all contributing authors. Contact: digitalrockart@yahoo.com.