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
4 changes: 2 additions & 2 deletions .github/workflows/cache-item-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ on:
# cycle = cogeol.scientific()[-1]["cycle"]
# cog.out(f' default: "{cycle}"')
# ]]]
default: "3.11"
# [[[end]]] (sum: w9GfzS/bue)
default: "3.12"
# [[[end]]] (sum: lAlMRZbmJy)
os:
description: "Operating system to cache on"
type: "string"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cache-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
# cycle = version["cycle"]
# cog.outl(f' - "{cycle}"')
# ]]]
- "3.11"
- "3.12"
- "3.13"
# [[[end]]] (sum: l3d2zGv79j)
- "3.14"
# [[[end]]] (sum: wgdYaRbI0v)
os:
- "ubuntu-latest"
- "macos-latest"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-sbom-run-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ on:
# cycle = cogeol.scientific()[-1]["cycle"]
# cog.out(f' default: "{cycle}"')
# ]]]
default: "3.11"
# [[[end]]] (sum: w9GfzS/bue)
default: "3.12"
# [[[end]]] (sum: lAlMRZbmJy)

# ADDITIONAL
additional-allowed-endpoints:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-sboms-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ jobs:
# ]]]
run: |
echo "matrix=$(echo '{
"python-version": ["3.11", "3.12", "3.13"],
"python-version": ["3.12", "3.13", "3.14"],
"os": ["ubuntu-latest", "macos-latest", "windows-latest"],
"dependencies": [
{"name": "dev", "group": "", "all": true},
{"name": "package", "group": "release", "all": false}
]
}' | jq -r 'tojson')" >> "${GITHUB_OUTPUT}"
# [[[end]]] (sum: q1QeclzB43)
# [[[end]]] (sum: /s03rma5wq)
# yamllint enable rule:indentation

# Works regardless of repo type
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ on:
# cycle = cogeol.scientific()[-1]["cycle"]
# cog.out(f' default: "{cycle}"')
# ]]]
default: "3.11"
# [[[end]]] (sum: w9GfzS/bue)
default: "3.12"
# [[[end]]] (sum: lAlMRZbmJy)

# ADDITIONAL
additional-allowed-endpoints:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
# cycle = version['cycle']
# cog.outl(f' - "{cycle}"')
# ]]]
- "3.11"
- "3.12"
- "3.13"
# [[[end]]] (sum: l3d2zGv79j)
- "3.14"
# [[[end]]] (sum: wgdYaRbI0v)
os:
- "ubuntu-latest"
- "macos-latest"
Expand Down
24 changes: 24 additions & 0 deletions osv-scanner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,30 @@ reason = "Affects SVN, which is not used in this project."
id = "GHSA-w596-4wvx-j9j6"
reason = "Affects SVN or pytest<7.2.0, which are not used in this project."

[[PackageOverrides]]
ecosystem = "PyPI"
name = "pyjson5"
license.ignore = true
reason = "transitive dependency"

[[PackageOverrides]]
ecosystem = "PyPI"
name = "python-discovery"
license.ignore = true
reason = "transitive dependency"

[[PackageOverrides]]
ecosystem = "PyPI"
name = "griffelib"
license.ignore = true
reason = "transitive dependency"

[[PackageOverrides]]
ecosystem = "PyPI"
name = "peewee"
license.ignore = true
reason = "transitive dependency"

[[PackageOverrides]]
ecosystem = "PyPI"
name = "trove-classifiers"
Expand Down
4,087 changes: 2,277 additions & 1,810 deletions pdm.lock

Large diffs are not rendered by default.

