Hello community, here is the log from the commit of package python-pathlib2 for openSUSE:Factory checked in at 2018-05-23 16:09:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pathlib2 (Old) and /work/SRC/openSUSE:Factory/.python-pathlib2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pathlib2" Wed May 23 16:09:21 2018 rev:3 rq:611340 version:2.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pathlib2/python-pathlib2.changes 2018-01-09 14:56:33.298346555 +0100 +++ /work/SRC/openSUSE:Factory/.python-pathlib2.new/python-pathlib2.changes 2018-05-23 16:09:44.124589895 +0200 @@ -1,0 +2,6 @@ +Tue May 22 13:31:30 UTC 2018 - [email protected] + +- Clean up SPEC +- Switch on tests (add patch pathlib2-2.3.0-fix-tests.patch) + +------------------------------------------------------------------- @@ -7,0 +14,5 @@ +Thu Aug 24 13:49:05 UTC 2017 - [email protected] + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -10,0 +22 @@ + New: ---- pathlib2-2.3.0-fix-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pathlib2.spec ++++++ --- /var/tmp/diff_new_pack.bL3nfw/_old 2018-05-23 16:09:45.404543021 +0200 +++ /var/tmp/diff_new_pack.bL3nfw/_new 2018-05-23 16:09:45.408542875 +0200 @@ -16,23 +16,28 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pathlib2 Version: 2.3.0 Release: 0 Summary: Object-oriented filesystem paths License: MIT Group: Development/Languages/Python -Url: https://pypi.python.org/pypi/pathlib2/ +URL: https://pypi.python.org/pypi/pathlib2/ Source: https://files.pythonhosted.org/packages/source/p/pathlib2/pathlib2-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-scandir -BuildRequires: python-setuptools -BuildRequires: python-six +Patch0: pathlib2-2.3.0-fix-tests.patch +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module scandir} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: python-rpm-macros +BuildRequires: python3-testsuite Requires: python-scandir Requires: python-six -Provides: python2-pathlib2 = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description The `old pathlib <https://bitbucket.org/pitrou/pathlib>`_ @@ -43,18 +48,22 @@ so all the newest features of the standard pathlib can be used also on older Python versions. + %prep -%setup -q -n pathlib2-%{version} +%autosetup -n pathlib2-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%python3_version . --cov=pathlib2 -%files -%defattr(-,root,root,-) -%doc CHANGELOG.rst LICENSE.rst README.rst +%files %{python_files} +%license LICENSE.rst +%doc CHANGELOG.rst README.rst %{python_sitelib}/* %changelog ++++++ pathlib2-2.3.0-fix-tests.patch ++++++ --- a/test_pathlib2.py +++ b/test_pathlib2.py @@ -44,10 +44,7 @@ try: except ImportError: from test import test_support as support -if sys.version_info >= (3, 6): - android_not_root = support.android_not_root -else: - android_not_root = False +android_not_root = False TESTFN = support.TESTFN
