Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2020 01:41:29 +0000 (UTC)
From:      Fukang Chen <loader@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r529940 - in head: . sysutils sysutils/py-crontab sysutils/py-python-crontab
Message-ID:  <202003310141.02V1fTis078073@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: loader
Date: Tue Mar 31 01:41:29 2020
New Revision: 529940
URL: https://svnweb.freebsd.org/changeset/ports/529940

Log:
  sysutils/py-crontab: Rename to python-crontab, Update to 2.4.0
  
  - Rename the port to match the canonical/registered (PyPI/CHEESESHOP) name
  - Switch from CHEESESHOP to GitLab for complete tests data
  - Update the project website URL in pkg-descr
  - Add LICENSE_FILE
  - Add sysutils/py-cron-descriptor to RUN_DEPENDS
  - Add test target
  
  Reviewed by:	koobs
  Approved by:	koobs (ports, mentor), portmgr (maintainer timeout: > 2 weeks)
  Differential Revision:	https://reviews.freebsd.org/D23968

Added:
  head/sysutils/py-python-crontab/
     - copied from r529939, head/sysutils/py-crontab/
Deleted:
  head/sysutils/py-crontab/
Modified:
  head/MOVED
  head/sysutils/Makefile
  head/sysutils/py-python-crontab/Makefile
  head/sysutils/py-python-crontab/distinfo
  head/sysutils/py-python-crontab/pkg-descr

Modified: head/MOVED
==============================================================================
--- head/MOVED	Tue Mar 31 01:25:43 2020	(r529939)
+++ head/MOVED	Tue Mar 31 01:41:29 2020	(r529940)
@@ -14506,3 +14506,4 @@ devel/sonarqube|devel/sonarqube-community|2020-03-26|M
 devel/sonar-ant-task|devel/sonarqube-ant-task|2020-03-26|Moved due to name change upstream
 devel/rubygem-slack-notifier1|devel/rubygem-slack-notifier|2020-03-30|Obsolete, please use devel/rubygem-slack-notifier instead
 textproc/rubygem-diffy31|textproc/rubygem-diffy|2020-03-30|Obsolete, please use textproc/rubygem-diffy instead
+sysutils/py-crontab|sysutils/py-python-crontab|2020-03-31|Match canonical/registered (PyPI/CHEESESHOP) name

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Tue Mar 31 01:25:43 2020	(r529939)
+++ head/sysutils/Makefile	Tue Mar 31 01:41:29 2020	(r529940)
@@ -968,7 +968,6 @@
     SUBDIR += py-cpuinfo
     SUBDIR += py-cron-descriptor
     SUBDIR += py-croniter
-    SUBDIR += py-crontab
     SUBDIR += py-diffoscope
     SUBDIR += py-dirsync
     SUBDIR += py-distro
@@ -1004,6 +1003,7 @@
     SUBDIR += py-psutil121
     SUBDIR += py-ptyprocess
     SUBDIR += py-python-consul
+    SUBDIR += py-python-crontab
     SUBDIR += py-python-nomad
     SUBDIR += py-pytsk
     SUBDIR += py-pywatchman

Modified: head/sysutils/py-python-crontab/Makefile
==============================================================================
--- head/sysutils/py-crontab/Makefile	Tue Mar 31 01:25:43 2020	(r529939)
+++ head/sysutils/py-python-crontab/Makefile	Tue Mar 31 01:41:29 2020	(r529940)
@@ -1,22 +1,37 @@
 # Created by: Steven Kreuzer <skreuzer@FreeBSD.org>
 # $FreeBSD$
 
-PORTNAME=	crontab
-PORTVERSION=	1.9.5
+PORTNAME=	python-crontab
+PORTVERSION=	2.4.0
 CATEGORIES=	sysutils python
-MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	python-${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	skreuzer@FreeBSD.org
 COMMENT=	Read and write crontab files using a direct API
 
 LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:devel/py-dateutil@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}croniter>0:sysutils/py-croniter@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}croniter>0:sysutils/py-croniter@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cron-descriptor>0:sysutils/py-cron-descriptor@${PY_FLAVOR}
 
-USES=		python
+USES=		python shebangfix
+SHEBANG_FILES=	${WRKSRC}/tests/data/crontest
 USE_PYTHON=	autoplist distutils
 
-.include <bsd.port.mk>
+USE_GITLAB=	yes
+GL_ACCOUNT=	doctormo
+GL_COMMIT=	ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0
+
+.include <bsd.port.pre.mk>
+
+# The UTF-8 mode is enabled by default when the locale is C since Python 3.7.
+.if ${PYTHON_REL} < 3700
+TEST_ENV+=	LC_ALL=C.UTF-8
+.endif
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.post.mk>

Modified: head/sysutils/py-python-crontab/distinfo
==============================================================================
--- head/sysutils/py-crontab/distinfo	Tue Mar 31 01:25:43 2020	(r529939)
+++ head/sysutils/py-python-crontab/distinfo	Tue Mar 31 01:41:29 2020	(r529940)
@@ -1,2 +1,3 @@
-SHA256 (python-crontab-1.9.5.tar.gz) = 7c96916dcef835f02ab62b3f648285658700aa916ae663bf37952faf5eea9b2c
-SIZE (python-crontab-1.9.5.tar.gz) = 31765
+TIMESTAMP = 1582976298
+SHA256 (doctormo-python-crontab-ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0_GL0.tar.gz) = 1d1b744ff3ee337c229e992813d2c43829c2b58228e22ec19444a6fd19340805
+SIZE (doctormo-python-crontab-ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0_GL0.tar.gz) = 45416

Modified: head/sysutils/py-python-crontab/pkg-descr
==============================================================================
--- head/sysutils/py-crontab/pkg-descr	Tue Mar 31 01:25:43 2020	(r529939)
+++ head/sysutils/py-python-crontab/pkg-descr	Tue Mar 31 01:41:29 2020	(r529940)
@@ -1,4 +1,4 @@
 Module for reading and writing crontab files and accessing the system cron
 automatically and simply using a direct API.
 
-WWW: https://pypi.org/project/crontab/
+WWW: https://gitlab.com/doctormo/python-crontab



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003310141.02V1fTis078073>