46 changes: 26 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ authors = [
# cycle = cogeol.scientific()[-1]["cycle"]
# cog.out(f'requires-python = ">={cycle}"')
# ]]]
requires-python = ">=3.11"
# [[[end]]] (sum: YimYlx3sLU)
requires-python = ">=3.12"
# [[[end]]] (sum: ChWHeFtwKI)

# Full list of classifiers: https://pypi.org/classifiers/
classifiers = [
Expand All @@ -54,13 +54,14 @@ classifiers = [
# cycle = version["cycle"]
# cog.outl(f' "Programming Language :: Python :: {cycle}",')
# ]]]
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
# [[[end]]] (sum: FeG7grp2Dw)
"Programming Language :: Python :: 3.14",
# [[[end]]] (sum: n4HYN0jbX1)
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
"Framework :: Hatch",
]
dynamic = [ "version" ]

Expand Down Expand Up @@ -88,6 +89,9 @@ urls.Repository = "https://github.com/open-nudge/comver"
[project.scripts]
comver = "comver._cli:main"

[project.entry-points.hatch]
comver = "comver.plugin"

[dependency-groups]
dev-tests = [
# Fuzz/property testing for Python
Expand Down Expand Up @@ -188,8 +192,8 @@ dev-security = [
# cycle = cogeol.scientific()[-1]["cycle"]
# cog.out(f''' "semgrep>=1; platform_system!='Windows' and python_version=='{cycle}'"''')
# ]]]
"semgrep>=1; platform_system!='Windows' and python_version=='3.11'"
# [[[end]]] (sum: 0aEPMwHm+9)
"semgrep>=1; platform_system!='Windows' and python_version=='3.12'"
# [[[end]]] (sum: xEbnmglzzV)
]

dev-github = [
Expand Down Expand Up @@ -423,6 +427,7 @@ ignore_undeclared = [
"pytest",
"hypothesis",
"comver",
"git",
]

ignore_unused = [
Expand Down Expand Up @@ -485,6 +490,7 @@ ignore_unused = [
"reuse",
"ruff",
"spdx-tools",
"GitPython",
]

[tool.interrogate]
Expand Down Expand Up @@ -524,8 +530,8 @@ pythonPlatform = "All"
# cycle = cogeol.scientific()[-1]["cycle"]
# cog.out(f'pythonVersion = "{cycle}"')
# ]]]
pythonVersion = "3.11"
# [[[end]]] (sum: XMgb7wOez5)
pythonVersion = "3.12"
# [[[end]]] (sum: CWmwxUtwUJ)

failOnWarnings = true

Expand Down Expand Up @@ -560,8 +566,8 @@ extraPaths = [
# cycle = cogeol.scientific()[-1]["cycle"]
# cog.out(f' "__pypackages__/{cycle}/lib"')
# ]]]
"__pypackages__/3.11/lib"
# [[[end]]] (sum: Uf7Jgq+ShT)
"__pypackages__/3.12/lib"
# [[[end]]] (sum: cwShhPR5Lt)
]

[tool.pymarkdown]
Expand Down Expand Up @@ -839,13 +845,13 @@ tests-all = { composite = [
# ' "pdm run tests {args:tests}",'
# )
# ]]]
"pdm use 3.14",
"pdm run tests {args:tests}",
"pdm use 3.13",
"pdm run tests {args:tests}",
"pdm use 3.12",
"pdm run tests {args:tests}",
"pdm use 3.11",
"pdm run tests {args:tests}",
# [[[end]]] (sum: R5ZEP5Ahja)
# [[[end]]] (sum: l+CVH9xxZS)
] }

###############################################################################
Expand Down Expand Up @@ -1166,10 +1172,10 @@ setup = { composite = [
# cycle = version["cycle"]
# cog.outl(f' "pdm python install {cycle}",')
# ]]]
"pdm python install 3.14",
"pdm python install 3.13",
"pdm python install 3.12",
"pdm python install 3.11",
# [[[end]]] (sum: uZEo+p96oZ)
# [[[end]]] (sum: EKFElxllOV)
#
# DO NOT EDIT UNTIL end marker
#
Expand All @@ -1182,11 +1188,11 @@ setup = { composite = [
# cog.outl(f' "pdm use {cycle}",')
# cog.outl(f' "pdm run refresh",')
# ]]]
"pdm use 3.13",
"pdm use 3.14",
"pdm run refresh",
"pdm use 3.12",
"pdm use 3.13",
"pdm run refresh",
# [[[end]]] (sum: 7Y0OJ5MOhi)
# [[[end]]] (sum: /IUGZwEqDU)
#
# DO NOT EDIT UNTIL end marker
#
Expand All @@ -1197,8 +1203,8 @@ setup = { composite = [
# cycle = cogeol.scientific()[-1]["cycle"]
# cog.outl(f' "pdm use {cycle}",')
# ]]]
"pdm use 3.11",
# [[[end]]] (sum: aXoMTrp8k2)
"pdm use 3.12",
# [[[end]]] (sum: VskYZaUrei)
"pdm install -G:all --no-editable",
"pdm run pre-commit install --install-hooks",
] }
Expand Down
4 changes: 2 additions & 2 deletions src/comver/_subcommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def _verify(args: argparse.Namespace) -> bool:
print( # noqa: T201
f"Specified version: `{args.version}` has sha: `{sha}`, while expected sha is: `{args.sha}`",
file=sys.stderr,
) # pragma: no cover
return True # pragma: no cover
) # pragma: no cover
return True # pragma: no cover

if args.sha == sha:
print( # noqa: T201
Expand Down
Loading