commit python-wheel for openSUSE:Factory
Hello community, here is the log from the commit of package python-wheel for openSUSE:Factory checked in at 2018-11-28 11:09:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-wheel (Old) and /work/SRC/openSUSE:Factory/.python-wheel.new.19453 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-wheel" Wed Nov 28 11:09:12 2018 rev:16 rq:651326 version:0.32.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-wheel/python-wheel.changes 2018-11-06 15:20:23.824959198 +0100 +++ /work/SRC/openSUSE:Factory/.python-wheel.new.19453/python-wheel.changes 2018-11-28 11:09:15.163244717 +0100 @@ -1,0 +2,13 @@ +Fri Nov 23 08:01:20 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com> + +- Drop not really needed %license -> %doc fallback + +------------------------------------------------------------------- +Thu Nov 22 21:53:15 UTC 2018 - Arun Persaud <arun@gmx.de> + +- update to version 0.32.3: + * Fixed compatibility with Python 2.7.0 – 2.7.3 + * Fixed handling of direct URL requirements with markers (PR by + Benoit Pierre) + +------------------------------------------------------------------- Old: ---- wheel-0.32.2.tar.gz New: ---- wheel-0.32.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-wheel.spec ++++++ --- /var/tmp/diff_new_pack.FNAH09/_old 2018-11-28 11:09:15.715243965 +0100 +++ /var/tmp/diff_new_pack.FNAH09/_new 2018-11-28 11:09:15.715243965 +0100 @@ -17,9 +17,8 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%{!?license: %global license %doc} Name: python-wheel -Version: 0.32.2 +Version: 0.32.3 Release: 0 Summary: A built-package format for Python License: MIT ++++++ wheel-0.32.2.tar.gz -> wheel-0.32.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/.travis.yml new/wheel-0.32.3/.travis.yml --- old/wheel-0.32.2/.travis.yml 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/.travis.yml 2018-11-19 01:16:37.000000000 +0100 @@ -1,42 +1,52 @@ +dist: xenial language: python -sudo: false cache: pip stages: + - name: static analysis - name: test - name: deploy to PyPI if: type = push AND tag =~ ^\d+\.\d+\.\d+ jobs: include: - - env: TOXENV=pypy + - stage: static analysis + env: TOXENV=flake8 + + - stage: test + env: TOXENV=pypy + dist: trusty python: pypy - - env: TOXENV=pypy3 - python: pypy3 + - stage: test + env: TOXENV=pypy3 + python: pypy3.5 + + - stage: test + env: TOXENV=py27 + dist: trusty + python: "2.7.3" - - env: TOXENV=py27 + - stage: test + env: TOXENV=py27 python: "2.7" - - env: TOXENV=py34 + - stage: test + env: TOXENV=py34 python: "3.4" - - env: TOXENV=py35 + - stage: test + env: TOXENV=py35 python: "3.5" - - env: TOXENV=py36 + - stage: test + env: TOXENV=py36 python: "3.6" - # https://github.com/travis-ci/travis-ci/issues/9815 - - env: TOXENV=py37 - dist: xenial - sudo: required + - stage: test + env: TOXENV=py37 python: "3.7" - - env: TOXENV=flake8 - python: "2.7" - after_success: skip - - stage: deploy to PyPI install: pip install -U setuptools script: skip diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/docs/development.rst new/wheel-0.32.3/docs/development.rst --- old/wheel-0.32.2/docs/development.rst 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/docs/development.rst 2018-11-19 01:16:37.000000000 +0100 @@ -4,7 +4,7 @@ Pull Requests ------------- -- Submit Pull Requests against the `master` branch. +- Submit Pull Requests against the ``master`` branch. - Provide a good description of what you're doing and why. - Provide tests that cover your changes and try to run the tests locally first. @@ -48,20 +48,31 @@ .. _.travis.yml file: https://github.com/pypa/wheel/blob/master/.travis.yml .. _travis pull requests page: https://travis-ci.org/pypa/wheel/pull_requests -Running Tests -------------- +Running Tests Locally +--------------------- Python requirements: tox_ or pytest_ -To run the tests locally:: +To run the tests via tox against all matching interpreters:: + + $ tox + +To run the tests via tox against a specific environment:: - $ tox # Runs the tests against all matching interpreters - $ tox -e py35 # Runs the tests against a specific environment - $ pip install -e .[test] # Installs the test dependencies locally + $ tox -e py35 + +Alternatively, you can run the tests via pytest using your default interpreter:: + + $ pip install -e .[test] # Installs the test dependencies $ pytest # Runs the tests with the current interpreter +The above pip install command will replace the current interpreter's installed +wheel package with the development package being tested. If you use this +workflow, it is recommended to run it under a virtualenv_. + .. _tox: https://pypi.org/project/tox/ .. _pytest: https://pypi.org/project/pytest/ +.. _virtualenv: https://pypi.org/project/virtualenv/ Getting Involved ---------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/docs/news.rst new/wheel-0.32.3/docs/news.rst --- old/wheel-0.32.2/docs/news.rst 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/docs/news.rst 2018-11-19 01:16:37.000000000 +0100 @@ -1,6 +1,11 @@ Release Notes ============= +**0.32.3** + +- Fixed compatibility with Python 2.7.0 – 2.7.3 +- Fixed handling of direct URL requirements with markers (PR by Benoit Pierre) + **0.32.2** - Fixed build number appearing in the ``.dist-info`` directory name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/setup.py new/wheel-0.32.3/setup.py --- old/wheel-0.32.2/setup.py 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/setup.py 2018-11-19 01:16:37.000000000 +0100 @@ -7,10 +7,15 @@ here = os.path.abspath(os.path.dirname(__file__)) -README = io.open(os.path.join(here, 'README.rst'), encoding='utf8').read() -with io.open(os.path.join(here, 'wheel', '__init__.py'), encoding='utf8') as version_file: - metadata = dict(re.findall(r"""__([a-z]+)__ = "([^"]+)""", version_file.read())) + +def readall(*args): + with io.open(os.path.join(here, *args), encoding='utf8') as fp: + return fp.read() + + +README = readall('README.rst') +metadata = dict(re.findall(r"""__([a-z]+)__ = "([^"]+)""", readall('wheel', '__init__.py'))) setup(name='wheel', version=metadata['version'], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/tests/cli/test_convert.py new/wheel-0.32.3/tests/cli/test_convert.py --- old/wheel-0.32.2/tests/cli/test_convert.py 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/tests/cli/test_convert.py 2018-11-19 01:16:37.000000000 +0100 @@ -20,5 +20,5 @@ wheel_names = [path.basename for path in tmpdir.listdir()] assert len(wheel_names) == len(egg_paths) assert all(WHEEL_INFO_RE.match(filename) for filename in wheel_names) - assert all(re.match('^[\w\d.]+-\d\.\d-\w+\d+-[\w\d]+-[\w\d]+\.whl$', fname) + assert all(re.match(r'^[\w\d.]+-\d\.\d-\w+\d+-[\w\d]+-[\w\d]+\.whl$', fname) for fname in wheel_names) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/tests/test_metadata.py new/wheel-0.32.3/tests/test_metadata.py --- old/wheel-0.32.2/tests/test_metadata.py 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/tests/test_metadata.py 2018-11-19 01:16:37.000000000 +0100 @@ -7,19 +7,22 @@ ('Name', 'spam'), ('Version', '0.1'), ('Requires-Dist', "pip @ https://github.com/pypa/pip/archive/1.3.1.zip"), - ('Requires-Dist', 'pywin32; sys_platform=="win32"'), + ('Requires-Dist', 'pywin32 ; sys_platform=="win32"'), + ('Requires-Dist', 'foo @ http://host/foo.zip ; sys_platform=="win32"'), ('Provides-Extra', 'signatures'), - ('Requires-Dist', 'pyxdg; (sys_platform!="win32") and extra == \'signatures\''), + ('Requires-Dist', 'pyxdg ; (sys_platform!="win32") and extra == \'signatures\''), ('Provides-Extra', 'empty_extra'), + ('Provides-Extra', 'extra'), + ('Requires-Dist', 'bar @ http://host/bar.zip ; extra == \'extra\''), ('Provides-Extra', 'faster-signatures'), - ('Requires-Dist', "ed25519ll; extra == 'faster-signatures'"), + ('Requires-Dist', "ed25519ll ; extra == 'faster-signatures'"), ('Provides-Extra', 'rest'), - ('Requires-Dist', "docutils (>=0.8); extra == 'rest'"), - ('Requires-Dist', "keyring; extra == 'signatures'"), - ('Requires-Dist', "keyrings.alt; extra == 'signatures'"), + ('Requires-Dist', "docutils (>=0.8) ; extra == 'rest'"), + ('Requires-Dist', "keyring ; extra == 'signatures'"), + ('Requires-Dist', "keyrings.alt ; extra == 'signatures'"), ('Provides-Extra', 'test'), - ('Requires-Dist', "pytest (>=3.0.0); extra == 'test'"), - ('Requires-Dist', "pytest-cov; extra == 'test'"), + ('Requires-Dist', "pytest (>=3.0.0) ; extra == 'test'"), + ('Requires-Dist', "pytest-cov ; extra == 'test'"), ] pkg_info = tmpdir.join('PKG-INFO') @@ -38,10 +41,14 @@ egg_info_dir.join('requires.txt').write("""\ pip@https://github.com/pypa/pip/archive/1.3.1.zip +[extra] +bar @ http://host/bar.zip + [empty+extra] [:sys_platform=="win32"] pywin32 +foo @http://host/foo.zip [faster-signatures] ed25519ll diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/wheel/__init__.py new/wheel-0.32.3/wheel/__init__.py --- old/wheel-0.32.2/wheel/__init__.py 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/wheel/__init__.py 2018-11-19 01:16:37.000000000 +0100 @@ -1,2 +1,2 @@ # __variables__ with double-quoted values will be available in setup.py: -__version__ = "0.32.2" +__version__ = "0.32.3" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/wheel/metadata.py new/wheel-0.32.3/wheel/metadata.py --- old/wheel-0.32.2/wheel/metadata.py 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/wheel/metadata.py 2018-11-19 01:16:37.000000000 +0100 @@ -62,7 +62,7 @@ condition += "extra == '%s'" % extra if condition: - condition = '; ' + condition + condition = ' ; ' + condition for new_req in convert_requirements(depends): yield 'Requires-Dist', new_req + condition diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wheel-0.32.2/wheel/wheelfile.py new/wheel-0.32.3/wheel/wheelfile.py --- old/wheel-0.32.2/wheel/wheelfile.py 2018-10-20 22:03:14.000000000 +0200 +++ new/wheel-0.32.3/wheel/wheelfile.py 2018-11-19 01:16:37.000000000 +0100 @@ -39,7 +39,7 @@ if not basename.endswith('.whl') or self.parsed_filename is None: raise WheelError("Bad wheel filename {!r}".format(basename)) - super(WheelFile, self).__init__(file, mode, compression=ZIP_DEFLATED, allowZip64=True) + ZipFile.__init__(self, file, mode, compression=ZIP_DEFLATED, allowZip64=True) self.dist_info_path = '{}.dist-info'.format(self.parsed_filename.group('namever')) self.record_path = self.dist_info_path + '/RECORD' @@ -88,7 +88,7 @@ if eof and running_hash.digest() != expected_hash: raise WheelError("Hash mismatch for file '{}'".format(native(ef_name))) - ef = super(WheelFile, self).open(name_or_info, mode, pwd) + ef = ZipFile.open(self, name_or_info, mode, pwd) ef_name = as_unicode(name_or_info.filename if isinstance(name_or_info, ZipInfo) else name_or_info) if mode == 'r' and not ef_name.endswith('/'): @@ -136,7 +136,7 @@ self.writestr(zinfo, data, compress_type) def writestr(self, zinfo_or_arcname, bytes, compress_type=None): - super(WheelFile, self).writestr(zinfo_or_arcname, bytes, compress_type) + ZipFile.writestr(self, zinfo_or_arcname, bytes, compress_type) fname = (zinfo_or_arcname.filename if isinstance(zinfo_or_arcname, ZipInfo) else zinfo_or_arcname) logger.info("adding '%s'", fname) @@ -157,4 +157,4 @@ zinfo.external_attr = 0o664 << 16 self.writestr(zinfo, as_bytes(content)) - super(WheelFile, self).close() + ZipFile.close(self)
participants (1)
-
root