-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'docker:main' into commit_pause
- Loading branch information
Showing
98 changed files
with
1,428 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ max_line_length = 80 | |
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yaml,yml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "Release Tag WITHOUT `v` Prefix (e.g. 6.0.0)" | ||
required: true | ||
dry-run: | ||
description: 'Dry run' | ||
required: false | ||
type: boolean | ||
default: true | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Generate Pacakge | ||
run: | | ||
pip3 install wheel | ||
python setup.py sdist bdist_wheel | ||
env: | ||
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DOCKER: ${{ inputs.tag }} | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: '! inputs.dry-run' | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
- name: Create GitHub release | ||
uses: ncipollo/release-action@v1 | ||
if: '! inputs.dry-run' | ||
with: | ||
artifacts: "dist/*" | ||
generateReleaseNotes: true | ||
draft: true | ||
commit: ${{ github.sha }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ inputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,10 @@ html/* | |
_build/ | ||
README.rst | ||
|
||
# setuptools_scm | ||
_version.py | ||
|
||
env/ | ||
venv/ | ||
.idea/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
ARG PYTHON_VERSION=3.7 | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG PYTHON_VERSION=3.10 | ||
|
||
FROM python:${PYTHON_VERSION} | ||
|
||
RUN mkdir /src | ||
WORKDIR /src | ||
|
||
COPY requirements.txt /src/requirements.txt | ||
RUN pip install -r requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY test-requirements.txt /src/test-requirements.txt | ||
RUN pip install -r test-requirements.txt | ||
RUN pip install --no-cache-dir -r test-requirements.txt | ||
|
||
COPY . /src | ||
RUN pip install . | ||
COPY . . | ||
ARG SETUPTOOLS_SCM_PRETEND_VERSION_DOCKER | ||
RUN pip install --no-cache-dir . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.