commit python-dephell-venvs for openSUSE:Factory

2019-11-06 Thread root
Hello community,

here is the log from the commit of package python-dephell-venvs for 
openSUSE:Factory checked in at 2019-11-06 13:55:30

Comparing /work/SRC/openSUSE:Factory/python-dephell-venvs (Old)
 and  /work/SRC/openSUSE:Factory/.python-dephell-venvs.new.2990 (New)


Package is "python-dephell-venvs"

Wed Nov  6 13:55:30 2019 rev:3 rq:742843 version:0.1.17

Changes:

--- 
/work/SRC/openSUSE:Factory/python-dephell-venvs/python-dephell-venvs.changes
2019-09-13 15:05:04.497259841 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dephell-venvs.new.2990/python-dephell-venvs.changes
  2019-11-06 13:55:37.256124890 +0100
@@ -1,0 +2,12 @@
+Fri Oct 25 10:12:46 UTC 2019 - Tomáš Chvátal 
+
+- Add missing dependency on requests
+
+---
+Fri Oct 25 01:59:17 UTC 2019 - John Vandenberg 
+
+- Update to v0.1.17
+  - Use existing python with the same desired major.minor version
+  - Add fallback ensurepip
+
+---

Old:

  dephell_venvs-0.1.16.tar.gz

New:

  dephell_venvs-0.1.17.tar.gz



Other differences:
--
++ python-dephell-venvs.spec ++
--- /var/tmp/diff_new_pack.IcDBLk/_old  2019-11-06 13:55:39.172126967 +0100
+++ /var/tmp/diff_new_pack.IcDBLk/_new  2019-11-06 13:55:39.176126971 +0100
@@ -19,11 +19,10 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:   python-dephell-venvs
-Version:0.1.16
+Version:0.1.17
 Release:0
 Summary:Dephell plugin to manage virtual environments
 License:MIT
-Group:  Development/Languages/Python
 URL:https://github.com/dephell/dephell_venvs
 Source: 
https://files.pythonhosted.org/packages/source/d/dephell_venvs/dephell_venvs-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
@@ -31,11 +30,13 @@
 BuildRequires:  python-rpm-macros
 Requires:   python-attrs
 Requires:   python-dephell-pythons
+Requires:   python-requests
 BuildArch:  noarch
 # SECTION test requirements
 BuildRequires:  %{python_module attrs}
 BuildRequires:  %{python_module dephell-pythons}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module requests}
 # /SECTION
 %python_subpackages
 

++ dephell_venvs-0.1.16.tar.gz -> dephell_venvs-0.1.17.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_venvs-0.1.16/PKG-INFO 
new/dephell_venvs-0.1.17/PKG-INFO
--- old/dephell_venvs-0.1.16/PKG-INFO   1970-01-01 01:00:00.0 +0100
+++ new/dephell_venvs-0.1.17/PKG-INFO   1970-01-01 01:00:00.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: dephell-venvs
-Version: 0.1.16
+Version: 0.1.17
 Summary: Manage virtual environments
 Project-URL: Repository, https://github.com/dephell/dephell_venvs
 Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_venvs-0.1.16/dephell_venvs/__init__.py 
new/dephell_venvs-0.1.17/dephell_venvs/__init__.py
--- old/dephell_venvs-0.1.16/dephell_venvs/__init__.py  2019-04-07 
11:13:43.0 +0200
+++ new/dephell_venvs-0.1.17/dephell_venvs/__init__.py  2019-10-11 
14:46:56.0 +0200
@@ -3,6 +3,8 @@
 from ._venvs import VEnvs
 
 
