diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7eb7355..bd46cb7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,17 +8,17 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install build dependencies run: | - python -m pip install --upgrade pip wheel + python -m pip install --upgrade pip wheel build - name: Build package run: | - python setup.py sdist bdist_wheel + python -m build - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@v1.4.1 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 425eeff..7429365 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,17 +11,17 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8, 3.9, '3.10', '3.11'] + python-version: [3.8, 3.9, '3.10', '3.11', '3.12', '3.13'] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install test dependencies run: | - python -m pip install --upgrade pip wheel + python -m pip install --upgrade pip wheel build python -m pip install -r requirements-dev.txt - name: Temporary installation run: python -m pip install -e . @@ -33,7 +33,7 @@ jobs: mypy docstring_to_markdown - name: Build package run: | - python setup.py sdist bdist_wheel + python -m build - name: Install package run: python -m pip install --find-links=dist --no-index --ignore-installed docstring_to_markdown - name: Pip check diff --git a/README.md b/README.md index 7d7f45f..94231e4 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ On the fly conversion of Python docstrings to markdown -- Python 3.6+ (tested on 3.7 up to 3.11) +- Python 3.6+ (tested on 3.8 up to 3.13) - can recognise reStructuredText and convert multiple of its features to Markdown - since v0.13 includes initial support for Google-formatted docstrings diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fed528d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/requirements-dev.txt b/requirements-dev.txt index 76d0c2c..d6df770 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ pytest pytest-cov pytest-flake8 -flake8<5 +flake8 mypy