diff --git a/.github/actions/pyenvsetup/action.yaml b/.github/actions/pyenvsetup/action.yaml new file mode 100644 index 0000000..b415651 --- /dev/null +++ b/.github/actions/pyenvsetup/action.yaml @@ -0,0 +1,63 @@ +--- +name: Setup env +description: Create & configure a Python environment +inputs: + python-version: + description: Version range or exact version of a Python version, using SemVer's version range syntax + required: false + default: "3.x" + os: + description: The operating system for the environment + required: false + default: Linux + +runs: + using: composite + steps: + + - shell: bash + run: echo Set environment for python ${{ inputs.python-version }} in ${{ inputs.os }} + + - name: Set up Python ${{ inputs.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ inputs.python-version }} + + - name: Set up cache + uses: actions/cache@v2 + id: cache + with: + path: .venv + key: venv-${{ inputs.os }}-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + + - name: Update pip to latest version + shell: bash + run: python -m pip install --upgrade pip + + - name: Install poetry + shell: bash + run: | + curl -sL -o poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py + python poetry.py -y + + - name: Update PATH + if: ${{ runner.os != 'Windows' }} + shell: bash + run: echo "$HOME/.local/bin" >> $GITHUB_PATH + + - name: Update Path for Windows + if: ${{ runner.os == 'Windows' }} + shell: bash + run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH + + - name: Configure poetry + shell: bash + run: poetry config virtualenvs.in-project true + + - name: Install poetry dependencies + shell: bash + run: poetry install --no-interaction + + - name: Install tox + shell: bash + run: python -m pip install tox tox-poetry diff --git a/CHANGELOG.rst b/CHANGELOG.rst new file mode 100644 index 0000000..0471eb7 --- /dev/null +++ b/CHANGELOG.rst @@ -0,0 +1,22 @@ +********* +CHANGELOG +********* + +0.1.3 (2022-03-20) +------------------ +* Fix trailing slash on swagger endpoint +* Change CHANGELOG format + +0.1.2 (2022-03-18) +------------------ +* Load static files properly in swaggerUI view + +0.1.1 (2022-03-18) +------------------ +* Remove trailing spaces from default swagger route and static +* Ensure swagger endpoints serve with and without trailing slash +* Additional tests + +0.1.0 (2022-03-16) +------------------ +* Initial release. diff --git a/pyproject.toml b/pyproject.toml index 4716fc8..e64d6c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ python = "^3.7" [tool.poetry.dev-dependencies] apispec = { extras = ["yaml"], version = "^5.2.2" } -coverage = "^6.4.3" +coverage = "^6.4.4" Flask = "^2.1.3" pre-commit = "^2.20.0" pytest = "^7.1.2"