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

Commit

Permalink
jaraco.functools: Autospec creation for update from version 2.0 to ve…
Browse files Browse the repository at this point in the history
…rsion 3.0.0

Jason R. Coombs (40):
      Add black config, pre-commit including black, check code with black.
      Suppress E117 as workaround for PyCQA/pycodestyle#836
      Amend skeleton documentation to expand on the value of the approach.
      Remove sudo declaration in Travis config.
      Enable tox-pip-extensions ext_venv_update if available. Fixes jaraco/skeleton#6
      Prefer types.MethodType to functools.partial for binding a method to its instance.
      Also use MethodType in _special_method_cache
      Rewrite docstring on Python 3.7.3 to allow the test to pass. Fixes #12.
      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
      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
      Fade to black
      Report the lines missing coverage
      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 legacy code
      Mark test code as nocover as it's xfailed.
  • Loading branch information
fenrus75 committed Dec 23, 2019
1 parent 202fb58 commit 0366d92
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 14 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 := jaraco.functools
URL = https://files.pythonhosted.org/packages/a9/1e/44f6a5cffef147a3ffd37a748b8f4c2ded9b07ca20a15f17cd9874158f24/jaraco.functools-2.0.tar.gz
URL = https://files.pythonhosted.org/packages/40/63/d5911a9b3c80cf2f80b0ab143f54e3a72c98e20741acaf63b78a1410c561/jaraco.functools-3.0.0.tar.gz
ARCHIVES =

include ../common/Makefile.common
28 changes: 19 additions & 9 deletions jaraco.functools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
# Generated by: autospec.py
#
Name : jaraco.functools
Version : 2.0
Release : 9
URL : https://files.pythonhosted.org/packages/a9/1e/44f6a5cffef147a3ffd37a748b8f4c2ded9b07ca20a15f17cd9874158f24/jaraco.functools-2.0.tar.gz
Source0 : https://files.pythonhosted.org/packages/a9/1e/44f6a5cffef147a3ffd37a748b8f4c2ded9b07ca20a15f17cd9874158f24/jaraco.functools-2.0.tar.gz
Version : 3.0.0
Release : 10
URL : https://files.pythonhosted.org/packages/40/63/d5911a9b3c80cf2f80b0ab143f54e3a72c98e20741acaf63b78a1410c561/jaraco.functools-3.0.0.tar.gz
Source0 : https://files.pythonhosted.org/packages/40/63/d5911a9b3c80cf2f80b0ab143f54e3a72c98e20741acaf63b78a1410c561/jaraco.functools-3.0.0.tar.gz
Summary : Functools like those found in stdlib
Group : Development/Tools
License : MIT
Requires: jaraco.functools-license = %{version}-%{release}
Requires: jaraco.functools-python = %{version}-%{release}
Requires: jaraco.functools-python3 = %{version}-%{release}
Requires: more-itertools
BuildRequires : buildreq-distutils3
BuildRequires : more-itertools
BuildRequires : pluggy
BuildRequires : py-python
BuildRequires : pytest
Expand Down Expand Up @@ -52,21 +54,29 @@ python3 components for the jaraco.functools package.


%prep
%setup -q -n jaraco.functools-2.0
%setup -q -n jaraco.functools-3.0.0
cd %{_builddir}/jaraco.functools-3.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=1546358699
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1577138322
# -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/jaraco.functools
cp LICENSE %{buildroot}/usr/share/package-licenses/jaraco.functools/LICENSE
cp %{_builddir}/jaraco.functools-3.0.0/LICENSE %{buildroot}/usr/share/package-licenses/jaraco.functools/a1474494d96f6ddb3a9a0d767a09871ffc388faf
python3 -tt setup.py build install --root=%{buildroot}
echo ----[ mark ]----
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :
Expand All @@ -77,7 +87,7 @@ echo ----[ mark ]----

%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/jaraco.functools/LICENSE
/usr/share/package-licenses/jaraco.functools/a1474494d96f6ddb3a9a0d767a09871ffc388faf

%files python
%defattr(-,root,root,-)
Expand Down
7 changes: 5 additions & 2 deletions options.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
name = jaraco.functools
url = https://files.pythonhosted.org/packages/a9/1e/44f6a5cffef147a3ffd37a748b8f4c2ded9b07ca20a15f17cd9874158f24/jaraco.functools-2.0.tar.gz
url = https://files.pythonhosted.org/packages/40/63/d5911a9b3c80cf2f80b0ab143f54e3a72c98e20741acaf63b78a1410c561/jaraco.functools-3.0.0.tar.gz
archives =
giturl = https://github.com/jaraco/jaraco.functools.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 @@
9
10
2 changes: 1 addition & 1 deletion upstream
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1feb4481eabbb307b047f3b5a870c17ce34e9ab1/jaraco.functools-2.0.tar.gz
6f72bbcb8c483f79d682b981387848bdc72d1504/jaraco.functools-3.0.0.tar.gz
1 change: 1 addition & 0 deletions versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.0
2 changes: 2 additions & 0 deletions whatrequires
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# This file contains recursive sources that require this package
cheroot
conda
tempora

0 comments on commit 0366d92

Please sign in to comment.