Hello community,

here is the log from the commit of package python-dephell-links for 
openSUSE:Factory checked in at 2019-09-13 15:03:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dephell-links (Old)
 and      /work/SRC/openSUSE:Factory/.python-dephell-links.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dephell-links"

Fri Sep 13 15:03:45 2019 rev:2 rq:730647 version:0.1.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-dephell-links/python-dephell-links.changes    
    2019-08-13 13:26:43.657332125 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dephell-links.new.7948/python-dephell-links.changes
      2019-09-13 15:05:10.673258528 +0200
@@ -1,0 +2,6 @@
+Fri Sep 13 09:13:05 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.1.4:
+  * ship tests
+
+-------------------------------------------------------------------

Old:
----
  dephell_links-0.1.3.tar.gz

New:
----
  dephell_links-0.1.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dephell-links.spec ++++++
--- /var/tmp/diff_new_pack.164oGK/_old  2019-09-13 15:05:11.729258304 +0200
+++ /var/tmp/diff_new_pack.164oGK/_new  2019-09-13 15:05:11.733258303 +0200
@@ -12,29 +12,30 @@
 # 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-links
-Version:        0.1.3
+Version:        0.1.4
 Release:        0
-License:        MIT
 Summary:        Dephell library to parse dependency links
-Url:            https://github.com/dephell/dephell-links
+License:        MIT
 Group:          Development/Languages/Python
-Source:         
https://files.pythonhosted.org/packages/source/d/dephell-links/dephell_links-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
+URL:            https://github.com/dephell/dephell_links
+Source:         
https://files.pythonhosted.org/packages/source/d/dephell_links/dephell_links-%{version}.tar.gz
 BuildRequires:  %{python_module base >= 3.5}
 BuildRequires:  %{python_module setuptools}
-# SECTION test requirements
-BuildRequires:  %{python_module attrs}
-# /SECTION
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 Requires:       python-attrs
 BuildArch:      noarch
-
+# SECTION test requirements
+BuildRequires:  %{python_module attrs}
+BuildRequires:  %{python_module pytest}
+# /SECTION
 %python_subpackages
 
 %description
@@ -50,6 +51,9 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+%pytest
+
 %files %{python_files}
 %license LICENSE
 %doc README.md

++++++ dephell_links-0.1.3.tar.gz -> dephell_links-0.1.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_links-0.1.3/PKG-INFO 
new/dephell_links-0.1.4/PKG-INFO
--- old/dephell_links-0.1.3/PKG-INFO    1970-01-01 01:00:00.000000000 +0100
+++ new/dephell_links-0.1.4/PKG-INFO    1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
-Name: dephell_links
-Version: 0.1.3
+Name: dephell-links
+Version: 0.1.4
 Summary: Parse dependency links
 Project-URL: Repository, https://github.com/dephell/dephell_links
 Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_links-0.1.3/dephell_links.egg-info/PKG-INFO 
new/dephell_links-0.1.4/dephell_links.egg-info/PKG-INFO
--- old/dephell_links-0.1.3/dephell_links.egg-info/PKG-INFO     1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell_links-0.1.4/dephell_links.egg-info/PKG-INFO     1970-01-01 
01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
-Name: dephell_links
-Version: 0.1.3
+Name: dephell-links
+Version: 0.1.4
 Summary: Parse dependency links
 Project-URL: Repository, https://github.com/dephell/dephell_links
 Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_links-0.1.3/setup.py 
new/dephell_links-0.1.4/setup.py
--- old/dephell_links-0.1.3/setup.py    2019-05-19 14:52:41.000000000 +0200
+++ new/dephell_links-0.1.4/setup.py    2019-05-23 20:41:16.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_links',
-    version='0.1.3',
+    version='0.1.4',
     description='Parse dependency links',
     python_requires='>=3.5',
     project_urls={'repository': 'https://github.com/dephell/dephell_links'},
