From 5a3b57e23f5857b752371219fa3c90b8ef347da7 Mon Sep 17 00:00:00 2001 From: Carlotta Date: Thu, 9 Nov 2023 15:58:07 +0100 Subject: [PATCH 1/5] added pypi-ci --- .github/workflows/pypi-ci.yml | 77 +++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .github/workflows/pypi-ci.yml diff --git a/.github/workflows/pypi-ci.yml b/.github/workflows/pypi-ci.yml new file mode 100644 index 0000000..f32ee0b --- /dev/null +++ b/.github/workflows/pypi-ci.yml @@ -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 }} From fedd052323613349302579cc00a82abc432a3255 Mon Sep 17 00:00:00 2001 From: Carlotta Sartore <56030908+CarlottaSartore@users.noreply.github.com> Date: Thu, 9 Nov 2023 17:24:11 +0100 Subject: [PATCH 2/5] Update README.md wit PiP installation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 278ae09..8d4cb17 100644 --- a/README.md +++ b/README.md @@ -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 urdfModifiers ``` From 71f49ee9c18b9b74a9afd9673cd29e06eca83d60 Mon Sep 17 00:00:00 2001 From: Carlotta Sartore <56030908+CarlottaSartore@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:04:11 +0100 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d4cb17..9d1ac2f 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ sudo apt install python3.8 ```bash -pip install urdfModifiers +pip install urdf-modifiers ``` From 8747f1591c7b9f3425dca7cffcdbf5c985122d5e Mon Sep 17 00:00:00 2001 From: Carlotta Sartore <56030908+CarlottaSartore@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:04:37 +0100 Subject: [PATCH 4/5] Update setup.cfg --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 3c92a66..44f76f2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -name = urdfModifiers +name = urdf-modifiers description = library to modify urdf author = "TODO" author_email = TODO From b13d5c10c75e64e0126440cd8962e2589e078df2 Mon Sep 17 00:00:00 2001 From: Carlotta Sartore <56030908+CarlottaSartore@users.noreply.github.com> Date: Fri, 10 Nov 2023 16:43:10 +0100 Subject: [PATCH 5/5] Update setup.cfg Co-authored-by: Silvio Traversaro --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 44f76f2..b9bd55a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -name = urdf-modifiers +name = urdf-modifiers description = library to modify urdf author = "TODO" author_email = TODO