Skip to content

Commit 1a1c97f

Browse files
committed
fix: use setuptools-scm and release drafter
- 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 1a1c97f

4 files changed

Lines changed: 31 additions & 111 deletions

File tree

.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: 18 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,7 +28,6 @@ classifiers = [
2928
"Topic :: System :: Systems Administration",
3029
"Topic :: Utilities",
3130
]
32-
keywords = ["ansible", "molecule", "plugin", "testing"]
3331
dependencies = ["pytest>=7.0.0"]
3432

3533
[project.urls]
@@ -79,3 +77,17 @@ isort.required-imports = ["from __future__ import annotations"]
7977

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

0 commit comments

Comments
 (0)