Skip to content

Commit 377c2bb

Browse files
authored
Merge pull request #40 from krassowski/fix-actions
Drop Python 3.7 from testing, add 3.12 and 3.13, update actions
1 parent f400f01 commit 377c2bb

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

.github/workflows/publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- name: Set up Python 3.8
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v5
1414
with:
1515
python-version: 3.8
1616
- name: Install build dependencies
1717
run: |
18-
python -m pip install --upgrade pip wheel
18+
python -m pip install --upgrade pip wheel build
1919
- name: Build package
2020
run: |
21-
python setup.py sdist bdist_wheel
21+
python -m build
2222
- name: Publish a Python distribution to PyPI
2323
uses: pypa/[email protected]
2424
with:

.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
14+
python-version: [3.8, 3.9, '3.10', '3.11', '3.12', '3.13']
1515
runs-on: ${{ matrix.os }}
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Install test dependencies
2323
run: |
24-
python -m pip install --upgrade pip wheel
24+
python -m pip install --upgrade pip wheel build
2525
python -m pip install -r requirements-dev.txt
2626
- name: Temporary installation
2727
run: python -m pip install -e .
@@ -33,7 +33,7 @@ jobs:
3333
mypy docstring_to_markdown
3434
- name: Build package
3535
run: |
36-
python setup.py sdist bdist_wheel
36+
python -m build
3737
- name: Install package
3838
run: python -m pip install --find-links=dist --no-index --ignore-installed docstring_to_markdown
3939
- name: Pip check

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
On the fly conversion of Python docstrings to markdown
88

9-
- Python 3.6+ (tested on 3.7 up to 3.11)
9+
- Python 3.6+ (tested on 3.8 up to 3.13)
1010
- can recognise reStructuredText and convert multiple of its features to Markdown
1111
- since v0.13 includes initial support for Google-formatted docstrings
1212

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pytest
22
pytest-cov
33
pytest-flake8
4-
flake8<5
4+
flake8
55
mypy

0 commit comments

Comments
 (0)