diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 233ab54..2460042 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,12 +10,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Build and publish to pypi - uses: JRubics/poetry-publish@v1.10 - with: - pypi_token: ${{ secrets.PYPI_TOKEN }} - ignore_dev_requirements: "yes" - extra_build_dependency_packages: "libblas3 liblapack3 liblapack-dev libblas-dev gfortran libatlas-base-dev" + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + sudo apt-get install libblas3 liblapack3 liblapack-dev libblas-dev gfortran libatlas-base-dev + - name: Build and publish + run: | + poetry version $(git describe --tags --abbrev=0) + poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }} push_to_registry: name: Push Docker image to Docker Hub runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 3d63aae..e03f43c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ARG DEBIAN_FRONTEND=noninteractive FROM debian:bullseye-slim AS builder ARG PYTHON_DEP -RUN BUILD_DEP='python3-pip python3-setuptools python3-dev libblas-dev liblapack-dev gfortran libffi-dev libxml2-dev libxslt1-dev' ; \ +RUN BUILD_DEP='python3-pip python3-setuptools python3-dev libblas-dev liblapack-dev gfortran libffi-dev libxml2-dev libxslt1-dev make automake gcc g++ subversion' ; \ apt-get update && apt-get install -y --no-install-recommends $BUILD_DEP $PYTHON_DEP; RUN pip3 install --upgrade pip RUN pip3 install poetry diff --git a/pyproject.toml b/pyproject.toml index a3dfda3..6c294e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "psa-car-controller" -version = "3.0.0" +version = "3.0.0rc0" description = "This is a python program to control a psa car with connected_car v4 api." authors = ["Florian Bezannier "] license = "GPL-3.0"