Hello community,
here is the log from the commit of package python-jaraco.functools for
openSUSE:Factory checked in at 2020-10-29 09:45:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jaraco.functools (Old)
and /work/SRC/openSUSE:Factory/.python-jaraco.functools.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jaraco.functools"
Thu Oct 29 09:45:33 2020 rev:6 rq:835170 version:3.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jaraco.functools/python-jaraco.functools.changes
2020-04-19 21:40:45.487032029 +0200
+++
/work/SRC/openSUSE:Factory/.python-jaraco.functools.new.3463/python-jaraco.functools.changes
2020-10-29 09:45:56.140034266 +0100
@@ -1,0 +2,6 @@
+Thu Sep 17 11:33:01 UTC 2020 - Dirk Mueller <[email protected]>
+
+- update to 3.0.1:
+ #14: Removed unnecessary compatibility libraries in testing.
+
+-------------------------------------------------------------------
Old:
----
jaraco.functools-3.0.0.tar.gz
New:
----
jaraco.functools-3.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jaraco.functools.spec ++++++
--- /var/tmp/diff_new_pack.sb903j/_old 2020-10-29 09:45:56.972035052 +0100
+++ /var/tmp/diff_new_pack.sb903j/_new 2020-10-29 09:45:56.976035056 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-jaraco.functools
-Version: 3.0.0
+Version: 3.0.1
Release: 0
Summary: Tools to work with functools
License: MIT
++++++ jaraco.functools-3.0.0.tar.gz -> jaraco.functools-3.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/.pre-commit-config.yaml
new/jaraco.functools-3.0.1/.pre-commit-config.yaml
--- old/jaraco.functools-3.0.0/.pre-commit-config.yaml 2019-12-20
05:48:13.000000000 +0100
+++ new/jaraco.functools-3.0.1/.pre-commit-config.yaml 2020-04-25
23:42:26.000000000 +0200
@@ -1,5 +1,10 @@
repos:
- repo: https://github.com/psf/black
- rev: 19.3b0
+ rev: 19.10b0
hooks:
- id: black
+
+- repo: https://github.com/asottile/blacken-docs
+ rev: v1.4.0
+ hooks:
+ - id: blacken-docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/.travis.yml
new/jaraco.functools-3.0.1/.travis.yml
--- old/jaraco.functools-3.0.0/.travis.yml 2019-12-20 05:48:13.000000000
+0100
+++ new/jaraco.functools-3.0.1/.travis.yml 2020-04-25 23:42:26.000000000
+0200
@@ -1,26 +1,17 @@
-dist: xenial
+dist: bionic
language: python
python:
- 3.6
- &latest_py3 3.8
-jobs:
- fast_finish: true
- include:
- - stage: deploy
- if: tag IS present
- python: *latest_py3
- before_script: skip
- script: tox -e release
-
cache: pip
install:
- pip install tox tox-venv
before_script:
- # Disable IPv6. Ref travis-ci/travis-ci#8361
+ # Enable IPv6. Ref travis-ci/travis-ci#8361
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/CHANGES.rst
new/jaraco.functools-3.0.1/CHANGES.rst
--- old/jaraco.functools-3.0.0/CHANGES.rst 2019-12-20 05:48:13.000000000
+0100
+++ new/jaraco.functools-3.0.1/CHANGES.rst 2020-04-25 23:42:26.000000000
+0200
@@ -1,3 +1,8 @@
+v3.0.1
+======
+
+#14: Removed unnecessary compatibility libraries in testing.
+
v3.0.0
======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/LICENSE
new/jaraco.functools-3.0.1/LICENSE
--- old/jaraco.functools-3.0.0/LICENSE 2019-12-20 05:48:13.000000000 +0100
+++ new/jaraco.functools-3.0.1/LICENSE 2020-04-25 23:42:26.000000000 +0200
@@ -1,7 +1,19 @@
Copyright Jason R. Coombs
-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:
+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 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.
+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.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/PKG-INFO
new/jaraco.functools-3.0.1/PKG-INFO
--- old/jaraco.functools-3.0.0/PKG-INFO 2019-12-20 05:48:33.246366300 +0100
+++ new/jaraco.functools-3.0.1/PKG-INFO 2020-04-25 23:42:54.030460400 +0200
@@ -1,18 +1,23 @@
Metadata-Version: 2.1
Name: jaraco.functools
-Version: 3.0.0
+Version: 3.0.1
Summary: Functools like those found in stdlib
Home-page: https://github.com/jaraco/jaraco.functools
Author: Jason R. Coombs
Author-email: [email protected]
License: UNKNOWN
Description: .. image:: https://img.shields.io/pypi/v/jaraco.functools.svg
- :target: https://pypi.org/project/jaraco.functools
+ :target: `PyPI link`_
.. image:: https://img.shields.io/pypi/pyversions/jaraco.functools.svg
.. image::
https://img.shields.io/travis/jaraco/jaraco.functools/master.svg
- :target: https://travis-ci.org/jaraco/jaraco.functools
+ :target: `PyPI link`_
+
+ .. _PyPI link: https://pypi.org/project/jaraco.functools
+
+ .. image::
https://dev.azure.com/jaraco/jaraco.functools/_apis/build/status/jaraco.jaraco.functools?branchName=master
+ :target:
https://dev.azure.com/jaraco/jaraco.functools/_build/latest?definitionId=1&branchName=master
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
@@ -20,17 +25,19 @@
:alt: Code style: Black
.. .. image::
https://img.shields.io/appveyor/ci/jaraco/jaraco-functools/master.svg
- .. :target:
https://ci.appveyor.com/project/jaraco-functools/skeleton/branch/master
+ .. :target:
https://ci.appveyor.com/project/jaraco/jaraco-functools/branch/master
.. image::
https://readthedocs.org/projects/jaracofunctools/badge/?version=latest
:target:
https://jaracofunctools.readthedocs.io/en/latest/?badge=latest
Additional functools in the spirit of stdlib's functools.
+
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.6
Provides-Extra: testing
Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/README.rst
new/jaraco.functools-3.0.1/README.rst
--- old/jaraco.functools-3.0.0/README.rst 2019-12-20 05:48:13.000000000
+0100
+++ new/jaraco.functools-3.0.1/README.rst 2020-04-25 23:42:26.000000000
+0200
@@ -1,10 +1,15 @@
.. image:: https://img.shields.io/pypi/v/jaraco.functools.svg
- :target: https://pypi.org/project/jaraco.functools
+ :target: `PyPI link`_
.. image:: https://img.shields.io/pypi/pyversions/jaraco.functools.svg
.. image:: https://img.shields.io/travis/jaraco/jaraco.functools/master.svg
- :target: https://travis-ci.org/jaraco/jaraco.functools
+ :target: `PyPI link`_
+
+.. _PyPI link: https://pypi.org/project/jaraco.functools
+
+.. image::
https://dev.azure.com/jaraco/jaraco.functools/_apis/build/status/jaraco.jaraco.functools?branchName=master
+ :target:
https://dev.azure.com/jaraco/jaraco.functools/_build/latest?definitionId=1&branchName=master
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
@@ -12,9 +17,9 @@
:alt: Code style: Black
.. .. image::
https://img.shields.io/appveyor/ci/jaraco/jaraco-functools/master.svg
-.. :target:
https://ci.appveyor.com/project/jaraco-functools/skeleton/branch/master
+.. :target:
https://ci.appveyor.com/project/jaraco/jaraco-functools/branch/master
.. image::
https://readthedocs.org/projects/jaracofunctools/badge/?version=latest
:target: https://jaracofunctools.readthedocs.io/en/latest/?badge=latest
-Additional functools in the spirit of stdlib's functools.
\ No newline at end of file
+Additional functools in the spirit of stdlib's functools.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/azure-pipelines.yml
new/jaraco.functools-3.0.1/azure-pipelines.yml
--- old/jaraco.functools-3.0.0/azure-pipelines.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/jaraco.functools-3.0.1/azure-pipelines.yml 2020-04-25
23:42:26.000000000 +0200
@@ -0,0 +1,83 @@
+# Create the project in Azure with:
+# az devops project create --name $name --organization
https://dev.azure.com/$org/ --visibility public
+# then configure the pipelines (through web UI)
+
+trigger:
+ branches:
+ include:
+ - '*'
+ tags:
+ include:
+ - '*'
+
+pool:
+ vmImage: $(pool_vm_image)
+
+variables:
+- group: Azure secrets
+- name: pool_vm_image
+ value: Ubuntu-18.04
+
+stages:
+- stage: Test
+ jobs:
+
+ - job: 'Test'
+ strategy:
+ matrix:
+ Bionic Python 3.6:
+ python.version: '3.6'
+ Bionic Python 3.8:
+ python.version: '3.8'
+ Windows:
+ python.version: '3.8'
+ pool_vm_image: vs2017-win2016
+ MacOS:
+ python.version: '3.8'
+ pool_vm_image: macos-10.15
+
+ maxParallel: 4
+
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: '$(python.version)'
+ architecture: 'x64'
+
+ - script: python -m pip install tox
+ displayName: 'Install tox'
+
+ - script: |
+ tox -- --junit-xml=test-results.xml
+ displayName: 'run tests'
+ env:
+ AGENT_OS: $(Agent.OS)
+ TOX_TESTENV_PASSENV: AGENT_OS
+
+ - task: PublishTestResults@2
+ inputs:
+ testResultsFiles: '**/test-results.xml'
+ testRunTitle: 'Python $(python.version)'
+ condition: succeededOrFailed()
+
+- stage: Publish
+ dependsOn: Test
+ jobs:
+ - job: 'Publish'
+
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: '3.8'
+ architecture: 'x64'
+
+ - script: python -m pip install tox
+ displayName: 'Install tox'
+
+ - script: |
+ tox -e release
+ env:
+ TWINE_PASSWORD: $(PyPI-token)
+ displayName: 'publish to PyPI'
+
+ condition: contains(variables['Build.SourceBranch'], 'tags')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/jaraco/functools.py
new/jaraco.functools-3.0.1/jaraco/functools.py
--- old/jaraco.functools-3.0.0/jaraco/functools.py 2019-12-20
05:48:13.000000000 +0100
+++ new/jaraco.functools-3.0.1/jaraco/functools.py 2020-04-25
23:42:26.000000000 +0200
@@ -5,7 +5,7 @@
import types
import itertools
-import more_itertools.recipes
+import more_itertools
def compose(*funcs):
@@ -13,9 +13,8 @@
Compose any number of unary functions into a single unary function.
>>> import textwrap
- >>> from six import text_type
- >>> stripped = text_type.strip(textwrap.dedent(compose.__doc__))
- >>> compose(text_type.strip, textwrap.dedent)(compose.__doc__) == stripped
+ >>> stripped = str.strip(textwrap.dedent(compose.__doc__))
+ >>> compose(str.strip, textwrap.dedent)(compose.__doc__) == stripped
True
Compose also allows the innermost function to take arbitrary arguments.
@@ -359,7 +358,7 @@
None
"""
print_all = functools.partial(map, print)
- print_results = compose(more_itertools.recipes.consume, print_all, func)
+ print_results = compose(more_itertools.consume, print_all, func)
return functools.wraps(func)(print_results)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco.functools-3.0.0/jaraco.functools.egg-info/PKG-INFO
new/jaraco.functools-3.0.1/jaraco.functools.egg-info/PKG-INFO
--- old/jaraco.functools-3.0.0/jaraco.functools.egg-info/PKG-INFO
2019-12-20 05:48:32.000000000 +0100
+++ new/jaraco.functools-3.0.1/jaraco.functools.egg-info/PKG-INFO
2020-04-25 23:42:52.000000000 +0200
@@ -1,18 +1,23 @@
Metadata-Version: 2.1
Name: jaraco.functools
-Version: 3.0.0
+Version: 3.0.1
Summary: Functools like those found in stdlib
Home-page: https://github.com/jaraco/jaraco.functools
Author: Jason R. Coombs
Author-email: [email protected]
License: UNKNOWN
Description: .. image:: https://img.shields.io/pypi/v/jaraco.functools.svg
- :target: https://pypi.org/project/jaraco.functools
+ :target: `PyPI link`_
.. image:: https://img.shields.io/pypi/pyversions/jaraco.functools.svg
.. image::
https://img.shields.io/travis/jaraco/jaraco.functools/master.svg
- :target: https://travis-ci.org/jaraco/jaraco.functools
+ :target: `PyPI link`_
+
+ .. _PyPI link: https://pypi.org/project/jaraco.functools
+
+ .. image::
https://dev.azure.com/jaraco/jaraco.functools/_apis/build/status/jaraco.jaraco.functools?branchName=master
+ :target:
https://dev.azure.com/jaraco/jaraco.functools/_build/latest?definitionId=1&branchName=master
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
@@ -20,17 +25,19 @@
:alt: Code style: Black
.. .. image::
https://img.shields.io/appveyor/ci/jaraco/jaraco-functools/master.svg
- .. :target:
https://ci.appveyor.com/project/jaraco-functools/skeleton/branch/master
+ .. :target:
https://ci.appveyor.com/project/jaraco/jaraco-functools/branch/master
.. image::
https://readthedocs.org/projects/jaracofunctools/badge/?version=latest
:target:
https://jaracofunctools.readthedocs.io/en/latest/?badge=latest
Additional functools in the spirit of stdlib's functools.
+
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.6
Provides-Extra: testing
Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco.functools-3.0.0/jaraco.functools.egg-info/SOURCES.txt
new/jaraco.functools-3.0.1/jaraco.functools.egg-info/SOURCES.txt
--- old/jaraco.functools-3.0.0/jaraco.functools.egg-info/SOURCES.txt
2019-12-20 05:48:33.000000000 +0100
+++ new/jaraco.functools-3.0.1/jaraco.functools.egg-info/SOURCES.txt
2020-04-25 23:42:53.000000000 +0200
@@ -7,6 +7,7 @@
LICENSE
README.rst
appveyor.yml
+azure-pipelines.yml
conftest.py
pyproject.toml
pytest.ini
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco.functools-3.0.0/jaraco.functools.egg-info/requires.txt
new/jaraco.functools-3.0.1/jaraco.functools.egg-info/requires.txt
--- old/jaraco.functools-3.0.0/jaraco.functools.egg-info/requires.txt
2019-12-20 05:48:32.000000000 +0100
+++ new/jaraco.functools-3.0.1/jaraco.functools.egg-info/requires.txt
2020-04-25 23:42:52.000000000 +0200
@@ -9,8 +9,6 @@
pytest!=3.7.3,>=3.5
pytest-checkdocs>=1.2.3
pytest-flake8
-pytest-black-multipy
+pytest-black>=0.3.7
pytest-cov
-six
-backports.unittest_mock
jaraco.classes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/pyproject.toml
new/jaraco.functools-3.0.1/pyproject.toml
--- old/jaraco.functools-3.0.0/pyproject.toml 2019-12-20 05:48:13.000000000
+0100
+++ new/jaraco.functools-3.0.1/pyproject.toml 2020-04-25 23:42:26.000000000
+0200
@@ -1,6 +1,8 @@
[build-system]
-requires = ["setuptools>=34.4", "wheel", "setuptools_scm>=1.15"]
+requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.1"]
build-backend = "setuptools.build_meta"
[tool.black]
skip-string-normalization = true
+
+[tool.setuptools_scm]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/pytest.ini
new/jaraco.functools-3.0.1/pytest.ini
--- old/jaraco.functools-3.0.0/pytest.ini 2019-12-20 05:48:13.000000000
+0100
+++ new/jaraco.functools-3.0.1/pytest.ini 2020-04-25 23:42:26.000000000
+0200
@@ -3,3 +3,5 @@
addopts=--doctest-modules --flake8 --black --cov
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
filterwarnings=
+ # https://github.com/pytest-dev/pytest/issues/6928
+ ignore:direct construction of .*Item has been deprecated:DeprecationWarning
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/setup.cfg
new/jaraco.functools-3.0.1/setup.cfg
--- old/jaraco.functools-3.0.0/setup.cfg 2019-12-20 05:48:33.246366300
+0100
+++ new/jaraco.functools-3.0.1/setup.cfg 2020-04-25 23:42:54.030460400
+0200
@@ -1,6 +1,3 @@
-[bdist_wheel]
-universal = 1
-
[metadata]
license_file = LICENSE
name = jaraco.functools
@@ -14,6 +11,7 @@
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
+ Programming Language :: Python :: 3 :: Only
[options]
packages = find:
@@ -21,18 +19,16 @@
python_requires = >=3.6
install_requires =
more_itertools
-setup_requires = setuptools_scm >= 1.15.0
+setup_requires = setuptools_scm[toml] >= 3.4.1
[options.extras_require]
testing =
pytest >= 3.5, !=3.7.3
pytest-checkdocs >= 1.2.3
pytest-flake8
- pytest-black-multipy
+ pytest-black >= 0.3.7
pytest-cov
- six
- backports.unittest_mock
jaraco.classes
docs =
sphinx
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/setup.py
new/jaraco.functools-3.0.1/setup.py
--- old/jaraco.functools-3.0.0/setup.py 2019-12-20 05:48:13.000000000 +0100
+++ new/jaraco.functools-3.0.1/setup.py 2020-04-25 23:42:26.000000000 +0200
@@ -3,4 +3,4 @@
import setuptools
if __name__ == "__main__":
- setuptools.setup(use_scm_version=True)
+ setuptools.setup()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/skeleton.md
new/jaraco.functools-3.0.1/skeleton.md
--- old/jaraco.functools-3.0.0/skeleton.md 2019-12-20 05:48:13.000000000
+0100
+++ new/jaraco.functools-3.0.1/skeleton.md 2020-04-25 23:42:26.000000000
+0200
@@ -2,9 +2,9 @@
This project is merged with [skeleton](https://github.com/jaraco/skeleton).
What is skeleton? It's the scaffolding of a Python project jaraco [introduced
in his blog](https://blog.jaraco.com/a-project-skeleton-for-python-projects/).
It seeks to provide a means to re-use techniques and inherit advances when
managing projects for distribution.
-## An SCM Managed Approach
+## An SCM-Managed Approach
-While maintaining dozens of projects in PyPI, jaraco derives best practices
for project distribution and publishes them in the [skeleton
repo](https://github.com/jaraco/skeleton), a git repo capturing the evolution
and culmination of these best practices.
+While maintaining dozens of projects in PyPI, jaraco derives best practices
for project distribution and publishes them in the [skeleton
repo](https://github.com/jaraco/skeleton), a Git repo capturing the evolution
and culmination of these best practices.
It's intended to be used by a new or existing project to adopt these practices
and honed and proven techniques. Adopters are encouraged to use the project
directly and maintain a small deviation from the technique, make their own fork
for more substantial changes unique to their environment or preferences, or
simply adopt the skeleton once and abandon it thereafter.
@@ -38,7 +38,7 @@
## Updating
-Whenever a change is needed or desired for the general technique for
packaging, it can be made in the skeleton project and then merged into each of
the derived projects as needed, recommended before each release. As a result,
features and best practices for packaging are centrally maintained and readily
trickle into a whole suite of packages. This technique lowers the amount of
tedious work necessary to create or maintain a project, and coupled with other
techniques like continuous integration and deployment, lowers the cost of
creating and maintaining refined Python projects to just a few, familiar git
operations.
+Whenever a change is needed or desired for the general technique for
packaging, it can be made in the skeleton project and then merged into each of
the derived projects as needed, recommended before each release. As a result,
features and best practices for packaging are centrally maintained and readily
trickle into a whole suite of packages. This technique lowers the amount of
tedious work necessary to create or maintain a project, and coupled with other
techniques like continuous integration and deployment, lowers the cost of
creating and maintaining refined Python projects to just a few, familiar Git
operations.
Thereafter, the target project can make whatever customizations it deems
relevant to the scaffolding. The project may even at some point decide that the
divergence is too great to merit renewed merging with the original skeleton.
This approach applies maximal guidance while creating minimal constraints.
@@ -46,16 +46,16 @@
The features/techniques employed by the skeleton include:
-- PEP 517/518 based build relying on setuptools as the build tool
-- setuptools declarative configuration using setup.cfg
+- PEP 517/518-based build relying on Setuptools as the build tool
+- Setuptools declarative configuration using setup.cfg
- tox for running tests
-- A README.rst as reStructuredText with some popular badges, but with
readthedocs and appveyor badges commented out
+- A README.rst as reStructuredText with some popular badges, but with Read the
Docs and AppVeyor badges commented out
- A CHANGES.rst file intended for publishing release notes about the project
-- Use of [black](https://black.readthedocs.io/en/stable/) for code formatting
(disabled on unsupported Python 3.5 and earlier)
+- Use of [Black](https://black.readthedocs.io/en/stable/) for code formatting
(disabled on unsupported Python 3.5 and earlier)
## Packaging Conventions
-A pyproject.toml is included to enable PEP 517 and PEP 518 compatibility and
declares the requirements necessary to build the project on setuptools (a
minimum version compatible with setup.cfg declarative config).
+A pyproject.toml is included to enable PEP 517 and PEP 518 compatibility and
declares the requirements necessary to build the project on Setuptools (a
minimum version compatible with setup.cfg declarative config).
The setup.cfg file implements the following features:
@@ -92,39 +92,63 @@
- rely on default test discovery in the current directory
- avoid recursing into common directories not containing tests
-- run doctests on modules and invoke flake8 tests
-- in doctests, allow unicode literals and regular literals to match, allowing
for doctests to run on Python 2 and 3. Also enable ELLIPSES, a default that
would be undone by supplying the prior option.
+- run doctests on modules and invoke Flake8 tests
+- in doctests, allow Unicode literals and regular literals to match, allowing
for doctests to run on Python 2 and 3. Also enable ELLIPSES, a default that
would be undone by supplying the prior option.
- filters out known warnings caused by libraries/functionality included by the
skeleton
-Relies a .flake8 file to correct some default behaviors:
+Relies on a .flake8 file to correct some default behaviors:
- disable mutually incompatible rules W503 and W504
-- support for black format
+- support for Black format
## Continuous Integration
-The project is pre-configured to run tests in
[Travis-CI](https://travis-ci.org) (.travis.yml). Any new project must be
enabled either through their web site or with the `travis enable` command.
+The project is pre-configured to run tests through multiple CI providers.
+
+### Azure Pipelines
+
+[Azure
Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) are
the preferred provider as they provide free, fast, multi-platform services. See
azure-pipelines.yml for more details.
+
+Features include:
+
+- test against multiple Python versions
+- run on Ubuntu Bionic
+
+### Travis CI
+
+[Travis CI](https://travis-ci.org) is configured through .travis.yml. Any new
project must be enabled either through their web site or with the `travis
enable` command.
Features include:
-- test against Python 2 and 3
-- run on Ubuntu Xenial
+- test against Python 3
+- run on Ubuntu Bionic
- correct for broken IPv6
-Also provided is a minimal template for running under Appveyor (Windows).
+### AppVeyor
+
+A minimal template for running under AppVeyor (Windows) is provided.
### Continuous Deployments
-In addition to running tests, an additional deploy stage is configured to
automatically release tagged commits to PyPI using [API
tokens](https://pypi.org/help/#apitoken). The release process expects an
authorized token to be configured with Travis as the TWINE_PASSWORD environment
variable. After the Travis project is created, configure the token through the
web UI or with a command like the following (bash syntax):
+In addition to running tests, an additional deploy stage is configured to
automatically release tagged commits to PyPI using [API
tokens](https://pypi.org/help/#apitoken). The release process expects an
authorized token to be configured with Azure as the `Azure secrets` variable
group. This variable group needs to be created only once per organization. For
example:
```
-TWINE_PASSWORD={token} travis env copy TWINE_PASSWORD
+# create a resource group if none exists
+az group create --name main --location eastus2
+# create the vault (try different names until something works)
+az keyvault create --name secrets007 --resource-group main
+# create the secret
+az keyvault secret set --vault-name secrets007 --name PyPI-token --value $token
```
+Then, in the web UI for the project's Pipelines Library, create the `Azure
secrets` variable group referencing the key vault name.
+
+For more details, see [this blog
entry](https://blog.jaraco.com/configuring-azure-pipelines-with-secets/).
+
## Building Documentation
Documentation is automatically built by [Read the
Docs](https://readthedocs.org) when the project is registered with it, by way
of the .readthedocs.yml file. To test the docs build manually, a tox env may be
invoked as `tox -e docs`. Both techniques rely on the dependencies declared in
`setup.cfg/options.extras_require.docs`.
-In addition to building the sphinx docs scaffolded in `docs/`, the docs build
a `history.html` file that first injects release dates and hyperlinks into the
CHANGES.rst before incorporating it as history in the docs.
+In addition to building the Sphinx docs scaffolded in `docs/`, the docs build
a `history.html` file that first injects release dates and hyperlinks into the
CHANGES.rst before incorporating it as history in the docs.
## Cutting releases
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/test_functools.py
new/jaraco.functools-3.0.1/test_functools.py
--- old/jaraco.functools-3.0.0/test_functools.py 2019-12-20
05:48:13.000000000 +0100
+++ new/jaraco.functools-3.0.1/test_functools.py 2020-04-25
23:42:26.000000000 +0200
@@ -1,3 +1,4 @@
+import os
import itertools
import time
import copy
@@ -12,6 +13,10 @@
class TestThrottler:
+ @pytest.mark.xfail(
+ os.environ.get('AGENT_OS', '') in ('Windows_NT', 'Darwin'),
+ reason="Performance is heavily throttled on Azure Win/Mac runs",
+ )
def test_function_throttled(self):
"""
Ensure the throttler actually throttles calls.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.functools-3.0.0/tox.ini
new/jaraco.functools-3.0.1/tox.ini
--- old/jaraco.functools-3.0.0/tox.ini 2019-12-20 05:48:13.000000000 +0100
+++ new/jaraco.functools-3.0.1/tox.ini 2020-04-25 23:42:26.000000000 +0200
@@ -11,7 +11,6 @@
[testenv]
deps =
- setuptools>=31.0.1
pip_version = pip
commands =
pytest {posargs}