Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
tempora: Autospec creation for update from version 1.14.1 to version …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
fenrus75 committed Dec 23, 2019
1 parent 970186b commit 479c9b4
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.*~
*~
*.info
*.mod
*.swp
.repo-index
*.log
Expand All @@ -8,6 +10,10 @@ build.log.round*
*.tgz
!*.tar.*.*
*.zip
*.jar
*.pom
*.xml
commitmsg
results/
rpms/
for-review.txt
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
7 changes: 5 additions & 2 deletions options.conf
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17
18
27 changes: 17 additions & 10 deletions tempora.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -66,22 +66,29 @@ 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

%install
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 || :
Expand All @@ -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,-)
Expand Down
2 changes: 1 addition & 1 deletion upstream
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d26b45cfc2c941f029092e9217b4d2a97bb62979/tempora-1.14.1.tar.gz
145f0acbc63cbe104614ef80d5034f01ecef9102/tempora-2.0.0.tar.gz
1 change: 1 addition & 0 deletions versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.0
3 changes: 3 additions & 0 deletions whatrequires
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# This file contains recursive sources that require this package
ceph
conda
portend

0 comments on commit 479c9b4

Please sign in to comment.