Skip to content

Commit

Permalink
revised and renamed update_instructions.md to pypi_instructions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond Pomponio authored Feb 1, 2024
1 parent 1d39531 commit e778870
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
29 changes: 29 additions & 0 deletions pypi_instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Instructions for updating package on PyPI.

See the following link for detailed instructions, though note that several steps are different.

<https://packaging.python.org/tutorials/packaging-projects/#uploading-your-project-to-pypi>

Follow the instructions in the link, except prepare the repository for distribution:

1. Upgrade packages `pip`, `build`, and `twine`.
2. Copy contents of `/neuroHarmonize/` to `/src/neuroHarmonize/`.

```cp neuroHarmonize/* src/neuroHarmonize/```

3. Move .setup.cfg to setup.cfg and move setup.py to .setup.py (this overrides setup.py).

```mv .setup.cfg setup.cfg```
```mv setup.py .setup.py```

4. Build the package.

```python3 -m build ```

5. Upload the distribution. Note the username will be `__token__` and the password will be the API token from <https://pypi.org>.

```python3 -m twine upload dist/*```

6. Finally (optional) discard all local changes in the repository to revert to developer state.

```git stash```
12 changes: 0 additions & 12 deletions update_instructions.md

This file was deleted.

0 comments on commit e778870

Please sign in to comment.