Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 12 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,25 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macOS-10.15, windows-2019]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11, 3.12.0-rc.2]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
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 dependencies
- name: Install package
run: |
python3 -m pip install poetry
poetry install -v
python3 -m pip install -e .[test]
- name: Run tests
run: poetry run pytest
run: pytest

style:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python3 -m pip install poetry
poetry install -v
- name: Run linters
run: poetry run pre-commit run -a
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.1
42 changes: 25 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.poetry]
[project]
name = "docstring_parser"
version = "0.16"
description = "Parse Python docstrings in reST, Google and Numpydoc format"
authors = ["Marcin Kurczewski <dash@wind.garden>"]
license = "MIT"
authors = [
{name="Marcin Kurczewski", email="dash@wind.garden"},
]
license = { text = "MIT" }
readme = "README.md"
repository = "https://github.com/rr-/docstring_parser"
classifiers = [
"Environment :: Other Environment",
"Development Status :: 4 - Beta",
Expand All @@ -28,22 +29,29 @@ classifiers = [
"Topic :: Text Processing :: Markup",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{ include = "docstring_parser" }
]
include = ["docstring_parser/py.typed"]
requires-python = ">=3.8"

[tool.poetry.dependencies]
python = ">=3.6,<4.0"
[project.urls]
homepage = "https://github.com/rr-/docstring_parser"
repository = "https://github.com/rr-/docstring_parser"
changelog = "https://github.com/rr-/docstring_parser/blob/master/CHANGELOG.md"

[tool.poetry.dev-dependencies]
pre-commit = {version = ">=2.16.0", python = ">=3.9"}
pytest = "*"
pydoctor = ">=22.3.0"
[project.optional-dependencies]
test = [
"pytest",
]
docs = [
"pydoctor >= 22.3.0",
]
dev = [
"docstring_parser[test]",
"docstring_parser[docs]",
"pre-commit >= 2.16.0; python_version>='3.9'",
]

[tool.black]
line-length = 79
py36 = true
py38 = true

[tool.isort]
known_third_party = "docstring_parser"
Expand Down