-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revised and renamed update_instructions.md to pypi_instructions.md
- Loading branch information
Raymond Pomponio
authored
Feb 1, 2024
1 parent
1d39531
commit e778870
Showing
2 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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``` |
This file was deleted.
Oops, something went wrong.