Hello community,
here is the log from the commit of package python-dephell-pythons for
openSUSE:Factory checked in at 2019-09-13 15:03:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dephell-pythons (Old)
and /work/SRC/openSUSE:Factory/.python-dephell-pythons.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dephell-pythons"
Fri Sep 13 15:03:40 2019 rev:2 rq:730644 version:0.1.12
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-dephell-pythons/python-dephell-pythons.changes
2019-08-13 13:26:53.957329415 +0200
+++
/work/SRC/openSUSE:Factory/.python-dephell-pythons.new.7948/python-dephell-pythons.changes
2019-09-13 15:05:08.537258982 +0200
@@ -1,0 +2,6 @@
+Fri Sep 13 09:07:36 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.1.12:
+ * ship tests
+
+-------------------------------------------------------------------
Old:
----
dephell_pythons-0.1.10.tar.gz
New:
----
dephell_pythons-0.1.12.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-dephell-pythons.spec ++++++
--- /var/tmp/diff_new_pack.q6QMHI/_old 2019-09-13 15:05:09.097258863 +0200
+++ /var/tmp/diff_new_pack.q6QMHI/_new 2019-09-13 15:05:09.101258862 +0200
@@ -12,33 +12,35 @@
# 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-%{**}}
%define skip_python2 1
Name: python-dephell-pythons
-Version: 0.1.10
+Version: 0.1.12
Release: 0
-License: MIT
Summary: Dephell library to manage python versions
-Url: https://github.com/dephell/dephell_pythons
+License: MIT
Group: Development/Languages/Python
-Source:
https://files.pythonhosted.org/packages/source/d/dephell-pythons/dephell_pythons-%{version}.tar.gz
-BuildRequires: python-rpm-macros
+URL: https://github.com/dephell/dephell_pythons
+Source:
https://files.pythonhosted.org/packages/source/d/dephell_pythons/dephell_pythons-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.5}
BuildRequires: %{python_module setuptools}
-# SECTION test requirements
-BuildRequires: %{python_module attrs}
-BuildRequires: %{python_module dephell-specifier}
-BuildRequires: %{python_module packaging}
-# /SECTION
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-attrs
Requires: python-dephell-specifier
Requires: python-packaging
BuildArch: noarch
-
+# SECTION test requirements
+BuildRequires: %{python_module attrs}
+BuildRequires: %{python_module dephell-specifier}
+BuildRequires: %{python_module packaging}
+BuildRequires: %{python_module pytest}
+BuildRequires: python2-base
+# /SECTION
%python_subpackages
%description
@@ -54,6 +56,10 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+# test_lib_paths - /usr/bin added by pytest calls in IBS
+%pytest -k 'not test_lib_paths'
+
%files %{python_files}
%license LICENSE
%doc README.md
++++++ dephell_pythons-0.1.10.tar.gz -> dephell_pythons-0.1.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_pythons-0.1.10/PKG-INFO
new/dephell_pythons-0.1.12/PKG-INFO
--- old/dephell_pythons-0.1.10/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/dephell_pythons-0.1.12/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
-Name: dephell_pythons
-Version: 0.1.10
+Name: dephell-pythons
+Version: 0.1.12
Summary: Work with python versions
Project-URL: Repository, https://github.com/dephell/dephell
Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/dephell_pythons-0.1.10/dephell_pythons/pep514tools/__init__.py
new/dephell_pythons-0.1.12/dephell_pythons/pep514tools/__init__.py
--- old/dephell_pythons-0.1.10/dephell_pythons/pep514tools/__init__.py
2019-05-19 14:55:22.000000000 +0200
+++ new/dephell_pythons-0.1.12/dephell_pythons/pep514tools/__init__.py
2019-05-23 20:45:28.000000000 +0200
@@ -6,6 +6,6 @@
#-------------------------------------------------------------------------
__author__ = 'Steve Dower <[email protected]>'
-__version__ = '0.1.10'
+__version__ = '0.1.12'
from .environment import findall, find, findone
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/dephell_pythons-0.1.10/dephell_pythons.egg-info/PKG-INFO
new/dephell_pythons-0.1.12/dephell_pythons.egg-info/PKG-INFO
--- old/dephell_pythons-0.1.10/dephell_pythons.egg-info/PKG-INFO
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell_pythons-0.1.12/dephell_pythons.egg-info/PKG-INFO
1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
-Name: dephell_pythons
-Version: 0.1.10
+Name: dephell-pythons
+Version: 0.1.12
Summary: Work with python versions
Project-URL: Repository, https://github.com/dephell/dephell
Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_pythons-0.1.10/setup.py
new/dephell_pythons-0.1.12/setup.py
--- old/dephell_pythons-0.1.10/setup.py 2019-05-19 14:55:31.000000000 +0200
+++ new/dephell_pythons-0.1.12/setup.py 2019-05-23 20:45:30.000000000 +0200
@@ -13,13 +13,15 @@
readme = ''
here = os.path.abspath(os.path.dirname(__file__))
-with open(os.path.join(here, 'README.rst'), 'rb') as stream:
- readme = stream.read().decode('utf8')
+readme_path = os.path.join(here, 'README.rst')
+if os.path.exists(readme_path):
+ with open(readme_path, 'rb') as stream:
+ readme = stream.read().decode('utf8')
setup(
long_description=readme,
name='dephell_pythons',
- version='0.1.10',
+ version='0.1.12',
description='Work with python versions',
python_requires='>=3.5',
project_urls={'repository': 'https://github.com/dephell/dephell'},
Binary files
old/dephell_pythons-0.1.10/tests/__pycache__/__init__.cpython-37.pyc and
new/dephell_pythons-0.1.12/tests/__pycache__/__init__.cpython-37.pyc differ
Binary files
old/dephell_pythons-0.1.10/tests/__pycache__/test_abstract.cpython-37-PYTEST.pyc
and
new/dephell_pythons-0.1.12/tests/__pycache__/test_abstract.cpython-37-PYTEST.pyc
differ
Binary files
old/dephell_pythons-0.1.10/tests/__pycache__/test_finder.cpython-37-PYTEST.pyc
and
new/dephell_pythons-0.1.12/tests/__pycache__/test_finder.cpython-37-PYTEST.pyc
differ
Binary files
old/dephell_pythons-0.1.10/tests/__pycache__/test_getters.cpython-37-PYTEST.pyc
and
new/dephell_pythons-0.1.12/tests/__pycache__/test_getters.cpython-37-PYTEST.pyc
differ
Binary files
old/dephell_pythons-0.1.10/tests/__pycache__/test_python.cpython-37-PYTEST.pyc
and
new/dephell_pythons-0.1.12/tests/__pycache__/test_python.cpython-37-PYTEST.pyc
differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_pythons-0.1.10/tests/python3.7
new/dephell_pythons-0.1.12/tests/python3.7
--- old/dephell_pythons-0.1.10/tests/python3.7 1970-01-01 01:00:00.000000000
+0100
+++ new/dephell_pythons-0.1.12/tests/python3.7 2019-04-20 09:45:36.000000000
+0200
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+if [[ $1 = '--version' ]]
+then echo "Python 3.7.0"
+else
+ echo "3.7.0 (default, Dec 24 2018, 12:47:36) "
+ echo "[GCC 5.4.0 20160609]"
+fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_pythons-0.1.10/tests/test_abstract.py
new/dephell_pythons-0.1.12/tests/test_abstract.py
--- old/dephell_pythons-0.1.10/tests/test_abstract.py 1970-01-01
01:00:00.000000000 +0100
+++ new/dephell_pythons-0.1.12/tests/test_abstract.py 2019-04-22
18:47:33.000000000 +0200
@@ -0,0 +1,10 @@
+# project
+from dephell_pythons import Pythons
+
+
+def test_abstract():
+ manager = Pythons(abstract=True)
+ pythons = {'.'.join(map(str, p.version.release[:2])): p for p in manager}
+ assert len({'2.7', '3.5', '3.7'} - set(pythons)) == 0
+ assert pythons['4.0'].abstract is True
+ assert not all(p.abstract for p in manager)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_pythons-0.1.10/tests/test_finder.py
new/dephell_pythons-0.1.12/tests/test_finder.py
--- old/dephell_pythons-0.1.10/tests/test_finder.py 1970-01-01
01:00:00.000000000 +0100
+++ new/dephell_pythons-0.1.12/tests/test_finder.py 2019-04-20
10:19:02.000000000 +0200
@@ -0,0 +1,40 @@
+from shutil import which
+from pathlib import Path
+from dephell_pythons import Finder
+from dephell_pythons._windows import WindowsFinder
+from dephell_pythons._constants import IS_WINDOWS
+
+
+def test_is_python():
+ f = Finder()
+ if not IS_WINDOWS:
+ assert f.is_python(Path('tests', 'python3.7')) is True
+ assert f.is_python(Path('tests', 'python3.5')) is False # doesn't exist
+ assert f.is_python(Path('tests', 'test_finder.py')) is False
+
+
+def test_get_version():
+ if IS_WINDOWS:
+ return
+ f = Finder()
+ assert f.get_version(Path('tests', 'python3.7')) == '3.7.0'
+
+
+def test_get_pythons_real():
+ if IS_WINDOWS:
+ f = WindowsFinder()
+ else:
+ f = Finder()
+ assert len(f.pythons) > 0
+ if not IS_WINDOWS:
+ assert which('python').lower() in [str(p.path).lower() for p in
f.pythons]
+ assert which('python3').lower() in [str(p.path).lower() for p in
f.pythons]
+
+
+def test_get_pythons_fake():
+ if IS_WINDOWS:
+ return
+ f = Finder()
+ pythons = list(f.get_pythons([Path('tests')]))
+ assert len(pythons) == 1
+ assert pythons[0].name == 'python3.7'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_pythons-0.1.10/tests/test_getters.py
new/dephell_pythons-0.1.12/tests/test_getters.py
--- old/dephell_pythons-0.1.10/tests/test_getters.py 1970-01-01
01:00:00.000000000 +0100
+++ new/dephell_pythons-0.1.12/tests/test_getters.py 2019-04-05
21:02:04.000000000 +0200
@@ -0,0 +1,20 @@
+# external
+import pytest
+from packaging.version import Version
+
+# project
+from dephell_pythons import Pythons
+
+
[email protected]('version', [
+ '2.7',
+ '3.0',
+ '3.4',
+ '3.5',
+ '3.6',
+ '3.7',
+])
+def test_get_by_version(version):
+ manager = Pythons(abstract=True)
+ python = manager.get_by_version(Version(version))
+ assert str(python.version).startswith(version)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_pythons-0.1.10/tests/test_python.py
new/dephell_pythons-0.1.12/tests/test_python.py
--- old/dephell_pythons-0.1.10/tests/test_python.py 1970-01-01
01:00:00.000000000 +0100
+++ new/dephell_pythons-0.1.12/tests/test_python.py 2019-04-20
09:45:36.000000000 +0200
@@ -0,0 +1,16 @@
+import sys
+from dephell_pythons import Pythons
+
+
+def test_lib_paths():
+ p = Pythons().current
+ assert len(p.lib_paths) > 2
+ # appveyor makes some hacks for python path
+ libs_found = {path for path in sys.path if 'Scripts' not in path and
'dephell' not in path}
+ libs_real = {str(path) for path in p.lib_paths if 'Scripts' not in
str(path) and 'dephell' not in str(path)}
+ assert libs_found == libs_real
+
+
+def test_lib_path():
+ p = Pythons().current
+ assert 'site-packages' in str(p.lib_path)