Skip to content

Commit f0f8d6b

Browse files
committed
Removed poetry in favor of hatchling backend
1 parent 049aff0 commit f0f8d6b

6 files changed

Lines changed: 80 additions & 1739 deletions

File tree

.github/workflows/docs.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-python@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
1414

15-
- name: Install Poetry
16-
uses: abatilo/actions-poetry@v2.1.2
15+
- uses: actions/cache@v3
16+
with:
17+
path: ${{ env.pythonLocation }}
18+
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
1719

1820
- name: Install dependencies
19-
run: poetry install
21+
run: pip install .[doc]
2022

2123
- name: Deploy to GitHub Pages
22-
run: poetry run mkdocs gh-deploy --force
24+
run: mkdocs gh-deploy --force

.github/workflows/publish.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ name: Publish
22

33
on:
44
release:
5-
types: created
5+
types: [created]
66

77
jobs:
88
publish:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313

1414
- name: Set up Python
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v4
1616

17-
- name: Install Poetry
18-
uses: abatilo/actions-poetry@v2.1.2
17+
- name: Install dependencies
18+
run: pip install build
1919

2020
- name: Build
21-
run: poetry build
21+
run: python -m build
2222

2323
- name: Publish to PyPI
24-
env:
25-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
26-
run: poetry publish
24+
uses: pypa/gh-action-pypi-publish@release/v1
25+
with:
26+
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/test-suite.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,24 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
python-version: ['3.6', '3.7', '3.8', '3.9']
16+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-python@v2
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323

24-
- uses: actions/cache@v2
24+
- uses: actions/cache@v3
2525
with:
26-
path: ~/.cache/pip
27-
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
28-
29-
- name: Install Poetry
30-
uses: abatilo/actions-poetry@v2.1.2
26+
path: ${{ env.pythonLocation }}
27+
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
3128

3229
- name: Install dependencies
33-
run: poetry install
30+
run: pip install -e .[test]
3431

3532
- name: Tests
36-
run: poetry run scripts/test.sh
33+
run: scripts/test.sh
3734

3835
- name: Upload coverage
39-
uses: codecov/codecov-action@v1
36+
uses: codecov/codecov-action@v3

docs/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ A debug toolbar for FastAPI based on the original [django-debug-toolbar](https:/
22

33
**Swagger UI** & **GraphQL** are supported.
44

5-
## Requirements
6-
7-
Python 3.6+
8-
95
## Installation
106

117
```sh

0 commit comments

Comments
 (0)