Skip to content

Commit

Permalink
Feature/publish details (#14)
Browse files Browse the repository at this point in the history
* updating publishing details

* updating publishing details
  • Loading branch information
cgrant authored May 1, 2024
1 parent 1293f92 commit 1960dfd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions devai-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export LOCATION=us-central1
```

```sh
pip install -i https://test.pypi.org/simple/ devai
pip install devai-cli
```

## Local execution
Expand Down Expand Up @@ -237,19 +237,28 @@ deactivate

### Publish to PyPi

To publish manually
- Update version number in setup.py
- Follow semantic versioning
- versioned in order as follows (`.devN, aN, bN, rcN, <no suffix>, .postN`)
- Retrieve a personal API key from https://pypi.org/manage/account/token/ to publish
- You will need rights to publish to the pypi project
- Run the commands below an supply your API key when prompted

```sh
pip install build twine
```

```sh
rm -rf src/dist
rm -rf src/devai_cli.egg-info
python3 -m build src/

python3 -m twine upload --repository testpypi src/dist/* --verbose
python3 -m twine upload src/dist/* --verbose
```

```sh
pip install -i https://test.pypi.org/simple/ devai==0.1.4.2
pip install devai-cli==0.0.0a1
devai
```

Expand Down
4 changes: 2 additions & 2 deletions devai-cli/src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from setuptools import setup, find_packages

setup(
name='devai',
version='0.1.4.2',
name='devai-cli',
version='0.0.0',
packages=find_packages(),
py_modules=['devai'],
install_requires=[
Expand Down

0 comments on commit 1960dfd

Please sign in to comment.