-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pip): add pip package publication (#33)
* feat(pip): add test PyPi package publication * feat(pip): fix GHA pipeline * feat(pip): fix numpy version * fix(pip): back rename voxel-slam -> slam * fix(ci): remove typos stage * feat(project): migrate to sova project naming * feat(md): updated DEVELOP.md * feat(pip): new logo * feat(pip): fix notebook * feat(pip): change link to mrob wheel * feat(pip): minor README fixes * feat(pip): python only 3.10 * fix(pip): revert >3.10.0 * fix(pip): fix dependecies * feat(pip): python 3.10.* * feat(pip): mrob >=0.0.12 * feat(pip): removed last mentions of voxel-slam
- Loading branch information
Showing
68 changed files
with
380 additions
and
301 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
name: Publish pip on PyPi | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
publish-to-production-pypi: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-version: [ "3.10" ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install poetry | ||
- name: Publish to production PyPI | ||
run: | | ||
poetry version $(git describe --tags --abbrev=0) | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
poetry publish --build |
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
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,25 @@ | ||
# Publish package to PyPi | ||
|
||
Firstly you have to ensure, that package properly builds, publishes and works. | ||
To do this, you must first publish it on https://test.pypi.org | ||
|
||
1. Create tag on main branch: | ||
```commandline | ||
git tag <tagname> | ||
``` | ||
2. Push created tag to repository | ||
```commandline | ||
git push origin <tagname> | ||
``` | ||
After this GitHubActions will automatically build pip package and push it to test PyPi registry | ||
3. Ensure, that installed pip package from https://test.pypi.org works properly | ||
```commandline | ||
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple sova==<tagname> | ||
``` | ||
4. Publish pip package manually on production PyPi using the following steps: | ||
- Go to Actions page | ||
- Go to "Publish pip on PyPi" workflow on left side of the screen | ||
- Go to "Run workflow" and choose last tag which has been created from tags | ||
- Click "Run workflow" | ||
After this GitHubActions will automatically build pip package and push it to test production registry |
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
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.