Hello community,
here is the log from the commit of package python-requirementslib for
openSUSE:Factory checked in at 2020-07-17 20:44:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requirementslib (Old)
and /work/SRC/openSUSE:Factory/.python-requirementslib.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-requirementslib"
Fri Jul 17 20:44:54 2020 rev:5 rq:820914 version:1.5.12
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-requirementslib/python-requirementslib.changes
2020-03-27 00:23:18.056196125 +0100
+++
/work/SRC/openSUSE:Factory/.python-requirementslib.new.3592/python-requirementslib.changes
2020-07-17 20:45:13.384563718 +0200
@@ -1,0 +2,122 @@
+Tue Jul 14 13:35:09 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- reenable offline unit tests
+ * gh#sarugaku/requirementslib#145 still open
+ * test_dependencies.py is completely marked with needs_internet
+ * Could not reproduce the random failures
+ * two parser tests fail for yet unknown reasons
+- Update to 1.5.12 (2020-07-10)
+ * Bug Fixes
+ * Fix a bug that assignments with type annotations are missing from
+ the AST. #253
+ * Fix a bug that package_dir points to a wrong location when parsing
+ setup.cfg. #255
+- Update to 1.5.11 (2020-06-01)
+ * Bug Fixes
+ * Packages which use a function call in setup.py to find their own
+ name dynamically will now successfully resolve. #251
+- Update to 1.5.10 (2020-06-01)
+ * Bug Fixes
+ * Switch to BFS algorithm to iterate possible metadata directories.
+ #186
+ * Fix a bug that + character in URL auth are converted to a space.
+ #244
+ * Fixed an issue in the AST parser which caused failures when
+ parsing setup.py files with assignments (e.g. variable = some_value)
+ to the same name more than once, followed by operations on those
+ variables (e.g. new_value = variable + other_variable). #246
+ * Copy symlinks as well for local path requirements. #248
+ * Fix a bug that non-string value for name argument will be taken as
+ requirement name. #249
+- Update to 1.5.9 (2020-05-19)
+ * Bug Fixes
+ * Subdirectory fragments on VCS URLs which also contain #egg=
+ fragments will now be included correctly in requirements. #236
+ * Fixed a regression which caused collisions to occur between valid
+ named requirements and invalid local filesystem paths. #239
+ * Fixed a bug in setup.py parsing in which setup.py files which
+ passed a dictionary to the setup function returned metadata that could
+ not be meaningfully processed. #241
+- Update to 1.5.8 (2020-05-14)
+ * Bug Fixes
+ * Fix an issue where the list of not-supported python versions in a
+ marker was being truncated. #228
+ * Fixed a bug which prevented the use of wheel_cache instances from
+ pip due to deprecated invocation. #230
+ * Requirementslib will now ensure that PEP508 style direct URL lines
+ are preserved as being direct URL references when converting to and
+ from Requirementslib.requirement instances. #232
+ * Fix a bug that 1.x specifiers can't be parsed correctly. #234
+- Update to 1.5.7 (2020-04-23)
+ * Bug Fixes
+ * Fixed a bug in AST parsing on python 2.7 which caused the parser
+ to fail if any attributes could not be resolved. #226
+- Update to 1.5.6 (2020-04-22)
+ * Features
+ * Added requirementslib.models.metadata module with get_package,
+ get_package_version, and get_package_from_requirement interfaces. #219
+ * Bug Fixes
+ * Fixed an issue in parsing setup files that incorrectly parsed the
+ in operator and failed to properly expand referenced dictionaries.
+ #222
+ * Fixed an issue that did not take into account micro versions when
+ generating markers from python_requires. #223
+- Update to 1.5.5 (2020-03-31)
+ * Bug Fixes
+ * Fixed an issue which prevented parsing of setup.cfg files using
+ the setuptools native configuration reader. #216
+ * URI instances will no longer print masked username fields when
+ neither a username or password is supplied. #220
+- Update to 1.5.4 (2020-03-25)
+ * Features
+ * Added support for hiding tokens from URLs when printing them to
+ the screen. #192
+ * Bug Fixes
+ * Fix AST parsing when setup.py contains binary operators other than
+ + and -. #179
+ * Fix test failures due to updates to the pyparsing API. #181
+ * Fixed an issue with loading Pipfile data due to plette model
+ misalignment. #182
+ * Fixed failed calls to .lower on tomlkit's Bool object during
+ pipfile load as the API seems to have changed here. #183
+ * Added import guards to prevent ImportErrors which could occur when
+ attempting to import now-removed pkg_resources.extern.requirements.
+ #185
+ * Fixed an issue which prevented loading Lockfile-based references
+ to local paths when calling as_requirements() on a
+ requirementslib.models.lockfile.Lockfile instance. #188
+ * Updated references to Link instances which no longer have the
+ is_artifact property. #190
+ * Updated all references to newly shimmed code to fix breakages due
+ to pip 19.3 release: - Fixed references to Command object from pip in
+ favor of InstallCommand which is now properly shimmed via pip-shims -
+ Fixed invocation of VcsSupport and VersionControl objects for
+ compatibility - Removed addition of options to Command as they are
+ redundant when using InstallCommand - Cut get_finder and
+ start_resolver over to newly shimmed approaches in pip-shims #191
+ * Fixed a bug in parsing of Pipfiles with missing or misnamed source
+ sections which could cause tomlkit errors when loading legacy
+ Pipfiles. #194
+ * Corrected an unexpected behavior which resulted in a KeyError when
+ attempting to call __getitem__ on a Pipfile instance with a section
+ that was not present. #195
+ * Fixed an issue in Lockfile path and model auto-detection when
+ called without the load classmethod which caused initialization to
+ fail due to an AttributeError. #196
+ * Fixed an issue which caused build directories to be deleted before
+ dependencies could be determined for editable source reqiurements.
+ #200
+ * Fixed a bug which could cause parsing to fail for setup.cfg files
+ on python 2. #202
+ * Fixed an issue in binary operator mapping in the
+ ast_parse_setup_py functionality of the dependency parser which could
+ cause dependency resolution to fail. #204
+ * Fixed an issue which prevented successful parsing of setup.py
+ files which were not utf-8 encoded. #205
+ * Fixed an issue which caused mappings of binary operators to fail
+ to evaluate when parsing setup.py files. #206
+ * Fixed mapping and evaluation of boolean operators and comparisons
+ when evaluating setup.py files with AST parser to discover
+ dependencies. #207
+
+-------------------------------------------------------------------
Old:
----
requirementslib-1.5.3.tar.gz
New:
----
requirementslib-1.5.12.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-requirementslib.spec ++++++
--- /var/tmp/diff_new_pack.MV93Bp/_old 2020-07-17 20:45:20.024570794 +0200
+++ /var/tmp/diff_new_pack.MV93Bp/_new 2020-07-17 20:45:20.032570802 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-requirementslib
-Version: 1.5.3
+Version: 1.5.12
Release: 0
Summary: A tool for converting between pip-style and pipfile
requirements
License: MIT
@@ -62,6 +62,7 @@
BuildRequires: %{python_module attrs >= 18.2}
BuildRequires: %{python_module boltons >= 19.0.0}
BuildRequires: %{python_module cached-property}
+BuildRequires: %{python_module dateutil}
BuildRequires: %{python_module distlib >= 0.2.8}
BuildRequires: %{python_module first}
BuildRequires: %{python_module hypothesis}
@@ -70,7 +71,6 @@
BuildRequires: %{python_module pep517 >= 0.5.0}
BuildRequires: %{python_module pip-shims}
BuildRequires: %{python_module plette}
-BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
@@ -87,22 +87,19 @@
%python_subpackages
%description
-A tool for converting between pip-style and pipfile requirements.
+RequirementsLib provides a simple layer for building and
+interacting with requirements in both the Pipfile format and
+the requirements.txt format. This library was originally built
+for converting between these formats in Pipenv.
%prep
%setup -q -n requirementslib-%{version}
%patch0 -p1
cp %{SOURCE1} .
-# https://github.com/sarugaku/requirementslib/pull/144 unnecessary in next
release
-sed -i '/colorama/d' setup.cfg
-
sed -i '/invoke/d' setup.cfg
rm -r tasks
-# This test module is entirely online
-rm tests/unit/test_dependencies.py
-
%build
export LANG=en_US.UTF-8
%python_build
@@ -113,14 +110,28 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-# test_get_local_ref and test_get_requirements need internet, test_local_req
is somehow misconfigured
-# The tests actually fail randomly; if you loop them in 100 runs around
-# 3-7 tests fail, with no repeated offender most of the time
-#%%pytest tests -k "not needs_internet and not test_get_local_ref and not
test_get_requirements and not test_local_req"
+# many tests need internet
https://github.com/sarugaku/requirementslib/issues/145
+# most tests are marked properly
+skip_tests="needs_internet"
+# unmarked but need internet
+skip_tests+=" or test_get_local_ref"
+skip_tests+=" or test_get_requirements"
+skip_tests+=" or (test_convert_from_pipfile and requirement10)"
+# unkown reason
+skip_tests+=" or test_parse_function_call_as_name"
+skip_tests+=" or test_ast_parser_handles_exceptions"
+# increase test deadline for slow obs executions architectures (e.g. on s390x)
+cat >> tests/conftest.py <<EOF
+
+from hypothesis import settings
+settings.register_profile("obs", deadline=1000)
+EOF
+%pytest tests -k "not ($skip_tests)" --hypothesis-profile=obs
%files %{python_files}
%doc CHANGELOG.rst README.rst docs/quickstart.rst
%license LICENSE LICENSE.boltons
-%{python_sitelib}/*
+%{python_sitelib}/requirementslib
+%{python_sitelib}/requirementslib-%{version}-py*.egg-info
%changelog
++++++ requirementslib-1.5.3.tar.gz -> requirementslib-1.5.12.tar.gz ++++++
++++ 19597 lines of diff (skipped)