On Wed, Aug 05, 2020 at 11:14:28AM +0200, Martin Reindl wrote:
> Am 02.07.20 um 12:16 schrieb Martin Reindl:
> > On Fri, Jun 26, 2020 at 02:08:35AM +0000, wen heping wrote:
> >> Hi,

> >>    Here is a patch for astro/py-astral:
> >>    i) Update to 2.2
> >>    ii) python3 only
> >>    iii) Remove BUILD_DEPENDS=${RUN_DEPENDS}
> >>    iv) Add devel/py-freezegun as RUN_DEPENDS

> >>    It build well and pass all tests, no other ports depends on it.

> > OK martin@ with the commented BUILD_DEPENDS line removed.
> > ../Makefile and quirks adjustments are also needed, of course.

> Ping? Because of maintainer timeout I'd be happy to commit.
> Comments? OKs?

Here's a proper version.

devel/py-freezegun belongs in TEST_DEPENDS
The tests don't run without the TEST_ENV addition
Also drop the REVISION line that was added after the diff was sent.

This version is ok kmos

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/astro/py-astral/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    3 Jul 2020 21:12:34 -0000       1.6
+++ Makefile    5 Aug 2020 19:05:36 -0000
@@ -2,10 +2,9 @@
 
 COMMENT =              calculations for the position of the sun and the moon
 
-MODPY_EGG_VERSION =    1.10.1
+MODPY_EGG_VERSION =    2.2
 DISTNAME =             astral-${MODPY_EGG_VERSION}
 PKGNAME =              py-${DISTNAME}
-REVISION =             0
 
 CATEGORIES =           astro
 
@@ -22,10 +21,12 @@ MODPY_PI =          Yes
 MODPY_SETUPTOOLS =     Yes
 MODPY_PYTEST =         Yes
 
-BUILD_DEPENDS =                devel/py-tz${MODPY_FLAVOR}
 RUN_DEPENDS =          devel/py-tz${MODPY_FLAVOR}
+TEST_DEPENDS =         devel/py-freezegun${MODPY_FLAVOR}
+
+TEST_ENV +=            PYTHONPATH=${WRKSRC}/lib/
 
 FLAVORS =              python3
-FLAVOR ?=
+FLAVOR =               python3
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/astro/py-astral/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo    4 Jul 2019 19:02:14 -0000       1.2
+++ distinfo    5 Aug 2020 19:05:36 -0000
@@ -1,2 +1,2 @@
-SHA256 (astral-1.10.1.tar.gz) = 0qZyQ8RQMTHIVsr7GxJ23lKobluKHVB7fgi+5Ry2e/E=
-SIZE (astral-1.10.1.tar.gz) = 53198
+SHA256 (astral-2.2.tar.gz) = 5B2ZZ9XEi+QhNGVS8PTe2tQ/85qDV09f8q0ytmJ7b74=
+SIZE (astral-2.2.tar.gz) = 578223
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/astro/py-astral/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   4 Jul 2019 19:02:14 -0000       1.2
+++ pkg/PLIST   5 Aug 2020 19:05:36 -0000
@@ -1,5 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.2 2019/07/04 19:02:14 kmos Exp $
-lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}astral.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/astral/
 
lib/python${MODPY_VERSION}/site-packages/astral-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
 
lib/python${MODPY_VERSION}/site-packages/astral-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
 
lib/python${MODPY_VERSION}/site-packages/astral-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
@@ -7,4 +7,16 @@ lib/python${MODPY_VERSION}/site-packages
 
lib/python${MODPY_VERSION}/site-packages/astral-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
 
lib/python${MODPY_VERSION}/site-packages/astral-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
 
lib/python${MODPY_VERSION}/site-packages/astral-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe
-lib/python${MODPY_VERSION}/site-packages/astral.py
+lib/python${MODPY_VERSION}/site-packages/astral/__init__.py
+lib/python${MODPY_VERSION}/site-packages/astral/__main__.py
+${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/astral/${MODPY_PYCACHE}/
+lib/python${MODPY_VERSION}/site-packages/astral/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/astral/${MODPY_PYCACHE}__main__.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/astral/${MODPY_PYCACHE}geocoder.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/astral/${MODPY_PYCACHE}location.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/astral/${MODPY_PYCACHE}moon.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/astral/${MODPY_PYCACHE}sun.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/astral/geocoder.py
+lib/python${MODPY_VERSION}/site-packages/astral/location.py
+lib/python${MODPY_VERSION}/site-packages/astral/moon.py
+lib/python${MODPY_VERSION}/site-packages/astral/sun.py

Reply via email to