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
11 changes: 11 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[bumpversion]
current_version = 0.16.0
commit = True
tag = True
tag_name = {new_version}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<release>(\.dev|rc)[0-9]+)?
serialize =
{major}.{minor}.{patch}{release}
{major}.{minor}.{patch}

[bumpversion:file:pyproject.toml]
44 changes: 42 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: Build

on: [push, pull_request]
on:
push:
branches: [master]
tags:
- '[0-9]*'
pull_request:
branches: [master]
workflow_dispatch:

env:
PYTHONIOENCODING: "utf-8"

jobs:
build:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -33,3 +40,36 @@ jobs:
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.1

build-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build package
run: |
pip install -U build
python -m build
- uses: actions/upload-artifact@v4
with:
name: package
path: ./dist/*

pypi-publish:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [tests, style, build-package]
environment:
name: pypi
url: https://pypi.org/p/docstring-parser
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: package
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/.gitignore
__pycache__
*.egg-info
.idea/
.idea/
venv*
dist
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "docstring_parser"
version = "0.16"
version = "0.16.0"
description = "Parse Python docstrings in reST, Google and Numpydoc format"
authors = [
{name="Marcin Kurczewski", email="dash@wind.garden"},
Expand Down
Loading