+__version__ = '0.1.17'
+
 __all__ = [
 'VEnv',
 'VEnvBuilder',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_venvs-0.1.16/dephell_venvs/_builder.py 
new/dephell_venvs-0.1.17/dephell_venvs/_builder.py
--- old/dephell_venvs-0.1.16/dephell_venvs/_builder.py  2019-04-20 
11:09:55.0 +0200
+++ new/dephell_venvs-0.1.17/dephell_venvs/_builder.py  2019-10-11 
14:45:44.0 +0200
@@ -4,13 +4,15 @@
 import sys
 from pathlib import Path
 from types import SimpleNamespace
-from typing import Optional
+from typing import Dict, Optional
 from venv import EnvBuilder
 
 # external
 import attr
 from dephell_pythons import Finder
 
+from ._ensurepip import get_path, native_ensurepip_exists
+
 
 @attr.s()
 class VEnvBuilder(EnvBuilder):
@@ -54,7 +56,15 @@
 for path in paths:
 if finder.get_version(path) == version:
 return str(path)
-raise LookupError('cannot choose python in ' + str(lib_path))
+
+# get from these pythons python with the same major.minor version
+major, minor, *_ = version.split('.')
+for path in paths:
+bmajor, bminor, *_ = finder.get_version(path).split('.')
+if bmajor == major and bminor == minor:
+return str(path)
+
+raise LookupError('cannot choice python in ' + str(lib_path))
 
 

commit python-dephell-venvs for openSUSE:Factory

2019-09-13 Thread root
Hello community,

here is the log from the commit of package python-dephell-venvs for 
openSUSE:Factory checked in at 2019-09-13 15:03:28

Comparing /work/SRC/openSUSE:Factory/python-dephell-venvs (Old)
 and  /work/SRC/openSUSE:Factory/.python-dephell-venvs.new.7948 (New)


Package is "python-dephell-venvs"

Fri Sep 13 15:03:28 2019 rev:2 rq:730638 version:0.1.16

Changes:

--- 
/work/SRC/openSUSE:Factory/python-dephell-venvs/python-dephell-venvs.changes
2019-08-13 13:27:01.429327448 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dephell-venvs.new.7948/python-dephell-venvs.changes
  2019-09-13 15:05:04.497259841 +0200
@@ -1,0 +2,6 @@
+Fri Sep 13 08:58:24 UTC 2019 - Tomáš Chvátal 
+
+- Update to 0.1.16:
+  * minor fixes only
+
+---

Old:

  dephell_venvs-0.1.15.tar.gz

New:

  dephell_venvs-0.1.16.tar.gz



Other differences:
--
++ python-dephell-venvs.spec ++
--- /var/tmp/diff_new_pack.VTxIdT/_old  2019-09-13 15:05:05.365259656 +0200
+++ /var/tmp/diff_new_pack.VTxIdT/_new  2019-09-13 15:05:05.365259656 +0200
@@ -12,30 +12,31 @@
 # 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-venvs
-Version:0.1.15
+Version:0.1.16
 Release:0
-License:MIT
 Summary:Dephell plugin to manage virtual environments
-Url:https://github.com/dephell/dephell_venvs
+License:MIT
 Group:  Development/Languages/Python
-Source: 
https://files.pythonhosted.org/packages/source/d/dephell-venvs/dephell_venvs-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
+URL:https://github.com/dephell/dephell_venvs
+Source: 
https://files.pythonhosted.org/packages/source/d/dephell_venvs/dephell_venvs-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
-# SECTION test requirements
-BuildRequires:  %{python_module attrs}
-BuildRequires:  %{python_module dephell-pythons}
-# /SECTION
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 Requires:   python-attrs
 Requires:   python-dephell-pythons
 BuildArch:  noarch
-
+# SECTION test requirements
+BuildRequires:  %{python_module attrs}
+BuildRequires:  %{python_module dephell-pythons}
+BuildRequires:  %{python_module pytest}
+# /SECTION
 %python_subpackages
 
 %description
@@ -51,6 +52,9 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+%pytest
+
 %files %{python_files}
 %license LICENSE
 %doc README.md

++ dephell_venvs-0.1.15.tar.gz -> dephell_venvs-0.1.16.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_venvs-0.1.15/PKG-INFO 
new/dephell_venvs-0.1.16/PKG-INFO
--- old/dephell_venvs-0.1.15/PKG-INFO   1970-01-01 01:00:00.0 +0100
+++ new/dephell_venvs-0.1.16/PKG-INFO   1970-01-01 01:00:00.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
-Name: dephell_venvs
-Version: 0.1.15
+Name: dephell-venvs
+Version: 0.1.16
 Summary: Manage virtual environments
 Project-URL: Repository, https://github.com/dephell/dephell_venvs
 Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_venvs-0.1.15/dephell_venvs.egg-info/PKG-INFO 
new/dephell_venvs-0.1.16/dephell_venvs.egg-info/PKG-INFO
--- old/dephell_venvs-0.1.15/dephell_venvs.egg-info/PKG-INFO1970-01-01 
01:00:00.0 +0100
+++ new/dephell_venvs-0.1.16/dephell_venvs.egg-info/PKG-INFO1970-01-01 
01:00:00.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
-Name: dephell_venvs
-Version: 0.1.15
+Name: dephell-venvs
+Version: 0.1.16
 Summary: Manage virtual environments
 Project-URL: Repository, https://github.com/dephell/dephell_venvs
 Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_venvs-0.1.15/setup.py 
new/dephell_venvs-0.1.16/setup.py
--- old/dephell_venvs-0.1.15/setup.py   2019-05-19 14:57:48.0 +0200
+++ new/dephell_venvs-0.1.16/setup.py   2019-05-23 20:43:58.0 +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 =