svn commit: r510953 - in head/devel: . py-lunardate

Dan Langille dvl at FreeBSD.org
Tue Sep 3 15:39:58 UTC 2019


Author: dvl
Date: Tue Sep  3 15:39:57 2019
New Revision: 510953
URL: https://svnweb.freebsd.org/changeset/ports/510953

Log:
  Add py-lunardate, a Chinese Calendar Library in Pure Python
  
  Submitted by:	Gilbert Morgan <gmm at tutanota.com> (via private email)

Added:
  head/devel/py-lunardate/
  head/devel/py-lunardate/Makefile   (contents, props changed)
  head/devel/py-lunardate/distinfo   (contents, props changed)
  head/devel/py-lunardate/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Sep  3 15:10:19 2019	(r510952)
+++ head/devel/Makefile	Tue Sep  3 15:39:57 2019	(r510953)
@@ -4619,6 +4619,7 @@
     SUBDIR += py-logilab-common
     SUBDIR += py-logutils
     SUBDIR += py-louie
+    SUBDIR += py-lunardate
     SUBDIR += py-lxml
     SUBDIR += py-macholib
     SUBDIR += py-magic

Added: head/devel/py-lunardate/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-lunardate/Makefile	Tue Sep  3 15:39:57 2019	(r510953)
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+PORTNAME=	lunardate
+PORTVERSION=	0.2.0
+CATEGORIES=	devel
+MASTER_SITES=	https://files.pythonhosted.org/packages/d7/ce/571488ce9f7c79f8e1e0e4269b72e32c990547d41c5c77ee81dc069795db/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	gmm at tutanota.com
+COMMENT=	Chinese Calendar Library in Pure Python
+
+LICENSE=	MIT
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>

Added: head/devel/py-lunardate/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-lunardate/distinfo	Tue Sep  3 15:39:57 2019	(r510953)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1567194412
+SHA256 (lunardate-0.2.0.tar.gz) = 6c9c96d9f01522a10ab35df1a9b48707ae64a086f13fd34498b43f465918cc6f
+SIZE (lunardate-0.2.0.tar.gz) = 5060

Added: head/devel/py-lunardate/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-lunardate/pkg-descr	Tue Sep  3 15:39:57 2019	(r510953)
@@ -0,0 +1,17 @@
+Chinese Calendar Library in Pure Python
+
+>>> from lunardate import LunarDate
+>>> LunarDate.fromSolarDate(1976, 10, 1)
+LunarDate(1976, 8, 8, 1)
+>>> LunarDate(1976, 8, 8, 1).toSolarDate()
+datetime.date(1976, 10, 1)
+>>> LunarDate(1976, 8, 8, 1).year
+1976
+>>> LunarDate(1976, 8, 8, 1).month
+8
+>>> LunarDate(1976, 8, 8, 1).day
+8
+>>> LunarDate(1976, 8, 8, 1).isLeapMonth
+True
+
+WWW: https://pypi.org/project/lunardate/


More information about the svn-ports-all mailing list