Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added pypi-ci #36

Merged
merged 5 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/pypi-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
push:
branches: ["**"]
tags-ignore: ["**"]
pull_request:
release:
types:
- published
jobs:
build_wheels:
name: Build wheels [${{ matrix.os }}]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- 3.8
os:
- ubuntu-20.04

steps:
- uses: actions/checkout@master
- run: git fetch --prune --unshallow

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install pypa/build
run: pip install build

- name: Build wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: dist

deploy_test_PyPI:
name: 📦 Deploy to TestPyPI
runs-on: ubuntu-20.04
needs: [build_wheels]
if: github.ref == 'refs/heads/main'
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

deploy_PyPI:
name: 📦 Deploy to PyPI
runs-on: ubuntu-20.04
needs: [build_wheels]
if: startsWith(github.ref, 'refs/tags')
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ Install `python3`, if not installed (in **Ubuntu 20.04**):
sudo apt install python3.8
```

Clone the repo and install the library:
Install the library via pip:

```bash

pip install "urdfModifiers @ git+https://github.com/icub-tech-iit/urdf-modifiers"
pip install urdf-modifiers

```

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = urdfModifiers
name = urdf-modifiers
description = library to modify urdf
author = "TODO"
author_email = TODO
Comment on lines 4 to 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
author = "TODO"
author_email = TODO
author = "Germán Rodriguez, Alexandre Antunes"
author_email = "[email protected]"
mantainer = "Nicolo Genesio, Mattia Fussi"
mantainer_email = "[email protected], [email protected]"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @Nicogene @mfussi66 please double check, thanks!

fyi @CarlottaSartore

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for mine, I am not sure about the German email :D

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for mine, I am not sure about the German email :D

I got it from LinkedIn.

Expand Down
Loading