Marcel Telka
2023-12-04 4d369183cc18dfffd88ed5ee11c491f5e053f5db
python/freezegun: update to 1.3.0; obsolete package for Python 3.7

4 files added
4 files modified
195 ■■■■ changed files
components/python/freezegun/Makefile 9 ●●●●● patch | view | raw | blame | history
components/python/freezegun/history 1 ●●●● patch | view | raw | blame | history
components/python/freezegun/patches/01-tox.ini.patch 13 ●●●● patch | view | raw | blame | history
components/python/freezegun/patches/02-pytest-cov.patch 11 ●●●●● patch | view | raw | blame | history
components/python/freezegun/patches/03-no-maya.patch 9 ●●●●● patch | view | raw | blame | history
components/python/freezegun/pkg5 10 ●●●● patch | view | raw | blame | history
components/python/freezegun/python-integrate-project.conf 2 ●●●●● patch | view | raw | blame | history
components/python/freezegun/test/results-all.master 140 ●●●●● patch | view | raw | blame | history
components/python/freezegun/Makefile
@@ -19,13 +19,13 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        freezegun
HUMAN_VERSION =            1.2.2
HUMAN_VERSION =            1.3.0
COMPONENT_SUMMARY =        freezegun - Let your Python tests travel through time
COMPONENT_PROJECT_URL =        https://github.com/spulec/freezegun
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/1d/97/002ac49ec52858538b4aa6f6831f83c2af562c17340bdf6043be695f39ac/freezegun-1.2.2.tar.gz
    https://files.pythonhosted.org/packages/1a/16/4891239e9f05aa2630d5dfd6609f1b7b5720c20ab5c97be4ef9805049a77/freezegun-1.3.0.tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:cd22d1ba06941384410cd967d8a99d5ae2442f57dfafeff2fda5de8dc5c05446
    sha256:56cc5dc34de38fe28a4d19bea65bbd3af6fd66020df8141b92bdb45c9be9f503
COMPONENT_LICENSE =        Apache-2.0
COMPONENT_LICENSE_FILE =    LICENSE
@@ -37,7 +37,6 @@
PYTHON_REQUIRED_PACKAGES += library/python/wheel
PYTHON_REQUIRED_PACKAGES += runtime/python
TEST_REQUIRED_PACKAGES.python += library/python/coveralls
TEST_REQUIRED_PACKAGES.python += library/python/maya
TEST_REQUIRED_PACKAGES.python += library/python/pytest
TEST_REQUIRED_PACKAGES.python += library/python/pytest-coverage
TEST_REQUIRED_PACKAGES.python += library/python/pytest-cov
TEST_REQUIRED_PACKAGES.python += library/python/python-dateutil
components/python/freezegun/history
New file
@@ -0,0 +1 @@
library/python/freezegun-37@1.2.2,5.11-2023.0.0.1
components/python/freezegun/patches/01-tox.ini.patch
@@ -1,15 +1,16 @@
https://github.com/spulec/freezegun/issues/495
See also: https://github.com/spulec/freezegun/issues/520
--- freezegun-1.2.2.orig/requirements.txt
+++ freezegun-1.2.2/requirements.txt
--- /dev/null
+++ freezegun-1.3.0/requirements.txt
@@ -0,0 +1,5 @@
+pytest
+pytest-coverage
+coveralls
+python-dateutil >= 2.7
+maya; python_version >= '3.7'
--- freezegun-1.2.2.orig/tox.ini
+++ freezegun-1.2.2/tox.ini
+maya; python_version < '3.12'
--- /dev/null
+++ freezegun-1.3.0/tox.ini
@@ -0,0 +1,16 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
@@ -17,7 +18,7 @@
+# and then run "tox" from this directory.
+
+[tox]
+envlist = py36, py37, py38, py39, pypy3, mypy
+envlist = py37, py38, py39, py310, py311, py312, pypy3, mypy
+
+[testenv]
+commands = pytest --cov {posargs}
components/python/freezegun/patches/02-pytest-cov.patch
New file
@@ -0,0 +1,11 @@
https://github.com/spulec/freezegun/pull/518
--- freezegun-1.3.0/requirements.txt.orig
+++ freezegun-1.3.0/requirements.txt
@@ -1,5 +1,5 @@
 pytest
-pytest-coverage
+pytest-cov
 coveralls
 python-dateutil >= 2.7
 maya; python_version < '3.12'
components/python/freezegun/patches/03-no-maya.patch
New file
@@ -0,0 +1,9 @@
We have no maya packaged (yet).
--- freezegun-1.3.0/requirements.txt.orig
+++ freezegun-1.3.0/requirements.txt
@@ -2,4 +2,3 @@
 pytest-cov
 coveralls
 python-dateutil >= 2.7
