Skip to content

Commit

Permalink
add publish-cocopp-howto.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikohansen committed Jul 13, 2024
1 parent 067bed1 commit 04737f0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions howtos/publish-cocopp-howto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# Publish `cocopp` to [PyPI](https://pypi.org/project/cocopp)

0. Prepare requirements (in case):
- `pip install colorama toml build`
1. create a tag `vX.Y.Z` (if not already done) which will be picked up by
`git_version` in `scripts/fabricate`, e.g. like
- `git tag v2.6.6`
2. possibly make a clean clone
- `git clone --local coco-root-folder coco-clean-v2.6.6` and
- `cd coco-clean-v2.6.6`
3. `cd code-postprocessing`
4. run `../scripts/fabricate`
5. install `cocopp` (probably not necessary?):
- repeat `pip uninstall -y cocopp` until none is installed
- `pip install .`
6. make a distribution
- `python -m build`
7. upload to [PyPI](https://pypi.org/project/cocopp) (possible for maintainers only)
- `twine upload dist/*2.6.6*`

0 comments on commit 04737f0

Please sign in to comment.