From 479c9b480a73211e4a5130d7cf81928523626cf5 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Mon, 23 Dec 2019 23:29:30 +0000 Subject: [PATCH] tempora: Autospec creation for update from version 1.14.1 to version 2.0.0 Jason R. Coombs (59): Add black config, pre-commit including black, check code with black. Enable tox-pip-extensions ext_venv_update if available. Fixes jaraco/skeleton#6 Rely on tox 3.2 and pip 10 or later for all builds It adds no value to add a pip requirement for the tox install Pin to pip 19.0 for now for pypa/pip#6434. Revert "Pin to pip 19.0 for now for pypa/pip#6434." Only install and invoke pytest-black on Python 3 Use pytest-black-multipy to enable simple support for pytest-black where available. Ref pytest-dev/pytest#5272. Update skeleton documentation to reflect black adoption. Rely on twine 1.13 or later Fade to black Upgrade tox and virtualenv to ensure that environments get recent pips Define passenv in tox release section. Rely on __token__ for default username. Update docs to reflect changes to deployment. Python 3 only Enable coverage reporting on project Report the lines missing coverage Add test capturing no format string matching Add support for %f and add tests Limit the compatibility behavior now that Python supports it natively. Replace strptime with the new version in Python Suppress coverage on selective code Remove DatetimeConstructor Extend tests for get_nearest_year Add tests for prorated_values Add test for branch Add test to date_range Combine tests Ensure that a late version of pip is installed without special versions of tox-venv. Disable tox-pip-version as it interacts badly with tox-venv causing tox to use the wrong Python version to install packages and run tests. Ref pglass/tox-pip-version#20 and tox-dev/tox-venv#40. Bring back tox-pip-version now that pglass/tox-pip-version#20 is fixed. Test/release on Python 3.8 Apply black to docs/conf.py Update black version and links Expect flake8 3.6 or later and remove suppression of warnings from Flake8 prior to 3.6. Rely on pytest-checkdocs 1.2.3, eliminating workaround for docutils warning. Remove workaround for gitlab.com/pycqa/flake8/issues/275, apparently no longer necessary. Normalize indentation Include keyring support from twine Rename 'build-docs' to simply 'docs' (matching more popular convention). Prefer 'path' to 'path.py' Cover Python 3.8 in Windows tests Update changelog Remove compatibility code Add test for calculate_prorated_values Clean up conftest Remove compatibility code Restore 4-digit year compatibility for affected systems. Update changelog Remove more compatibility code Remove naive_times fixture (unused). Suppress coverage failures in selective code Expand test coverage Improve test coverage Fix suppressed warning Improve test coverage Improve test coverage Improve test coverage Suppress AttributeError when time is not a date. --- .gitignore | 6 ++++++ Makefile | 2 +- options.conf | 7 +++++-- release | 2 +- tempora.spec | 27 +++++++++++++++++---------- upstream | 2 +- versions | 1 + whatrequires | 3 +++ 8 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 versions diff --git a/.gitignore b/.gitignore index fd14cc3..0039371 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ .*~ *~ +*.info +*.mod *.swp .repo-index *.log @@ -8,6 +10,10 @@ build.log.round* *.tgz !*.tar.*.* *.zip +*.jar +*.pom +*.xml commitmsg results/ rpms/ +for-review.txt diff --git a/Makefile b/Makefile index 3689d2d..c14f9a6 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PKG_NAME := tempora -URL = https://files.pythonhosted.org/packages/2f/b5/5b0464385454c5ca93a39a1c6acefdf574aeb10ef45fa8958b3832cc7d96/tempora-1.14.1.tar.gz +URL = https://files.pythonhosted.org/packages/51/ff/0c5d907c38160a6eff9477b411f1b6e7ae9f16d86ba508fd7d1971724180/tempora-2.0.0.tar.gz ARCHIVES = include ../common/Makefile.common diff --git a/options.conf b/options.conf index 1f50095..9116709 100644 --- a/options.conf +++ b/options.conf @@ -1,8 +1,9 @@ [package] name = tempora -url = https://files.pythonhosted.org/packages/2f/b5/5b0464385454c5ca93a39a1c6acefdf574aeb10ef45fa8958b3832cc7d96/tempora-1.14.1.tar.gz +url = https://files.pythonhosted.org/packages/51/ff/0c5d907c38160a6eff9477b411f1b6e7ae9f16d86ba508fd7d1971724180/tempora-2.0.0.tar.gz archives = giturl = https://github.com/jaraco/tempora.git +domain = [autospec] # build 32 bit libraries @@ -17,7 +18,7 @@ autoupdate = true broken_c++ = false # disable parallelization during build broken_parallel_build = false -# this package is a library compatability package and only ships versioned library files +# this package is a library compatibility package and only ships versioned library files compat = false # set conservative build flags conservative_flags = false @@ -33,6 +34,8 @@ insecure_build = false keepstatic = false # do not require autostart subpackage no_autostart = false +# do not generate debuginfo for this package +nodebug = false # disable stripping binaries nostrip = false # optimize build for size over speed diff --git a/release b/release index 98d9bcb..3c03207 100644 --- a/release +++ b/release @@ -1 +1 @@ -17 +18 diff --git a/tempora.spec b/tempora.spec index 0d27ae5..73599cd 100644 --- a/tempora.spec +++ b/tempora.spec @@ -3,10 +3,10 @@ # Generated by: autospec.py # Name : tempora -Version : 1.14.1 -Release : 17 -URL : https://files.pythonhosted.org/packages/2f/b5/5b0464385454c5ca93a39a1c6acefdf574aeb10ef45fa8958b3832cc7d96/tempora-1.14.1.tar.gz -Source0 : https://files.pythonhosted.org/packages/2f/b5/5b0464385454c5ca93a39a1c6acefdf574aeb10ef45fa8958b3832cc7d96/tempora-1.14.1.tar.gz +Version : 2.0.0 +Release : 18 +URL : https://files.pythonhosted.org/packages/51/ff/0c5d907c38160a6eff9477b411f1b6e7ae9f16d86ba508fd7d1971724180/tempora-2.0.0.tar.gz +Source0 : https://files.pythonhosted.org/packages/51/ff/0c5d907c38160a6eff9477b411f1b6e7ae9f16d86ba508fd7d1971724180/tempora-2.0.0.tar.gz Summary : Objects and routines pertaining to date and time (tempora) Group : Development/Tools License : MIT @@ -16,12 +16,12 @@ Requires: tempora-python = %{version}-%{release} Requires: tempora-python3 = %{version}-%{release} Requires: jaraco.functools Requires: pytz -Requires: six BuildRequires : buildreq-distutils3 BuildRequires : jaraco.functools BuildRequires : pluggy BuildRequires : py-python BuildRequires : pytest +BuildRequires : pytz BuildRequires : setuptools_scm BuildRequires : tox BuildRequires : virtualenv @@ -66,14 +66,21 @@ python3 components for the tempora package. %prep -%setup -q -n tempora-1.14.1 +%setup -q -n tempora-2.0.0 +cd %{_builddir}/tempora-2.0.0 %build export http_proxy=http://127.0.0.1:9/ export https_proxy=http://127.0.0.1:9/ export no_proxy=localhost,127.0.0.1,0.0.0.0 -export LANG=C -export SOURCE_DATE_EPOCH=1555201209 +export LANG=C.UTF-8 +export SOURCE_DATE_EPOCH=1577143765 +# -Werror is for werrorists +export GCC_IGNORE_WERROR=1 +export CFLAGS="$CFLAGS -fno-lto " +export FCFLAGS="$CFLAGS -fno-lto " +export FFLAGS="$CFLAGS -fno-lto " +export CXXFLAGS="$CXXFLAGS -fno-lto " export MAKEFLAGS=%{?_smp_mflags} python3 setup.py build @@ -81,7 +88,7 @@ python3 setup.py build export MAKEFLAGS=%{?_smp_mflags} rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/package-licenses/tempora -cp LICENSE %{buildroot}/usr/share/package-licenses/tempora/LICENSE +cp %{_builddir}/tempora-2.0.0/LICENSE %{buildroot}/usr/share/package-licenses/tempora/a1474494d96f6ddb3a9a0d767a09871ffc388faf python3 -tt setup.py build install --root=%{buildroot} echo ----[ mark ]---- cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || : @@ -96,7 +103,7 @@ echo ----[ mark ]---- %files license %defattr(0644,root,root,0755) -/usr/share/package-licenses/tempora/LICENSE +/usr/share/package-licenses/tempora/a1474494d96f6ddb3a9a0d767a09871ffc388faf %files python %defattr(-,root,root,-) diff --git a/upstream b/upstream index 1bb8994..5585455 100644 --- a/upstream +++ b/upstream @@ -1 +1 @@ -d26b45cfc2c941f029092e9217b4d2a97bb62979/tempora-1.14.1.tar.gz +145f0acbc63cbe104614ef80d5034f01ecef9102/tempora-2.0.0.tar.gz diff --git a/versions b/versions new file mode 100644 index 0000000..227cea2 --- /dev/null +++ b/versions @@ -0,0 +1 @@ +2.0.0 diff --git a/whatrequires b/whatrequires index 9e67e10..13eac87 100644 --- a/whatrequires +++ b/whatrequires @@ -1 +1,4 @@ # This file contains recursive sources that require this package +ceph +conda +portend