aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-gitpython
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-18 13:56:27 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-18 14:13:14 +0800
commit579c74c9bf8040b721dede0e8bd89bc71f4bb43c (patch)
tree173abf4aa40acf394675874cc7dbd68be5fc492e /devel/py-gitpython
parentdde928d13ae2da6956f9d2389116b6b22d43ca6b (diff)
devel/py-gitpython: Update to 3.1.43
- Update WWW - Update TEST_DEPENDS - Convert to USE_PYTHON=pep517 - Convert to USE_PYTHON=pytest - Update pkg-descr Changes: https://github.com/gitpython-developers/GitPython/releases https://gitpython.readthedocs.io/en/stable/changes.html
Diffstat (limited to 'devel/py-gitpython')
-rw-r--r--devel/py-gitpython/Makefile31
-rw-r--r--devel/py-gitpython/distinfo6
-rw-r--r--devel/py-gitpython/files/patch-setup.py11
-rw-r--r--devel/py-gitpython/pkg-descr7
4 files changed, 40 insertions, 15 deletions
diff --git a/devel/py-gitpython/Makefile b/devel/py-gitpython/Makefile
index 6e9c3356f40f..39d9edc4f38d 100644
--- a/devel/py-gitpython/Makefile
+++ b/devel/py-gitpython/Makefile
@@ -1,28 +1,39 @@
PORTNAME= gitpython
-DISTVERSION= 3.1.30
+PORTVERSION= 3.1.43
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= GitPython-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
-COMMENT= Python Git Library
-WWW= https://github.com/gitpython-developers/GitPython
+COMMENT= Python library used to interact with Git repositories
+WWW= https://gitpython.readthedocs.io/en/stable/ \
+ https://github.com/gitpython-developers/GitPython
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gitdb>=4.0.1<5:devel/py-gitdb@${PY_FLAVOR}
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ddt>=1.1.1:devel/py-ddt@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ddt>=1.1.1:devel/py-ddt@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mypy>=0:devel/py-mypy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pre-commit>=0:devel/py-pre-commit@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-instafail>=0:devel/py-pytest-instafail@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-sugar>=0:devel/py-pytest-sugar@${PY_FLAVOR} \
USES= python
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517 pytest
NO_ARCH= yes
-do-test:
- cd ${WRKSRC} && ${PYTHON_CMD} -m nose
+.include <bsd.port.pre.mk>
-.include <bsd.port.mk>
+.if ${PYTHON_REL} < 31100
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-gitpython/distinfo b/devel/py-gitpython/distinfo
index d876e4a96a6d..d622a1dc13e9 100644
--- a/devel/py-gitpython/distinfo
+++ b/devel/py-gitpython/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1672648220
-SHA256 (GitPython-3.1.30.tar.gz) = 769c2d83e13f5d938b7688479da374c4e3d49f71549aaf462b646db9602ea6f8
-SIZE (GitPython-3.1.30.tar.gz) = 195508
+TIMESTAMP = 1726487352
+SHA256 (GitPython-3.1.43.tar.gz) = 35f314a9f878467f5453cc1fee295c3e18e52f1b99f10f6cf5b1682e968a9e7c
+SIZE (GitPython-3.1.43.tar.gz) = 214149
diff --git a/devel/py-gitpython/files/patch-setup.py b/devel/py-gitpython/files/patch-setup.py
new file mode 100644
index 000000000000..172a15586e32
--- /dev/null
+++ b/devel/py-gitpython/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2024-03-30 07:54:12 UTC
++++ setup.py
+@@ -63,7 +63,7 @@ setup(
+
+
+ setup(
+- name="GitPython",
++ name="gitpython",
+ cmdclass={"build_py": build_py, "sdist": sdist},
+ version=version,
+ description="GitPython is a Python library used to interact with Git repositories",
diff --git a/devel/py-gitpython/pkg-descr b/devel/py-gitpython/pkg-descr
index effb9088b0e9..301b3c7d1f11 100644
--- a/devel/py-gitpython/pkg-descr
+++ b/devel/py-gitpython/pkg-descr
@@ -1,2 +1,5 @@
-GitPython is a python library used to interact with git repositories,
-high-level like git-porcelain, or low-level like git-plumbing.
+GitPython is a python library used to interact with git repositories, high-level
+like git-porcelain, or low-level like git-plumbing.
+
+It provides abstractions of git objects for easy access of repository data often
+backed by calling the git command-line program.