Skip to content

Commit

Permalink
devel/py-hatch-semver: Add py-hatch-semver 1.0.1
Browse files Browse the repository at this point in the history
hatch-semver is a plugin for hatch to support semantic versioning. Hatch-semver
relies on python-semver for all the versioning logic.
  • Loading branch information
sunpoet committed Mar 21, 2023
1 parent a411a50 commit c80b0d3
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4692,6 +4692,7 @@
SUBDIR += py-hatch-jupyter-builder
SUBDIR += py-hatch-nodejs-version
SUBDIR += py-hatch-requirements-txt
SUBDIR += py-hatch-semver
SUBDIR += py-hatch-vcs
SUBDIR += py-hatchling
SUBDIR += py-heapdict
Expand Down
24 changes: 24 additions & 0 deletions devel/py-hatch-semver/Makefile
@@ -0,0 +1,24 @@
PORTNAME= hatch-semver
PORTVERSION= 1.0.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= hatch_semver-${PORTVERSION}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Hatch plugin for semver versioning scheme
WWW= https://github.com/Nagidal/hatch-semver

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.8.0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}semver>=2.13.0<2.14:devel/py-semver@${PY_FLAVOR}

USES= python:3.7+
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-hatch-semver/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1677770927
SHA256 (hatch_semver-1.0.1.tar.gz) = 245b6168e1de53dfa43c55a0f8a96d1c204924a515b704df790fb6855bad43b8
SIZE (hatch_semver-1.0.1.tar.gz) = 19813
10 changes: 10 additions & 0 deletions devel/py-hatch-semver/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
--- pyproject.toml.orig 2020-02-02 00:00:00 UTC
+++ pyproject.toml
@@ -1,7 +1,6 @@
[build-system]
requires = [
"hatchling>=1.8.0",
- "hatch-semver",
]
build-backend = "hatchling.build"

2 changes: 2 additions & 0 deletions devel/py-hatch-semver/pkg-descr
@@ -0,0 +1,2 @@
hatch-semver is a plugin for hatch to support semantic versioning. Hatch-semver
relies on python-semver for all the versioning logic.

0 comments on commit c80b0d3

Please sign in to comment.