From cd2c35a9b699522b282cc4f024efa5699df24896 Mon Sep 17 00:00:00 2001 From: Milas Bowman Date: Sat, 30 Jul 2022 12:14:27 -0400 Subject: ci: add workflow for releases (#3018) GitHub Actions workflow to create a release: will upload to PyPI and create a GitHub release with the `sdist` and `bdist_wheel` as well. The version code is switched to `setuptools_scm` to work well with this flow (e.g. avoid needing to write a script that does a `sed` on the version file and commits as part of release). Signed-off-by: Milas Bowman --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index c158a9d..ef9b886 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,6 @@ ARG PYTHON_VERSION=3.10 FROM python:${PYTHON_VERSION} -RUN mkdir /src WORKDIR /src COPY requirements.txt /src/requirements.txt @@ -11,5 +10,6 @@ RUN pip install --no-cache-dir -r requirements.txt COPY test-requirements.txt /src/test-requirements.txt RUN pip install --no-cache-dir -r test-requirements.txt -COPY . /src +COPY . . +ARG SETUPTOOLS_SCM_PRETEND_VERSION_DOCKER RUN pip install --no-cache-dir . -- cgit v1.2.1