Hello community,
here is the log from the commit of package python-dephell-shells for
openSUSE:Factory checked in at 2019-09-13 15:03:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dephell-shells (Old)
and /work/SRC/openSUSE:Factory/.python-dephell-shells.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dephell-shells"
Fri Sep 13 15:03:37 2019 rev:2 rq:730643 version:0.1.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-dephell-shells/python-dephell-shells.changes
2019-08-13 13:26:56.981328619 +0200
+++
/work/SRC/openSUSE:Factory/.python-dephell-shells.new.7948/python-dephell-shells.changes
2019-09-13 15:05:07.585259184 +0200
@@ -1,0 +2,6 @@
+Fri Sep 13 09:03:07 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.1.3:
+ * distribute tests
+
+-------------------------------------------------------------------
Old:
----
dephell_shells-0.1.2.tar.gz
New:
----
dephell_shells-0.1.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-dephell-shells.spec ++++++
--- /var/tmp/diff_new_pack.0mH10c/_old 2019-09-13 15:05:08.277259037 +0200
+++ /var/tmp/diff_new_pack.0mH10c/_new 2019-09-13 15:05:08.277259037 +0200
@@ -12,33 +12,34 @@
# 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-shells
-Version: 0.1.2
+Version: 0.1.3
Release: 0
-License: MIT
Summary: Dephell plugin to activate virtual environment for the current
shell
-Url: https://github.com/dephell/dephell_shells
+License: MIT
Group: Development/Languages/Python
-Source:
https://files.pythonhosted.org/packages/source/d/dephell-shells/dephell_shells-%{version}.tar.gz
-BuildRequires: python-rpm-macros
+URL: https://github.com/dephell/dephell_shells
+Source:
https://files.pythonhosted.org/packages/source/d/dephell_shells/dephell_shells-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.5}
BuildRequires: %{python_module setuptools}
-# SECTION test requirements
-BuildRequires: %{python_module attrs}
-BuildRequires: %{python_module pexpect}
-BuildRequires: %{python_module shellingham}
-# /SECTION
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-attrs
Requires: python-pexpect
Requires: python-shellingham
BuildArch: noarch
-
+# SECTION test requirements
+BuildRequires: %{python_module attrs}
+BuildRequires: %{python_module pexpect}
+BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module shellingham}
+# /SECTION
%python_subpackages
%description
@@ -54,6 +55,10 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+# name and path expect the default shell to be bash
+%pytest -k 'not test_name and not test_path'
+
%files %{python_files}
%license LICENSE
%doc README.md
++++++ dephell_shells-0.1.2.tar.gz -> dephell_shells-0.1.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_shells-0.1.2/PKG-INFO
new/dephell_shells-0.1.3/PKG-INFO
--- old/dephell_shells-0.1.2/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/dephell_shells-0.1.3/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
-Name: dephell_shells
-Version: 0.1.2
+Name: dephell-shells
+Version: 0.1.3
Summary: activate virtual environment for current shell
Project-URL: Repository, https://github.com/dephell/dephell_venvs
Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/dephell_shells-0.1.2/dephell_shells.egg-info/PKG-INFO
new/dephell_shells-0.1.3/dephell_shells.egg-info/PKG-INFO
--- old/dephell_shells-0.1.2/dephell_shells.egg-info/PKG-INFO 1970-01-01
01:00:00.000000000 +0100
+++ new/dephell_shells-0.1.3/dephell_shells.egg-info/PKG-INFO 1970-01-01
01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
-Name: dephell_shells
-Version: 0.1.2
+Name: dephell-shells
+Version: 0.1.3
Summary: activate virtual environment for current shell
Project-URL: Repository, https://github.com/dephell/dephell_venvs
Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_shells-0.1.2/setup.py
new/dephell_shells-0.1.3/setup.py
--- old/dephell_shells-0.1.2/setup.py 2019-05-19 14:56:13.000000000 +0200
+++ new/dephell_shells-0.1.3/setup.py 2019-05-23 20:43:22.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_shells',
- version='0.1.2',
+ version='0.1.3',
description='activate virtual environment for current shell',
python_requires='>=3.5',
project_urls={'repository': 'https://github.com/dephell/dephell_venvs'},
Binary files old/dephell_shells-0.1.2/tests/__pycache__/__init__.cpython-37.pyc
and new/dephell_shells-0.1.3/tests/__pycache__/__init__.cpython-37.pyc differ
Binary files
old/dephell_shells-0.1.2/tests/__pycache__/test_manager.cpython-37-PYTEST.pyc
and
new/dephell_shells-0.1.3/tests/__pycache__/test_manager.cpython-37-PYTEST.pyc
differ
Binary files
old/dephell_shells-0.1.2/tests/__pycache__/test_shells.cpython-37-PYTEST.pyc
and
new/dephell_shells-0.1.3/tests/__pycache__/test_shells.cpython-37-PYTEST.pyc
differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_shells-0.1.2/tests/test_manager.py
new/dephell_shells-0.1.3/tests/test_manager.py
--- old/dephell_shells-0.1.2/tests/test_manager.py 1970-01-01
01:00:00.000000000 +0100
+++ new/dephell_shells-0.1.3/tests/test_manager.py 2019-04-19
15:43:24.000000000 +0200
@@ -0,0 +1,17 @@
+from pathlib import Path
+from dephell_shells import Shells
+
+
+def test_name():
+ shells = Shells(bin_path=None)
+ name = shells.shell_name
+ assert type(name) is str
+ assert name in shells.shells
+
+
+def test_path():
+ shells = Shells(bin_path=None)
+ path = shells.shell_path
+ assert isinstance(path, Path)
+ assert path.exists() is True
+ assert path.stem == shells.shell_name
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dephell_shells-0.1.2/tests/test_shells.py
new/dephell_shells-0.1.3/tests/test_shells.py
--- old/dephell_shells-0.1.2/tests/test_shells.py 1970-01-01
01:00:00.000000000 +0100
+++ new/dephell_shells-0.1.3/tests/test_shells.py 2019-04-19
15:43:24.000000000 +0200
@@ -0,0 +1,16 @@
+from pathlib import Path
+from dephell_shells import Shells
+
+
+def test_command():
+ shells = Shells(bin_path=None)
+ for cls in shells.shells.values():
+ shell = cls(bin_path=Path(), shell_path=None)
+ assert isinstance(shell.command, (list, str))
+
+
+def test_args():
+ shells = Shells(bin_path=None)
+ for cls in shells.shells.values():
+ shell = cls(bin_path=Path(), shell_path=None)
+ assert isinstance(shell.args, list)