Skip to content

Commit f48349e

Browse files
authored
fix: use setuptools-scm and release drafter (#128)
- replace in-repo changelog with github releases page - update project metadata - use setuptools-scm auto-versioning based on tags - make use of release-drafter for updating the changelogs
1 parent f6004c8 commit f48349e

File tree

4 files changed

+32
-111
lines changed

4 files changed

+32
-111
lines changed

.github/workflows/push.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# See https://github.com/ansible/team-devtools/blob/main/.github/workflows/push.yml
3+
name: push
4+
"on":
5+
push:
6+
branches:
7+
- main
8+
- "releases/**"
9+
- "stable/**"
10+
11+
jobs:
12+
ack:
13+
uses: ansible/team-devtools/.github/workflows/push.yml@main

CHANGELOG.md

Lines changed: 0 additions & 104 deletions
This file was deleted.

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ include *.py
22
include *.txt
33
include *.yaml
44
include .pre-commit-config.yaml
5-
include CHANGELOG.md
65
include LICENSE
76
include tox.ini

pyproject.toml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
[project]
2-
# https://peps.python.org/pep-0621/#readme
3-
requires-python = ">=3.10"
4-
version = "0.3.0"
52
name = "pytest-github-actions-annotate-failures"
63
description = "pytest plugin to annotate failed tests with a workflow command for GitHub Actions"
74
readme = "README.md"
5+
# https://peps.python.org/pep-0621/#readme
6+
requires-python = ">=3.10"
7+
license = "MIT"
88
authors = [{ "name" = "utgwkk", "email" = "utagawakiki@gmail.com" }]
99
maintainers = [{ "name" = "utgwkk", "email" = "utagawakiki@gmail.com" }]
10-
license = { text = "MIT" }
10+
keywords = ["plugin", "pytest", "testing"]
1111
classifiers = [
1212
"Development Status :: 5 - Production/Stable",
1313
"Environment :: Console",
1414
"Framework :: Pytest",
1515
"Intended Audience :: Developers",
1616
"Intended Audience :: Information Technology",
1717
"Intended Audience :: System Administrators",
18-
"License :: OSI Approved :: MIT License",
1918
"Programming Language :: Python",
2019
"Programming Language :: Python :: 3",
2120
"Programming Language :: Python :: 3 :: Only",
@@ -29,8 +28,8 @@ classifiers = [
2928
"Topic :: System :: Systems Administration",
3029
"Topic :: Utilities",
3130
]
32-
keywords = ["ansible", "molecule", "plugin", "testing"]
3331
dependencies = ["pytest>=7.0.0"]
32+
dynamic = ["version"]
3433

3534
[project.urls]
3635
changelog = "https://github.com/pytest-dev/pytest-github-actions-annotate-failures/releases"
@@ -79,3 +78,17 @@ isort.required-imports = ["from __future__ import annotations"]
7978

8079
[tool.ruff.lint.per-file-ignores]
8180
"tests/**" = ["T20"]
81+
82+
[tool.setuptools_scm]
83+
# To prevent accidental pick of mobile version tags such 'v6'
84+
git_describe_command = [
85+
"git",
86+
"describe",
87+
"--dirty",
88+
"--long",
89+
"--tags",
90+
"--match",
91+
"v*.*",
92+
]
93+
local_scheme = "no-local-version"
94+
tag_regex = "^(?P<prefix>v)?(?P<version>\\d+[^\\+]*)(?P<suffix>.*)?$"

0 commit comments

Comments
 (0)