diff options
author | Milas Bowman <milas.bowman@docker.com> | 2022-07-30 12:14:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-30 12:14:27 -0400 |
commit | cd2c35a9b699522b282cc4f024efa5699df24896 (patch) | |
tree | 18717584169b7cbbd1196be5fe327dd36136aad7 /Dockerfile | |
parent | 828d06f5f5e2c8ecd9a8d53c1ef40f37d19a62f5 (diff) | |
download | docker-py-cd2c35a9b699522b282cc4f024efa5699df24896.tar.gz |
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 <milas.bowman@docker.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 . |