Binary files old/dephell_links-0.1.3/tests/__pycache__/__init__.cpython-35.pyc 
and new/dephell_links-0.1.4/tests/__pycache__/__init__.cpython-35.pyc differ
Binary files old/dephell_links-0.1.3/tests/__pycache__/__init__.cpython-37.pyc 
and new/dephell_links-0.1.4/tests/__pycache__/__init__.cpython-37.pyc differ
Binary files 
old/dephell_links-0.1.3/tests/__pycache__/test_parsing.cpython-35-PYTEST.pyc 
and 
new/dephell_links-0.1.4/tests/__pycache__/test_parsing.cpython-35-PYTEST.pyc 
differ
Binary files 
old/dephell_links-0.1.3/tests/__pycache__/test_parsing.cpython-37-PYTEST.pyc 
and 
new/dephell_links-0.1.4/tests/__pycache__/test_parsing.cpython-37-PYTEST.pyc 
differ
Binary files 
old/dephell_links-0.1.3/tests/__pycache__/test_urllink.cpython-37-PYTEST.pyc 
and 
new/dephell_links-0.1.4/tests/__pycache__/test_urllink.cpython-37-PYTEST.pyc 
differ
Binary files 
old/dephell_links-0.1.3/tests/__pycache__/test_vcs.cpython-35-PYTEST.pyc and 
new/dephell_links-0.1.4/tests/__pycache__/test_vcs.cpython-35-PYTEST.pyc differ
Binary files 
old/dephell_links-0.1.3/tests/__pycache__/test_vcs.cpython-37-PYTEST.pyc and 
new/dephell_links-0.1.4/tests/__pycache__/test_vcs.cpython-37-PYTEST.pyc differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_links-0.1.3/tests/test_parsing.py 
new/dephell_links-0.1.4/tests/test_parsing.py
--- old/dephell_links-0.1.3/tests/test_parsing.py       1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell_links-0.1.4/tests/test_parsing.py       2019-04-02 
10:19:36.000000000 +0200
@@ -0,0 +1,16 @@
+# project
+import pytest
+from dephell_links import DirLink, FileLink, URLLink, VCSLink, parse_link
+
+
[email protected]('link_type, url', [
+    (VCSLink, 'https://github.com/r1chardj0n3s/parse.git'),
+    (URLLink, 'https://github.com/divio/django-cms/archive/release/3.4.x.zip'),
+    (FileLink, './tests/test_parsing.py'),
+    (FileLink, './this_file_does_not_exists.py'),
+    (DirLink, '.'),
+])
+def test_parsing(link_type, url):
+    link = parse_link(url)
+    assert isinstance(link, link_type)
+    assert link.short == url
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_links-0.1.3/tests/test_urllink.py 
new/dephell_links-0.1.4/tests/test_urllink.py
--- old/dephell_links-0.1.3/tests/test_urllink.py       1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell_links-0.1.4/tests/test_urllink.py       2019-05-11 
21:15:09.000000000 +0200
@@ -0,0 +1,15 @@
+# project
+import pytest
+from dephell_links import URLLink
+
+
[email protected]('url, name', [
+    ('https://github.com/divio/django-cms/archive/release/3.4.x.zip', 
'django-cms'),
+    
('https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686',
 'pip'),
+    ('https://github.com/orsinium/textdistance/archive/master.zip', 
'textdistance'),
+    
('https://files.pythonhosted.org/packages/00/a0/blabla/textdistance-4.1.2.tar.gz',
 'textdistance'),
+    
('https://github.com/divio/django-cms/archive/release/3.4.x.zip#egg=dephell', 
'dephell'),
+])
+def test_name(url, name):
+    link = URLLink(url)
+    assert link.name == name
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell_links-0.1.3/tests/test_vcs.py 
new/dephell_links-0.1.4/tests/test_vcs.py
--- old/dephell_links-0.1.3/tests/test_vcs.py   1970-01-01 01:00:00.000000000 
+0100
+++ new/dephell_links-0.1.4/tests/test_vcs.py   2019-04-02 10:13:41.000000000 
+0200
@@ -0,0 +1,123 @@
+# project
+import pytest
+from dephell_links import VCSLink
+
+
[email protected]('url, params', [
+    # https
+    (
+        'https://github.com/r1chardj0n3s/parse.git',
+        dict(
+            server='github.com',
+            author='r1chardj0n3s',
+            project='parse',
+            vcs='git',
+            protocol='https',
+        ),
+    ),
+    (
+        'https://gitlab.com/inkscape/inkscape.git',
+        dict(
+            server='gitlab.com',
+            author='inkscape',
+            project='inkscape',
+            vcs='git',
+            protocol='https',
+        ),
+    ),
+    (
+        'https://[email protected]/mnpenner/merge-attrs',
+        dict(
+            server='bitbucket.org',
+            author='mnpenner',
+            project='merge-attrs',
+            vcs='git',
+            protocol='https',
+            user='orsinium',
+        ),
+    ),
+    # ssh
+    (
+        '[email protected]:r1chardj0n3s/parse.git',
+        dict(
+            server='github.com',
+            author='r1chardj0n3s',
+            project='parse',
+            vcs='git',
+            protocol='ssh',
+            user='git',
+        ),
+    ),
+    (
+        '[email protected]:inkscape/inkscape.git',
+        dict(
+            server='gitlab.com',
+            author='inkscape',
+            project='inkscape',
+            vcs='git',
+            protocol='ssh',
+            user='git',
+        ),
+    ),
+    (
+        'ssh://[email protected]/mnpenner/merge-attrs',
+        dict(
+            server='bitbucket.org',
+            author='mnpenner',
+            project='merge-attrs',
+            vcs='git',
+            protocol='ssh',
+            user='hg',
+        ),
+    ),
+    (
+        '[email protected]:atlassian/python-bitbucket.git',
+        dict(
+            server='bitbucket.org',
+            author='atlassian',
+            project='python-bitbucket',
+            vcs='git',
+            protocol='ssh',
+            user='git',
+        ),
+    ),
+    # other info parsing
+    (
+        'hg+https://www.mercurial-scm.org/repo/hello',
+        dict(
+            server='www.mercurial-scm.org',
+            author='repo',
+            project='hello',
+            vcs='hg',
+            protocol='https',
+        ),
+    ),
+    (
+        'ssh://[email protected]/mnpenner/merge-attrs#egg=merger',
+        dict(
+            server='bitbucket.org',
+            author='mnpenner',
+            project='merge-attrs',
+            vcs='git',
+            protocol='ssh',
+            user='hg',
+            name='merger',
+        ),
+    ),
+    (
+        'ssh://[email protected]/mnpenner/[email protected]',
+        dict(
+            server='bitbucket.org',
+            author='mnpenner',
+            project='merge-attrs',
+            vcs='git',
+            protocol='ssh',
+            user='hg',
+            rev='1.19',
+        ),
+    ),
+])
+def test_ssh_github(url, params):
+    link = VCSLink.parse(url)
+    for name, value in params.items():
+        assert getattr(link, name) == value


Reply via email to