PSARC 2016/341 croniter - iteration for datetime objects with cron-like schedule spec
authorLaszlo Peter <laszlo.peter@oracle.com>
Wed, 07 Sep 2016 14:48:22 -0700
changeset 6749 d380d0db5fa3
parent 6748 af3ce72662d4
child 6750 b93f4cab3687
PSARC 2016/341 croniter - iteration for datetime objects with cron-like schedule spec 23745914 croniter: iteration for datetime objects with cron-like schedule spec
components/python/croniter/Makefile
components/python/croniter/croniter-PYVER.p5m
components/python/croniter/croniter.license
components/python/croniter/test/results-all.master
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/croniter/Makefile	Wed Sep 07 14:48:22 2016 -0700
@@ -0,0 +1,64 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		croniter
+COMPONENT_VERSION=	0.3.12
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH=	\
+    sha256:445cb26bc2f3cff25a7b06575caf98312b552affffeee0437f26d416c6e3c895
+COMPONENT_ARCHIVE_URL=	$(call pypi_url)
+COMPONENT_PROJECT_URL=	http://github.com/kiorky/croniter
+COMPONENT_BUGDB=	python-mod/croniter
+
+TPNO=			28601
+
+include $(WS_MAKE_RULES)/prep.mk
+include $(WS_MAKE_RULES)/setup.py.mk
+include $(WS_MAKE_RULES)/ips.mk
+
+ASLR_MODE = $(ASLR_NOT_APPLICABLE)
+
+# common targets
+build:		$(BUILD_NO_ARCH)
+
+install:	$(INSTALL_NO_ARCH)
+
+# Run the tests in the build directory so as not to touch the source directory.
+# The tests are copied over during the build, so we don't have to do that now.
+COMPONENT_TEST_DIR = $(@D)
+COMPONENT_TEST_CMD = py.test-$(PYTHON_VERSION)
+COMPONENT_TEST_ARGS = --result-log=$(COMPONENT_TEST_OUTPUT)
+COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
+
+test:		$(TEST_NO_ARCH)
+
+system-test:	$(NO_TESTS)
+
+
+REQUIRED_PKGS_PYVER += library/python/dateutil-PYVER
+REQUIRED_PACKAGES += $(foreach v,$(subst .,,$(PYTHON_VERSIONS)),$(subst -PYVER,-$(v),$(REQUIRED_PKGS_PYVER)))
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/croniter/croniter-PYVER.p5m	Wed Sep 07 14:48:22 2016 -0700
@@ -0,0 +1,55 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri \
+    value=pkg:/library/python/croniter-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary \
+    value="iteration for datetime objects with a cron-like format"
+set name=com.oracle.info.description value="the Python croniter module"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value=org.opensolaris.category.2008:Development/Python
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream \
+    value="Mathieu Le Marec-Pasquet <[email protected]>" \
+    value="Matsumoto Taichi <[email protected]>"
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2016/341
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+#
+file path=usr/lib/python$(PYVER)/vendor-packages/croniter-$(COMPONENT_VERSION)-py$(PYVER).egg-info/PKG-INFO
+file path=usr/lib/python$(PYVER)/vendor-packages/croniter-$(COMPONENT_VERSION)-py$(PYVER).egg-info/SOURCES.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/croniter-$(COMPONENT_VERSION)-py$(PYVER).egg-info/dependency_links.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/croniter-$(COMPONENT_VERSION)-py$(PYVER).egg-info/requires.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/croniter-$(COMPONENT_VERSION)-py$(PYVER).egg-info/top_level.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/croniter/__init__.py
+file path=usr/lib/python$(PYVER)/vendor-packages/croniter/croniter.py \
+    pkg.depend.bypass-generate=.*/dateutil.*
+#
+license croniter.license license=MIT
+
+# force a dependency on the croniter package
+depend type=require \
+    fmri=library/python/[email protected]$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/croniter/croniter.license	Wed Sep 07 14:48:22 2016 -0700
@@ -0,0 +1,16 @@
+Copyright (C) 2010-2012 Matsumoto Taichi
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+	THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+	OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+	ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+	OTHER DEALINGS IN THE SOFTWARE.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/croniter/test/results-all.master	Wed Sep 07 14:48:22 2016 -0700
@@ -0,0 +1,30 @@
+. lib/croniter/tests/test_croniter.py::CroniterTest::testBug1
+. lib/croniter/tests/test_croniter.py::CroniterTest::testBug2
+. lib/croniter/tests/test_croniter.py::CroniterTest::testBug3
+. lib/croniter/tests/test_croniter.py::CroniterTest::testDay
+. lib/croniter/tests/test_croniter.py::CroniterTest::testError
+. lib/croniter/tests/test_croniter.py::CroniterTest::testGetCurrent
+. lib/croniter/tests/test_croniter.py::CroniterTest::testHour
+. lib/croniter/tests/test_croniter.py::CroniterTest::testISOWeekday
+. lib/croniter/tests/test_croniter.py::CroniterTest::testInitNoStartTime
+. lib/croniter/tests/test_croniter.py::CroniterTest::testLastDayOfMonth
+. lib/croniter/tests/test_croniter.py::CroniterTest::testMinute
+. lib/croniter/tests/test_croniter.py::CroniterTest::testMonth
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPrevDayOfMonthWithCrossing
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPrevLastDayOfMonth
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPrevMinute
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPrevWeekDay
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPrevWeekDay2
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPreviousDay
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPreviousDow
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPreviousHour
+. lib/croniter/tests/test_croniter.py::CroniterTest::testPreviousMonth
+. lib/croniter/tests/test_croniter.py::CroniterTest::testSecond
+. lib/croniter/tests/test_croniter.py::CroniterTest::testSecondRepeat
+. lib/croniter/tests/test_croniter.py::CroniterTest::testSundayToThursdayWithAlphaConversion
+. lib/croniter/tests/test_croniter.py::CroniterTest::testTimezone
+. lib/croniter/tests/test_croniter.py::CroniterTest::testTimezoneSummerTime
+. lib/croniter/tests/test_croniter.py::CroniterTest::testTimezoneWinterTime
+. lib/croniter/tests/test_croniter.py::CroniterTest::testWeekDay
+. lib/croniter/tests/test_croniter.py::CroniterTest::test_rangeGenerator
+. lib/croniter/tests/test_speed.py::TestCase::test_Noop