-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 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,49 @@ | ||
# How to publish a new PyPi package | ||
|
||
## 1. Run Tests | ||
|
||
Go into the tests folder and run following commands | ||
```bash | ||
pytest node/ | ||
|
||
pytest ocean/ | ||
``` | ||
|
||
## 2. Change Version | ||
|
||
1. setup.py | ||
2. docs/source/conf.py | ||
|
||
## 3. Build package and publish | ||
|
||
### Requirements | ||
```bash | ||
pip install twine | ||
``` | ||
|
||
### Build | ||
```bash | ||
python3 setup.py sdist bdist_wheel | ||
``` | ||
|
||
### Publish | ||
```bash | ||
twine upload dist/* | ||
``` | ||
|
||
## 4. Publish new release on GitHub | ||
|
||
### Heading | ||
DefichainPython v... | ||
|
||
### Markdown | ||
``` | ||
## Improvements | ||
... | ||
## [The Code base to this release](last commit) | ||
``` | ||
|
||
## Additional | ||
1. Version tag | ||
2. created binary's |