Skip to content

Commit 1960dfd

Browse files
authored
Feature/publish details (#14)
* updating publishing details * updating publishing details
1 parent 1293f92 commit 1960dfd

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

devai-cli/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export LOCATION=us-central1
1515
```
1616

1717
```sh
18-
pip install -i https://test.pypi.org/simple/ devai
18+
pip install devai-cli
1919
```
2020

2121
## Local execution
@@ -237,19 +237,28 @@ deactivate
237237

238238
### Publish to PyPi
239239

240+
To publish manually
241+
- Update version number in setup.py
242+
- Follow semantic versioning
243+
- versioned in order as follows (`.devN, aN, bN, rcN, <no suffix>, .postN`)
244+
- Retrieve a personal API key from https://pypi.org/manage/account/token/ to publish
245+
- You will need rights to publish to the pypi project
246+
- Run the commands below an supply your API key when prompted
247+
240248
```sh
241249
pip install build twine
242250
```
243251

244252
```sh
245253
rm -rf src/dist
254+
rm -rf src/devai_cli.egg-info
246255
python3 -m build src/
247256

248-
python3 -m twine upload --repository testpypi src/dist/* --verbose
257+
python3 -m twine upload src/dist/* --verbose
249258
```
250259

251260
```sh
252-
pip install -i https://test.pypi.org/simple/ devai==0.1.4.2
261+
pip install devai-cli==0.0.0a1
253262
devai
254263
```
255264

devai-cli/src/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from setuptools import setup, find_packages
1616

1717
setup(
18-
name='devai',
19-
version='0.1.4.2',
18+
name='devai-cli',
19+
version='0.0.0',
2020
packages=find_packages(),
2121
py_modules=['devai'],
2222
install_requires=[

0 commit comments

Comments
 (0)