-maya; python_version < '3.12'
components/python/freezegun/pkg5
@@ -1,19 +1,11 @@
{
    "dependencies": [
        "SUNWcs",
        "library/python/python-dateutil-37",
        "library/python/python-dateutil-39",
        "library/python/setuptools-37",
        "library/python/setuptools-39",
        "library/python/wheel-37",
        "library/python/wheel-39",
        "runtime/python-37",
        "runtime/python-39",
        "shell/ksh93",
        "system/library"
        "runtime/python-39"
    ],
    "fmris": [
        "library/python/freezegun-37",
        "library/python/freezegun-39",
        "library/python/freezegun"
    ],
components/python/freezegun/python-integrate-project.conf
@@ -14,3 +14,5 @@
#
%patch% 01-tox.ini.patch
%patch% 02-pytest-cov.patch
%patch% 03-no-maya.patch
components/python/freezegun/test/results-all.master
New file
@@ -0,0 +1,140 @@
py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
py$(PYV): commands[0]> python -m pytest --cov
============================= test session starts ==============================
platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python
cachedir: .tox/py$(PYV)/.pytest_cache
rootdir: $(@D)
collecting ... collected 127 items
tests/test_asyncio.py::test_asyncio_sleeping_not_affected_by_freeze_time PASSED
tests/test_asyncio.py::test_asyncio_to_call_later_with_frozen_time PASSED
tests/test_asyncio.py::test_datetime_in_coroutine PASSED
tests/test_asyncio.py::test_freezing_time_before_running_coroutine PASSED
tests/test_asyncio.py::test_freezing_time_in_coroutine PASSED
tests/test_class_import.py::test_avoid_replacing_equal_to_anything PASSED
tests/test_class_import.py::test_can_ignore_email_module PASSED
tests/test_class_import.py::test_fake_gmtime_function PASSED
tests/test_class_import.py::test_fake_strftime_function PASSED
tests/test_class_import.py::test_fake_uses_real_when_ignored PASSED
tests/test_class_import.py::test_import_after_start PASSED
tests/test_class_import.py::test_import_date_works PASSED
tests/test_class_import.py::test_import_datetime_works PASSED
tests/test_class_import.py::test_import_localtime PASSED
tests/test_class_import.py::test_import_time PASSED
tests/test_class_import.py::test_isinstance_works PASSED
tests/test_class_import.py::test_issubclass_works PASSED
tests/test_class_import.py::test_none_as_initial PASSED
tests/test_class_import.py::test_start_and_stop_works PASSED
tests/test_configure.py::test_default_ignore_list_is_overridden PASSED
tests/test_configure.py::test_extend_default_ignore_list PASSED
tests/test_datetimes.py::FrozenInheritedTests::test_time_is_frozen PASSED
tests/test_datetimes.py::TestOldStyleClasses::test_direct_method PASSED
tests/test_datetimes.py::TestOldStyleClasses::test_inherited_method PASSED
tests/test_datetimes.py::TestUnitTestClassDecorator::test_class_decorator_works_on_unittest PASSED
tests/test_datetimes.py::TestUnitTestClassDecorator::test_class_name_preserved_by_decorator PASSED
tests/test_datetimes.py::TestUnitTestClassDecoratorSubclass::test_class_decorator_works_on_unittest PASSED
tests/test_datetimes.py::TestUnitTestClassDecoratorSubclass::test_class_name_preserved_by_decorator PASSED
tests/test_datetimes.py::TestUnitTestClassDecoratorWithNoSetUpOrTearDown::test_class_decorator_works_on_unittest PASSED
tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest PASSED
tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time PASSED
tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func PASSED
tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_hello PASSED
tests/test_datetimes.py::Tester::test_class_decorator_ignores_nested_class PASSED
tests/test_datetimes.py::Tester::test_class_decorator_respects_staticmethod PASSED
tests/test_datetimes.py::Tester::test_class_decorator_wraps_callable_object_py3 PASSED
tests/test_datetimes.py::Tester::test_class_name_preserved_by_decorator PASSED
tests/test_datetimes.py::Tester::test_still_the_same PASSED
tests/test_datetimes.py::Tester::test_the_class PASSED
tests/test_datetimes.py::UnfrozenInheritedTests::test_time_is_not_frozen PASSED
tests/test_datetimes.py::test_bad_time_argument PASSED
tests/test_datetimes.py::test_compare_datetime_and_time_with_timezone PASSED
tests/test_datetimes.py::test_context_manager PASSED
tests/test_datetimes.py::test_date_object PASSED
tests/test_datetimes.py::test_date_with_locale PASSED
tests/test_datetimes.py::test_datetime_date_method PASSED
tests/test_datetimes.py::test_datetime_in_timezone SKIPPED (timezone...)
tests/test_datetimes.py::test_datetime_object PASSED
tests/test_datetimes.py::test_datetime_with_locale PASSED
tests/test_datetimes.py::test_decorator PASSED
tests/test_datetimes.py::test_decorator_wrapped_attribute PASSED
tests/test_datetimes.py::test_freeze_with_timezone_aware_datetime_in_non_utc PASSED
tests/test_datetimes.py::test_freeze_with_timezone_aware_datetime_in_utc PASSED
tests/test_datetimes.py::test_function_object PASSED
tests/test_datetimes.py::test_generator_object PASSED
tests/test_datetimes.py::test_invalid_type PASSED
tests/test_datetimes.py::test_isinstance_with_active PASSED
tests/test_datetimes.py::test_isinstance_without_active PASSED
tests/test_datetimes.py::test_lambda_object PASSED
tests/test_datetimes.py::test_manual_increment PASSED
tests/test_datetimes.py::test_manual_increment_seconds PASSED
tests/test_datetimes.py::test_maya_datetimes SKIPPED (maya is option...)
tests/test_datetimes.py::test_min_and_max PASSED
tests/test_datetimes.py::test_monotonic_with_nested[monotonic] PASSED
tests/test_datetimes.py::test_monotonic_with_nested[perf_counter] PASSED
tests/test_datetimes.py::test_move_to PASSED
tests/test_datetimes.py::test_nested_context_manager PASSED
tests/test_datetimes.py::test_nested_context_manager_with_tz_offsets PASSED
tests/test_datetimes.py::test_nice_datetime PASSED
tests/test_datetimes.py::test_old_date_object PASSED
tests/test_datetimes.py::test_old_datetime_object PASSED
tests/test_datetimes.py::test_real_strftime_fall_through PASSED
tests/test_datetimes.py::test_should_use_real_time PASSED
tests/test_datetimes.py::test_simple_api PASSED
tests/test_datetimes.py::test_strftime PASSED
tests/test_datetimes.py::test_time_clock SKIPPED (time.clock was rem...)
tests/test_datetimes.py::test_time_gmtime PASSED
tests/test_datetimes.py::test_time_localtime PASSED
tests/test_datetimes.py::test_time_monotonic[monotonic-True-1.0] PASSED
tests/test_datetimes.py::test_time_monotonic[monotonic_ns-True-1000000000] PASSED
tests/test_datetimes.py::test_time_monotonic[perf_counter-True-1.0] PASSED
tests/test_datetimes.py::test_time_monotonic[perf_counter_ns-True-1000000000] PASSED
tests/test_datetimes.py::test_time_ns PASSED
tests/test_datetimes.py::test_time_with_dst PASSED
tests/test_datetimes.py::test_time_with_microseconds PASSED
tests/test_datetimes.py::test_time_with_nested PASSED
tests/test_datetimes.py::test_timedelta_tz_offset PASSED
tests/test_datetimes.py::test_timestamp_with_tzoffset PASSED
tests/test_datetimes.py::test_tz_offset PASSED
tests/test_datetimes.py::test_tz_offset_with_time PASSED
tests/test_datetimes.py::test_tz_offset_with_today PASSED
tests/test_datetimes.py::test_zero_tz_offset_with_time PASSED
tests/test_errors.py::test_ignore_errors_in_start[ImportError] PASSED
tests/test_errors.py::test_ignore_errors_in_start[TypeError] PASSED
tests/test_import_alias.py::TestCallOtherFuncInTestClassDecoratorWithAlias::test_calls_other_method PASSED
tests/test_import_alias.py::test_datetime_alias PASSED
tests/test_import_alias.py::test_time_alias PASSED
tests/test_operations.py::test_addition PASSED
tests/test_operations.py::test_astimezone PASSED
tests/test_operations.py::test_astimezone_tz_none PASSED
tests/test_operations.py::test_auto_tick PASSED
tests/test_operations.py::test_datetime_timezone_none PASSED
tests/test_operations.py::test_datetime_timezone_real PASSED
tests/test_operations.py::test_datetime_timezone_real_with_offset PASSED
tests/test_operations.py::test_replace PASSED
tests/test_operations.py::test_subtraction PASSED
tests/test_pickle.py::test_pickle PASSED
tests/test_pickle.py::test_pickle_real_date PASSED
tests/test_pickle.py::test_pickle_real_datetime PASSED
tests/test_sqlite3.py::test_fake_date_select PASSED
tests/test_sqlite3.py::test_fake_datetime_select PASSED
tests/test_ticking.py::test_non_pypy_compat PASSED
tests/test_ticking.py::test_pypy_compat PASSED
tests/test_ticking.py::test_ticking_date PASSED
tests/test_ticking.py::test_ticking_datetime PASSED
tests/test_ticking.py::test_ticking_monotonic[monotonic] PASSED
tests/test_ticking.py::test_ticking_monotonic[monotonic_ns] PASSED
tests/test_ticking.py::test_ticking_monotonic[perf_counter] PASSED
tests/test_ticking.py::test_ticking_monotonic[perf_counter_ns] PASSED
tests/test_ticking.py::test_ticking_time PASSED
tests/test_ticking.py::test_ticking_time_clock SKIPPED (time.clock w...)
tests/test_utils.py::test_should_not_skip_cpython PASSED
tests/test_utils.py::test_should_skip_non_cpython PASSED
tests/test_uuid.py::test_uuid1_future PASSED
tests/test_uuid.py::test_uuid1_past PASSED
tests/test_warnings.py::test_ignore_warnings_in_start PASSED
tests/test_warnings.py::test_ignore_warnings_in_stop PASSED
======== 123 passed, 4 skipped ========
  py$(PYV): OK
  congratulations :)