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 <tchva...@suse.com> + +- 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.000000000 +0100 +++ new/dephell_venvs-0.1.16/PKG-INFO 1970-01-01 01:00:00.000000000 +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-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/dephell_venvs-0.1.16/dephell_venvs.egg-info/PKG-INFO 1970-01-01 01:00:00.000000000 +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.000000000 +0200 +++ new/dephell_venvs-0.1.16/setup.py 2019-05-23 20:43:58.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_venvs', - version='0.1.15', + version='0.1.16', description='Manage virtual environments', python_requires='>=3.5', project_urls={'repository': 'https://github.com/dephell/dephell_venvs'}, Binary files old/dephell_venvs-0.1.15/tests/__pycache__/__init__.cpython-35.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/__init__.cpython-35.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/__init__.cpython-37.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/__init__.cpython-37.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/__init__.pypy3-70.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/__init__.pypy3-70.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/conftest.cpython-35-PYTEST.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/conftest.cpython-35-PYTEST.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/conftest.cpython-37-PYTEST.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/conftest.cpython-37-PYTEST.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/conftest.pypy3-70-PYTEST.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/conftest.pypy3-70-PYTEST.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/test_venv.cpython-35-PYTEST.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/test_venv.cpython-35-PYTEST.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/test_venv.cpython-37-PYTEST.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/test_venv.cpython-37-PYTEST.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/test_venv.pypy3-70-PYTEST.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/test_venv.pypy3-70-PYTEST.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/test_venvs.cpython-37-PYTEST.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/test_venvs.cpython-37-PYTEST.pyc differ Binary files old/dephell_venvs-0.1.15/tests/__pycache__/test_venvs.pypy3-70-PYTEST.pyc and new/dephell_venvs-0.1.16/tests/__pycache__/test_venvs.pypy3-70-PYTEST.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dephell_venvs-0.1.15/tests/conftest.py new/dephell_venvs-0.1.16/tests/conftest.py --- old/dephell_venvs-0.1.15/tests/conftest.py 1970-01-01 01:00:00.000000000 +0100 +++ new/dephell_venvs-0.1.16/tests/conftest.py 2019-04-07 11:27:44.000000000 +0200 @@ -0,0 +1,13 @@ +import shutil +from pathlib import Path +import pytest + + +@pytest.fixture() +def temp_path(tmp_path: Path): + for path in tmp_path.iterdir(): + if path.is_file(): + path.unlink() + else: + shutil.rmtree(str(path)) + yield tmp_path diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dephell_venvs-0.1.15/tests/test_venv.py new/dephell_venvs-0.1.16/tests/test_venv.py --- old/dephell_venvs-0.1.15/tests/test_venv.py 1970-01-01 01:00:00.000000000 +0100 +++ new/dephell_venvs-0.1.16/tests/test_venv.py 2019-04-19 08:10:23.000000000 +0200 @@ -0,0 +1,20 @@ +from dephell_venvs import VEnv + + +def test_create(temp_path): + venv = VEnv(path=temp_path) + assert venv.exists() is False + assert venv.lib_path is None + assert venv.bin_path is None + assert venv.python_path is None + + venv.create() + + assert venv.exists() is True + assert venv.lib_path.exists() + assert venv.bin_path.exists() + assert (venv.bin_path / 'pip').exists() or (venv.bin_path / 'pip.exe').exists() + assert venv.python_path.exists() + + venv.destroy() + assert venv.exists() is False diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dephell_venvs-0.1.15/tests/test_venvs.py new/dephell_venvs-0.1.16/tests/test_venvs.py --- old/dephell_venvs-0.1.15/tests/test_venvs.py 1970-01-01 01:00:00.000000000 +0100 +++ new/dephell_venvs-0.1.16/tests/test_venvs.py 2019-04-14 21:17:35.000000000 +0200 @@ -0,0 +1,27 @@ +from dephell_venvs import VEnvs + + +def test_get(temp_path): + venvs = VEnvs(path=temp_path / 'venvs' / '{project}' / '{env}') + (temp_path / 'papa').mkdir() + venv = venvs.get(project_path=temp_path / 'papa', env='emeritus') + assert str(venv.path) == str(temp_path / 'venvs' / 'papa' / 'emeritus') + + +def test_get_by_name(temp_path): + venvs = VEnvs(path=temp_path / 'venvs' / '{project}' / '{env}') + venv = venvs.get_by_name(name='papa') + assert str(venv.path) == str(temp_path / 'venvs' / 'papa') + + +def test_iter(temp_path): + venvs = VEnvs(path=temp_path / 'venvs' / '{project}') + + (temp_path / 'papa').mkdir() + venv1 = venvs.get(project_path=temp_path / 'papa', env='emeritus') + venv1.create() + + venv2 = venvs.get_by_name(name='ghost') + venv2.create() + + assert {str(venv.path) for venv in venvs} == {str(venv1.path), str(venv2.path)}