Hello community, here is the log from the commit of package python-jaraco.functools for openSUSE:Factory checked in at 2019-03-04 09:21:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jaraco.functools (Old) and /work/SRC/openSUSE:Factory/.python-jaraco.functools.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jaraco.functools" Mon Mar 4 09:21:29 2019 rev:2 rq:679745 version:2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jaraco.functools/python-jaraco.functools.changes 2018-09-24 13:11:07.893932060 +0200 +++ /work/SRC/openSUSE:Factory/.python-jaraco.functools.new.28833/python-jaraco.functools.changes 2019-03-04 09:21:31.848588505 +0100 @@ -1,0 +2,14 @@ +Tue Feb 26 09:20:58 UTC 2019 - John Vandenberg <jay...@gmail.com> + +- Add LICENSE +- Compile manually due to switch to pkgutil namespace technique +- Add fdupes +- Re-instate use of --doctest-modules to increase coverage +- Remove undesirable build dependency pytest-sugar +- Add missing runtime dependency on python-jaraco.base +- Add missing runtime dependency on more-itertools +- Add explicit build dependency on python-six +- Update to v2.0 + * Switch to pkgutil namespace technique for the ``jaraco`` namespace. + +------------------------------------------------------------------- @@ -9 +23 @@ -- Initial Package +- Initial Package for v1.20 Old: ---- jaraco.functools-1.20.tar.gz New: ---- jaraco.functools-2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jaraco.functools.spec ++++++ --- /var/tmp/diff_new_pack.5pUq2m/_old 2019-03-04 09:21:32.332588417 +0100 +++ /var/tmp/diff_new_pack.5pUq2m/_new 2019-03-04 09:21:32.336588417 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-jaraco.functools # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,29 +12,32 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jaraco.functools -Version: 1.20 +Version: 2.0 Release: 0 Summary: Tools to work with functools License: MIT Group: Development/Languages/Python Url: https://github.com/jaraco/jaraco.functools Source0: https://files.pythonhosted.org/packages/source/j/jaraco.functools/jaraco.functools-%{version}.tar.gz -BuildRequires: %{python_module base} -BuildRequires: %{python_module jaraco.base} +BuildRequires: %{python_module jaraco.base >= 6.1} BuildRequires: %{python_module jaraco.classes} -BuildRequires: %{python_module pytest-sugar} +BuildRequires: %{python_module more-itertools} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python2-backports.functools_lru_cache BuildRequires: python2-backports.unittest_mock +Requires: python-jaraco.base >= 6.1 +Requires: python-more-itertools %ifpython2 Requires: python-backports.functools_lru_cache %endif @@ -48,7 +51,7 @@ %prep %setup -q -n jaraco.functools-%{version} -sed -i -e "s/'pytest_runner'/'pytest-runner'/" setup.py +sed -i 's/--flake8//' pytest.ini rm -rf jaraco.functools.egg-info %build @@ -56,15 +59,28 @@ %install %python_install -%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.functools-%{version}-py*-nspkg.pth} + +%python_expand rm %{buildroot}%{$python_sitelib}/jaraco/__init__.py + +%if 0%{?have_python2} && ! 0%{?skip_python2} +%py_compile %{buildroot}%{python2_sitelib}/jaraco/ +%py_compile -O %{buildroot}%{python2_sitelib}/jaraco/ +%endif + +%if 0%{?have_python3} && ! 0%{?skip_python3} +%py3_compile %{buildroot}%{python3_sitelib}/jaraco/ +%py3_compile -O %{buildroot}%{python3_sitelib}/jaraco/ +%endif + +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# remove flake8 / doc tests -sed -i "s,addopts=--doctest-modules --flake8.*,," pytest.ini -%python_expand py.test-%{$python_bin_suffix} +%{python_expand py.test-%{$python_bin_suffix} \ + --ignore=_build.python2 --ignore=_build.python3 +} %files %{python_files} -%defattr(-,root,root) +%license LICENSE %doc docs/*.rst README.rst CHANGES.rst %{python_sitelib}/jaraco.functools-%{version}-py*.egg-info %{python_sitelib}/jaraco/functools.py* ++++++ jaraco.functools-1.20.tar.gz -> jaraco.functools-2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/.flake8 new/jaraco.functools-2.0/.flake8 --- old/jaraco.functools-1.20/.flake8 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/.flake8 2019-01-01 15:21:19.000000000 +0100 @@ -1,2 +1,8 @@ [flake8] -ignore = W191,W503 +ignore = + # Allow tabs for indentation + W191 + # W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513 + W503 + # W504 has issues https://github.com/OCA/maintainer-quality-tools/issues/545 + W504 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/.travis.yml new/jaraco.functools-2.0/.travis.yml --- old/jaraco.functools-1.20/.travis.yml 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/.travis.yml 2019-01-01 15:21:19.000000000 +0100 @@ -1,11 +1,11 @@ -dist: trusty +dist: xenial sudo: false language: python python: - 2.7 -- &latest_py3 3.6 -- nightly +- 3.6 +- &latest_py3 3.7 jobs: fast_finish: true @@ -13,27 +13,22 @@ - stage: deploy if: tag IS present python: *latest_py3 - install: skip - script: skip - deploy: - provider: pypi - on: - tags: true - all_branches: true - user: jaraco - password: - secure: ioK9Xn+FV5miVgkR4qaH8myFXKLwb6rtXyNpwZfc1c979OZKLsLUQrYE513goiumOvHuDEPrxmEsj8FWPL28nfNfw3fmguRm2Y7HJq95Cp4iEJ+jMVE5utZKX2nfzpQwyx4hvQB4CUpqOLV68+CDz2ly9e/XPUr4i8BRjL1/xlnlTHDfn5616TsG0mVQU6jC8rAPlH5I8bBQyod07G5qj15OD5QZGREsGSNbPFL397zKA6MqRQgUSRi7Wh9hb3Flmc0CaCMy7pfMmcGWBIRASuisbnpPfe2p6ZWeLRqrJUdGvoacc5AZLdAe8bjQXFtWAmbjFftmm1Qvx1qsTOv6yVwmhFd5G8mqHohvzXvQTxPHYs5esh2U6QoTKeAdCl67gJFow+hwwaheCjTbC5rmR6S7EM5S6wcDj6cSi+kw60afvFeLpFsIjG8yVRyS0pKzA2r/o0/9SSTR0Mtd0/DtGMAxI+YuRrs2/M07bJZl35NXLfSYlyUmH0q1Aonb/IuAAR47ezhN4JuEpzjcdp4sO5CMhKIMm3IJIS87JH6Oo/V501arngi10WkTTOyFNpKszcDFYhgF0yDr1dqbVURueFc1Y3qw+LlAG3PTPsSL61BAl2TGm0SrNXhPITJd5pi5pv6chWlxRG8BtORNQOfa7xaETJSbqMYiJj4U+Q8DZN0= - distributions: dists - skip_cleanup: true - skip_upload_docs: true - -matrix: - allow_failures: - - python: nightly + before_script: skip + env: + - TWINE_USERNAME=jaraco + # TWINE_PASSWORD + - secure: MploUiVMnwq1vqCrSGRmdSlx21PnlXCg9w4bjhD6tYyN4NvHowbpT9E4or2aBW622xmIi7puiu3fuxgTrp7nh+7CVl0hR1Aa2+Y5ggA50uAHUoO5VSYN21w9V4nNe1u26IjnktZ9jK5Fz+aubrhA9kQX6M1Msowdo/IDCEi+gMQQdGR5S7IEBb0ZWpuW28AKT7j/iivs1gffrmmuiIJ+7o+khWJ/LZ9I0qAJCJDksqql1UP3ScZbOPihpjU0Lmo0aWxUSIiF6Qn7S4+3PAOXLxw29wf4yHECu+n1TzOWy3l/Hl5RpTLGPXeHfgWwDNOsHmWJhhc8rj2c+6fDgCWUMqxDWgJtOTKeRIRoxy6Dz8xosssYu/LhDPCklkNoswRRHvWLCCbwnJplNdmgWU+jZ9DQZ8Mvfy1dy6M92uxwYKfCYBTyGqR6tkAZD5zWZkm3gVXbJw2vMc+kKngPgNKY89w1epK3o53LybTaFvT+3FlUtgoMJjvUFbhGIqtpKcPKWToqUSrnaMmi3aJB9CcIeSE71oMn/4S5TTaI9JAwidVYZQw+JF3UeZ3aDJ2fAvj7Xpklk41sm5URJu9QFMbE10AxX4+deoRXC/mxlVfoTgRyWgxgjtjM6i1P++57ETx75K1FyDgI1qTXMvVCHbrLggjlvulTU5zB/yGs/pwBmQY= + - TOX_TESTENV_PASSENV="TWINE_USERNAME TWINE_PASSWORD" + script: tox -e release cache: pip install: - pip install tox tox-venv +before_script: + # Disable 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 script: tox diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/CHANGES.rst new/jaraco.functools-2.0/CHANGES.rst --- old/jaraco.functools-1.20/CHANGES.rst 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/CHANGES.rst 2019-01-01 15:21:19.000000000 +0100 @@ -1,3 +1,10 @@ +2.0 +=== + +Switch to `pkgutil namespace technique +<https://packaging.python.org/guides/packaging-namespace-packages/#pkgutil-style-namespace-packages>`_ +for the ``jaraco`` namespace. + 1.20 ==== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/PKG-INFO new/jaraco.functools-2.0/PKG-INFO --- old/jaraco.functools-1.20/PKG-INFO 2018-07-04 16:32:10.000000000 +0200 +++ new/jaraco.functools-2.0/PKG-INFO 2019-01-01 15:21:37.000000000 +0100 @@ -1,7 +1,7 @@ Metadata-Version: 2.1 Name: jaraco.functools -Version: 1.20 -Summary: jaraco.functools +Version: 2.0 +Summary: Functools like those found in stdlib Home-page: https://github.com/jaraco/jaraco.functools Author: Jason R. Coombs Author-email: jar...@jaraco.com @@ -14,6 +14,9 @@ .. image:: https://img.shields.io/travis/jaraco/jaraco.functools/master.svg :target: https://travis-ci.org/jaraco/jaraco.functools + .. .. image:: https://img.shields.io/appveyor/ci/jaraco/jaraco-functools/master.svg + .. :target: https://ci.appveyor.com/project/jaraco-functools/skeleton/branch/master + .. image:: https://readthedocs.org/projects/jaracofunctools/badge/?version=latest :target: https://jaracofunctools.readthedocs.io/en/latest/?badge=latest @@ -25,5 +28,5 @@ Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Requires-Python: >=2.7 -Provides-Extra: testing Provides-Extra: docs +Provides-Extra: testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/README.rst new/jaraco.functools-2.0/README.rst --- old/jaraco.functools-1.20/README.rst 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/README.rst 2019-01-01 15:21:19.000000000 +0100 @@ -6,6 +6,9 @@ .. image:: https://img.shields.io/travis/jaraco/jaraco.functools/master.svg :target: https://travis-ci.org/jaraco/jaraco.functools +.. .. image:: https://img.shields.io/appveyor/ci/jaraco/jaraco-functools/master.svg +.. :target: https://ci.appveyor.com/project/jaraco-functools/skeleton/branch/master + .. image:: https://readthedocs.org/projects/jaracofunctools/badge/?version=latest :target: https://jaracofunctools.readthedocs.io/en/latest/?badge=latest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/docs/conf.py new/jaraco.functools-2.0/docs/conf.py --- old/jaraco.functools-1.20/docs/conf.py 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/docs/conf.py 2019-01-01 15:21:19.000000000 +0100 @@ -1,32 +1,26 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -extensions = [ - 'sphinx.ext.autodoc', - 'jaraco.packaging.sphinx', - 'rst.linker', -] +extensions = ["sphinx.ext.autodoc", "jaraco.packaging.sphinx", "rst.linker"] -master_doc = 'index' +master_doc = "index" link_files = { - '../CHANGES.rst': dict( - using=dict( - GH='https://github.com', - ), - replace=[ - dict( - pattern=r'(Issue )?#(?P<issue>\d+)', - url='{package_url}/issues/{issue}', - ), - dict( - pattern=r'^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n', - with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n', - ), - dict( - pattern=r'PEP[- ](?P<pep_number>\d+)', - url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/', - ), - ], - ), + "../CHANGES.rst": dict( + using=dict(GH="https://github.com"), + replace=[ + dict( + pattern=r"(Issue #|\B#)(?P<issue>\d+)", + url="{package_url}/issues/{issue}", + ), + dict( + pattern=r"^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n", + with_scm="{text}\n{rev[timestamp]:%d %b %Y}\n", + ), + dict( + pattern=r"PEP[- ](?P<pep_number>\d+)", + url="https://www.python.org/dev/peps/pep-{pep_number:0>4}/", + ), + ], + ) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/jaraco/__init__.py new/jaraco.functools-2.0/jaraco/__init__.py --- old/jaraco.functools-1.20/jaraco/__init__.py 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/jaraco/__init__.py 2019-01-01 15:21:19.000000000 +0100 @@ -1 +1 @@ -__import__("pkg_resources").declare_namespace(__name__) +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/jaraco/functools.py new/jaraco.functools-2.0/jaraco/functools.py --- old/jaraco.functools-1.20/jaraco/functools.py 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/jaraco/functools.py 2019-01-01 15:21:19.000000000 +0100 @@ -399,6 +399,14 @@ >>> assigned() Traceback (most recent call last): TypeError: func() ...argument... + + It even works on methods: + + >>> class Handler: + ... def meth(self, arg): + ... print(arg) + >>> assign_params(Handler().meth, dict(arg='crystal', foo='clear'))() + crystal """ try: sig = inspect.signature(func) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/jaraco.functools.egg-info/PKG-INFO new/jaraco.functools-2.0/jaraco.functools.egg-info/PKG-INFO --- old/jaraco.functools-1.20/jaraco.functools.egg-info/PKG-INFO 2018-07-04 16:32:10.000000000 +0200 +++ new/jaraco.functools-2.0/jaraco.functools.egg-info/PKG-INFO 2019-01-01 15:21:37.000000000 +0100 @@ -1,7 +1,7 @@ Metadata-Version: 2.1 Name: jaraco.functools -Version: 1.20 -Summary: jaraco.functools +Version: 2.0 +Summary: Functools like those found in stdlib Home-page: https://github.com/jaraco/jaraco.functools Author: Jason R. Coombs Author-email: jar...@jaraco.com @@ -14,6 +14,9 @@ .. image:: https://img.shields.io/travis/jaraco/jaraco.functools/master.svg :target: https://travis-ci.org/jaraco/jaraco.functools + .. .. image:: https://img.shields.io/appveyor/ci/jaraco/jaraco-functools/master.svg + .. :target: https://ci.appveyor.com/project/jaraco-functools/skeleton/branch/master + .. image:: https://readthedocs.org/projects/jaracofunctools/badge/?version=latest :target: https://jaracofunctools.readthedocs.io/en/latest/?badge=latest @@ -25,5 +28,5 @@ Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Requires-Python: >=2.7 -Provides-Extra: testing Provides-Extra: docs +Provides-Extra: testing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/jaraco.functools.egg-info/SOURCES.txt new/jaraco.functools-2.0/jaraco.functools.egg-info/SOURCES.txt --- old/jaraco.functools-1.20/jaraco.functools.egg-info/SOURCES.txt 2018-07-04 16:32:10.000000000 +0200 +++ new/jaraco.functools-2.0/jaraco.functools.egg-info/SOURCES.txt 2019-01-01 15:21:37.000000000 +0100 @@ -5,9 +5,11 @@ LICENSE README.rst appveyor.yml +pyproject.toml pytest.ini setup.cfg setup.py +skeleton.md test_functools.py tox.ini docs/conf.py @@ -18,6 +20,5 @@ jaraco.functools.egg-info/PKG-INFO jaraco.functools.egg-info/SOURCES.txt jaraco.functools.egg-info/dependency_links.txt -jaraco.functools.egg-info/namespace_packages.txt jaraco.functools.egg-info/requires.txt jaraco.functools.egg-info/top_level.txt \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/jaraco.functools.egg-info/namespace_packages.txt new/jaraco.functools-2.0/jaraco.functools.egg-info/namespace_packages.txt --- old/jaraco.functools-1.20/jaraco.functools.egg-info/namespace_packages.txt 2018-07-04 16:32:10.000000000 +0200 +++ new/jaraco.functools-2.0/jaraco.functools.egg-info/namespace_packages.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -jaraco diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/jaraco.functools.egg-info/requires.txt new/jaraco.functools-2.0/jaraco.functools.egg-info/requires.txt --- old/jaraco.functools-1.20/jaraco.functools.egg-info/requires.txt 2018-07-04 16:32:10.000000000 +0200 +++ new/jaraco.functools-2.0/jaraco.functools.egg-info/requires.txt 2019-01-01 15:21:37.000000000 +0100 @@ -1,6 +1,6 @@ more_itertools -[:python_version=="2.7"] +[:python_version == "2.7"] backports.functools_lru_cache>=1.0.3 [docs] @@ -9,9 +9,8 @@ rst.linker>=1.9 [testing] -pytest>=2.8 -pytest-sugar>=0.9.1 -collective.checkdocs +pytest!=3.7.3,>=3.5 +pytest-checkdocs pytest-flake8 six backports.unittest_mock diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/pyproject.toml new/jaraco.functools-2.0/pyproject.toml --- old/jaraco.functools-1.20/pyproject.toml 1970-01-01 01:00:00.000000000 +0100 +++ new/jaraco.functools-2.0/pyproject.toml 2019-01-01 15:21:19.000000000 +0100 @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=34.4", "wheel", "setuptools_scm>=1.15"] +build-backend = "setuptools.build_meta" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/pytest.ini new/jaraco.functools-2.0/pytest.ini --- old/jaraco.functools-1.20/pytest.ini 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/pytest.ini 2019-01-01 15:21:19.000000000 +0100 @@ -2,3 +2,10 @@ norecursedirs=dist build .tox .eggs addopts=--doctest-modules --flake8 doctest_optionflags=ALLOW_UNICODE ELLIPSIS +filterwarnings= + ignore:Possible nested set::pycodestyle:113 + ignore:Using or importing the ABCs::flake8:410 + # workaround for https://sourceforge.net/p/docutils/bugs/348/ + ignore:'U' mode is deprecated::docutils.io + # workaround for https://gitlab.com/pycqa/flake8/issues/275 + ignore:You passed a bytestring as `filenames`.::flake8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/setup.cfg new/jaraco.functools-2.0/setup.cfg --- old/jaraco.functools-1.20/setup.cfg 2018-07-04 16:32:10.000000000 +0200 +++ new/jaraco.functools-2.0/setup.cfg 2019-01-01 15:21:37.000000000 +0100 @@ -1,12 +1,45 @@ -[aliases] -release = dists upload -dists = clean --all sdist bdist_wheel - [bdist_wheel] universal = 1 [metadata] license_file = LICENSE +name = jaraco.functools +author = Jason R. Coombs +author_email = jar...@jaraco.com +description = Functools like those found in stdlib +long_description = file:README.rst +url = https://github.com/jaraco/jaraco.functools +classifiers = + Development Status :: 5 - Production/Stable + Intended Audience :: Developers + License :: OSI Approved :: MIT License + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + +[options] +packages = find: +include_package_data = true +python_requires = >=2.7 +install_requires = + more_itertools + backports.functools_lru_cache >= 1.0.3; python_version == "2.7" +setup_requires = setuptools_scm >= 1.15.0 + +[options.extras_require] +testing = + pytest >= 3.5, !=3.7.3 + pytest-checkdocs + pytest-flake8 + + six + backports.unittest_mock + jaraco.classes +docs = + sphinx + jaraco.packaging >= 3.2 + rst.linker >= 1.9 + +[options.entry_points] [egg_info] tag_build = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/setup.py new/jaraco.functools-2.0/setup.py --- old/jaraco.functools-1.20/setup.py 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/setup.py 2019-01-01 15:21:19.000000000 +0100 @@ -1,77 +1,6 @@ #!/usr/bin/env python -# Project skeleton maintained at https://github.com/jaraco/skeleton - -import io - import setuptools -with io.open('README.rst', encoding='utf-8') as readme: - long_description = readme.read() - -name = 'jaraco.functools' -description = '' -nspkg_technique = 'managed' -""" -Does this package use "native" namespace packages or -pkg_resources "managed" namespace packages? -""" - -params = dict( - name=name, - use_scm_version=True, - author="Jason R. Coombs", - author_email="jar...@jaraco.com", - description=description or name, - long_description=long_description, - url="https://github.com/jaraco/" + name, - packages=setuptools.find_packages(), - include_package_data=True, - namespace_packages=( - name.split('.')[:-1] if nspkg_technique == 'managed' - else [] - ), - python_requires='>=2.7', - install_requires=[ - 'more_itertools', - ], - extras_require={ - 'testing': [ - # upstream - 'pytest>=2.8', - 'pytest-sugar>=0.9.1', - 'collective.checkdocs', - 'pytest-flake8', - - # local - 'six', - 'backports.unittest_mock', - 'jaraco.classes', - ], - 'docs': [ - # upstream - 'sphinx', - 'jaraco.packaging>=3.2', - 'rst.linker>=1.9', - - # local - ], - ':python_version=="2.7"': [ - 'backports.functools_lru_cache>=1.0.3', - ], - }, - setup_requires=[ - 'setuptools_scm>=1.15.0', - ], - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", - ], - entry_points={ - }, -) -if __name__ == '__main__': - setuptools.setup(**params) +if __name__ == "__main__": + setuptools.setup(use_scm_version=True) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/skeleton.md new/jaraco.functools-2.0/skeleton.md --- old/jaraco.functools-1.20/skeleton.md 1970-01-01 01:00:00.000000000 +0100 +++ new/jaraco.functools-2.0/skeleton.md 2019-01-01 15:21:19.000000000 +0100 @@ -0,0 +1,126 @@ +# Overview + +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 + +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. + +The primary advantage to using an SCM for maintaining these techniques is that those tools help facilitate the merge between the template and its adopting projects. + +# Usage + +## new projects + +To use skeleton for a new project, simply pull the skeleton into a new project: + +``` +$ git init my-new-project +$ cd my-new-project +$ git pull gh://jaraco/skeleton +``` + +Now customize the project to suit your individual project needs. + +## existing projects + +If you have an existing project, you can still incorporate the skeleton by merging it into the codebase. + +``` +$ git merge skeleton --allow-unrelated-histories +``` + +The `--allow-unrelated-histories` is necessary because the history from the skeleton was previously unrelated to the existing codebase. Resolve any merge conflicts and commit to the master, and now the project is based on the shared skeleton. + +## 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. + +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. + +# Features + +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 +- tox for running tests +- A README.rst as reStructuredText with some popular badges, but with readthedocs and appveyor badges commented out +- A CHANGES.rst file intended for publishing release notes about the project. + +## 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). + +The setup.cfg file implements the following features: + +- Assumes universal wheel for release +- Advertises the project's LICENSE file (MIT by default) +- Reads the README.rst file into the long description +- Some common Trove classifiers +- Includes all packages discovered in the repo +- Data files in the package are also included (not just Python files) +- Declares the required Python versions +- Declares install requirements (empty by default) +- Declares setup requirements for legacy environments +- Supplies two 'extras': + - testing: requirements for running tests + - docs: requirements for building docs + - these extras split the declaration into "upstream" (requirements as declared by the skeleton) and "local" (those specific to the local project); these markers help avoid merge conflicts +- Placeholder for defining entry points + +Additionally, the setup.py file declares `use_scm_version` which relies on [setuptools_scm](https://pypi.org/project/setuptools_scm) to do two things: + +- derive the project version from SCM tags +- ensure that all files committed to the repo are automatically included in releases + +## Running Tests + +The skeleton assumes the developer has [tox](https://pypi.org/project/tox) installed. The developer is expected to run `tox` to run tests on the current Python version using [pytest](https://pypi.org/project/pytest). + +Other environments (invoked with `tox -e {name}`) supplied include: + + - a `build-docs` environment to build the documentation + - a `release` environment to publish the package to PyPI + +A pytest.ini is included to define common options around running tests. In particular: + +- 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. +- filters out known warnings caused by libraries/functionality included by the skeleton + +Relies a .flake8 file to correct some default behaviors: + +- allow tabs for indentation (legacy for jaraco projects) +- disable mutually incompatible rules W503 and W504. + +## 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. In addition to running tests, an additional deploy stage is configured to automatically release tagged commits. The username and password for PyPI must be configured for each project using the `travis` command and only after the travis project is created. As releases are cut with [twine](https://pypi.org/project/twine), the two values are supplied through the `TWINE_USERNAME` and `TWINE_PASSWORD`. To configure the latter as a secret, run the following command: + +``` +echo "TWINE_PASSWORD={password}" | travis encrypt +``` + +Or disable it in the CI definition and configure it through the web UI. + +Features include: +- test against Python 2 and 3 +- run on Ubuntu Xenial +- correct for broken IPv6 + +Also provided is a minimal template for running under Appveyor (Windows). + +## 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 build-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. + +## Cutting releases + +By default, tagged commits are released through the continuous integration deploy stage. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jaraco.functools-1.20/tox.ini new/jaraco.functools-2.0/tox.ini --- old/jaraco.functools-1.20/tox.ini 2018-07-04 16:31:43.000000000 +0200 +++ new/jaraco.functools-2.0/tox.ini 2019-01-01 15:21:19.000000000 +0100 @@ -5,11 +5,8 @@ [testenv] deps = setuptools>=31.0.1 - # workaround for yaml/pyyaml#126 - # git+https://github.com/yaml/pyyaml@master#egg=pyyaml commands = - py.test {posargs} - python setup.py checkdocs + pytest {posargs} usedevelop = True extras = testing @@ -20,3 +17,15 @@ changedir = docs commands = python -m sphinx . {toxinidir}/build/html + +[testenv:release] +skip_install = True +deps = + pep517>=0.5 + # workaround for https://github.com/pypa/twine/issues/423 + git+https://github.com/pypa/twine + path.py +commands = + python -c "import path; path.Path('dist').rmtree_p()" + python -m pep517.build . + python -m twine upload dist/*