Hello community,

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

Package is "python-dephell-archive"

Fri Sep 13 15:03:52 2019 rev:2 rq:730651 version:0.1.5

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

Old:
----
  dephell-archive-0.1.4.tar.gz

New:
----
  dephell-archive-0.1.5.tar.gz

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

Other differences:
------------------
++++++ python-dephell-archive.spec ++++++
--- /var/tmp/diff_new_pack.Bcq67t/_old  2019-09-13 15:05:15.033257601 +0200
+++ /var/tmp/diff_new_pack.Bcq67t/_new  2019-09-13 15:05:15.033257601 +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-archive
-Version:        0.1.4
+Version:        0.1.5
 Release:        0
-License:        MIT
 Summary:        Pathlib for archives
-Url:            https://github.com/dephell/dephell_archive
+License:        MIT
 Group:          Development/Languages/Python
+URL:            https://github.com/dephell/dephell_archive
 Source:         
https://files.pythonhosted.org/packages/source/d/dephell-archive/dephell-archive-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
 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-archive-0.1.4.tar.gz -> dephell-archive-0.1.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-archive-0.1.4/PKG-INFO 
new/dephell-archive-0.1.5/PKG-INFO
--- old/dephell-archive-0.1.4/PKG-INFO  1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/PKG-INFO  1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: dephell-archive
-Version: 0.1.4
+Version: 0.1.5
 Summary: pathlib for archives
 Project-URL: Repository, https://github.com/dephell/dephell_archive
 Author: Gram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-archive-0.1.4/dephell-archive.egg-info/PKG-INFO 
new/dephell-archive-0.1.5/dephell-archive.egg-info/PKG-INFO
--- old/dephell-archive-0.1.4/dephell-archive.egg-info/PKG-INFO 1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/dephell-archive.egg-info/PKG-INFO 1970-01-01 
01:00:00.000000000 +0100
@@ -1,82 +0,0 @@
-Metadata-Version: 2.1
-Name: dephell-archive
-Version: 0.1.4
-Summary: pathlib for archives
-Project-URL: Repository, https://github.com/dephell/dephell_archive
-Author: Gram
-Author-email: [email protected]
-License: MIT
-Requires-Python: >=3.5
-Keywords: dephell,pathlib,archive,tar,zip,wheel,sdist
-Classifier: Development Status :: 4 - Beta
-Classifier: Environment :: Console
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: MIT License
-Classifier: Programming Language :: Python
-Classifier: Topic :: Software Development :: Libraries :: Python Modules
-Classifier: Topic :: System :: Archiving :: Packaging
-Classifier: Topic :: System :: Archiving
-Classifier: Topic :: System :: Filesystems
-Classifier: Programming Language :: Python :: 3.5
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
-Classifier: Programming Language :: Python :: Implementation :: CPython
-Classifier: Programming Language :: Python :: Implementation :: PyPy
-Classifier: Operating System :: MacOS
-Classifier: Operating System :: Microsoft :: Windows
-Classifier: Operating System :: Unix
-
-
-DepHell Archive
-===============
-
-
-.. image:: https://travis-ci.org/dephell/dephell_archive.svg?branch=master
-   :target: https://travis-ci.org/dephell/dephell_archive
-   :alt: travis
-
-
-.. image:: 
https://ci.appveyor.com/api/projects/status/github/dephell/dephell_archive?svg=true
-   :target: https://ci.appveyor.com/project/orsinium/dephell-archive
-   :alt: appveyor
-
-
-.. image:: https://img.shields.io/pypi/l/dephell-archive.svg
-   :target: https://github.com/dephell/dephell_archive/blob/master/LICENSE
-   :alt: MIT License
-
-
-Module to work with files and directories in archive in `pathlib 
<https://docs.python.org/3/library/pathlib.html>`_ style.
-
-
-* **Goal:** provide the same interface as ``pathlib.Path`` for archives.
-* **State:** partially implemented. Need to implement more methods.
-
-Installation
-------------
-
-Install from `PyPI <https://pypi.org/project/dephell-archive/>`_\ :
-
-.. code-block:: bash
-
-   python3 -m pip install --user dephell_archive
-
-Usage
------
-
-.. code-block:: python
-
-   from pathlib import Path
-   from tempfile import TemporaryDirectory
-
-   from dephell_archive import ArchivePath
-
-   with TemporaryDirectory() as cache:
-     path = ArchivePath(
-       archive_path=Path('tests', 'requirements', 'wheel.whl'),
-       cache_path=Path(cache),
-     )
-     subpath = path / 'dephell' / '__init__.py'
-     with subpath.open() as stream:
-       content = stream.read()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-archive-0.1.4/dephell-archive.egg-info/SOURCES.txt 
new/dephell-archive-0.1.5/dephell-archive.egg-info/SOURCES.txt
--- old/dephell-archive-0.1.4/dephell-archive.egg-info/SOURCES.txt      
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/dephell-archive.egg-info/SOURCES.txt      
1970-01-01 01:00:00.000000000 +0100
@@ -1,8 +0,0 @@
-README.md
-README.rst
-setup.cfg
-setup.py
-dephell_archive/_path.py
-dephell_archive/_glob.py
-dephell_archive/__init__.py
-dephell_archive/_stream.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-archive-0.1.4/dephell-archive.egg-info/requires.txt 
new/dephell-archive-0.1.5/dephell-archive.egg-info/requires.txt
--- old/dephell-archive-0.1.4/dephell-archive.egg-info/requires.txt     
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/dephell-archive.egg-info/requires.txt     
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-attrs
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-archive-0.1.4/dephell-archive.egg-info/top_level.txt 
new/dephell-archive-0.1.5/dephell-archive.egg-info/top_level.txt
--- old/dephell-archive-0.1.4/dephell-archive.egg-info/top_level.txt    
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/dephell-archive.egg-info/top_level.txt    
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-dephell_archive
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-archive-0.1.4/dephell_archive/__init__.py 
new/dephell-archive-0.1.5/dephell_archive/__init__.py
--- old/dephell-archive-0.1.4/dephell_archive/__init__.py       2019-05-19 
14:50:04.000000000 +0200
+++ new/dephell-archive-0.1.5/dephell_archive/__init__.py       2019-05-23 
20:40:23.000000000 +0200
@@ -1,7 +1,7 @@
 from ._path import ArchivePath
 from ._stream import ArchiveStream
 
-__version__ = '0.1.4'
+__version__ = '0.1.5'
 __author__ = 'Gram (@orsinium)'
 __license__ = 'MIT'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-archive-0.1.4/dephell_archive.egg-info/PKG-INFO 
new/dephell-archive-0.1.5/dephell_archive.egg-info/PKG-INFO
--- old/dephell-archive-0.1.4/dephell_archive.egg-info/PKG-INFO 1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/dephell_archive.egg-info/PKG-INFO 1970-01-01 
01:00:00.000000000 +0100
@@ -0,0 +1,82 @@
+Metadata-Version: 2.1
+Name: dephell-archive
+Version: 0.1.5
+Summary: pathlib for archives
+Project-URL: Repository, https://github.com/dephell/dephell_archive
+Author: Gram
+Author-email: [email protected]
+License: MIT
+Requires-Python: >=3.5
+Keywords: dephell,pathlib,archive,tar,zip,wheel,sdist
+Classifier: Development Status :: 4 - Beta
+Classifier: Environment :: Console
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python
+Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Classifier: Topic :: System :: Archiving :: Packaging
+Classifier: Topic :: System :: Archiving
+Classifier: Topic :: System :: Filesystems
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
+Classifier: Operating System :: MacOS
+Classifier: Operating System :: Microsoft :: Windows
+Classifier: Operating System :: Unix
+
+
+DepHell Archive
+===============
+
+
+.. image:: https://travis-ci.org/dephell/dephell_archive.svg?branch=master
+   :target: https://travis-ci.org/dephell/dephell_archive
+   :alt: travis
+
+
+.. image:: 
https://ci.appveyor.com/api/projects/status/github/dephell/dephell_archive?svg=true
+   :target: https://ci.appveyor.com/project/orsinium/dephell-archive
+   :alt: appveyor
+
+
+.. image:: https://img.shields.io/pypi/l/dephell-archive.svg
+   :target: https://github.com/dephell/dephell_archive/blob/master/LICENSE
+   :alt: MIT License
+
+
+Module to work with files and directories in archive in `pathlib 
<https://docs.python.org/3/library/pathlib.html>`_ style.
+
+
+* **Goal:** provide the same interface as ``pathlib.Path`` for archives.
+* **State:** partially implemented. Need to implement more methods.
+
+Installation
+------------
+
+Install from `PyPI <https://pypi.org/project/dephell-archive/>`_\ :
+
+.. code-block:: bash
+
+   python3 -m pip install --user dephell_archive
+
+Usage
+-----
+
+.. code-block:: python
+
+   from pathlib import Path
+   from tempfile import TemporaryDirectory
+
+   from dephell_archive import ArchivePath
+
+   with TemporaryDirectory() as cache:
+     path = ArchivePath(
+       archive_path=Path('tests', 'requirements', 'wheel.whl'),
+       cache_path=Path(cache),
+     )
+     subpath = path / 'dephell' / '__init__.py'
+     with subpath.open() as stream:
+       content = stream.read()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-archive-0.1.4/dephell_archive.egg-info/SOURCES.txt 
new/dephell-archive-0.1.5/dephell_archive.egg-info/SOURCES.txt
--- old/dephell-archive-0.1.4/dephell_archive.egg-info/SOURCES.txt      
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/dephell_archive.egg-info/SOURCES.txt      
1970-01-01 01:00:00.000000000 +0100
@@ -0,0 +1,8 @@
+README.md
+README.rst
+setup.cfg
+setup.py
+dephell_archive/_path.py
+dephell_archive/_glob.py
+dephell_archive/__init__.py
+dephell_archive/_stream.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-archive-0.1.4/dephell_archive.egg-info/requires.txt 
new/dephell-archive-0.1.5/dephell_archive.egg-info/requires.txt
--- old/dephell-archive-0.1.4/dephell_archive.egg-info/requires.txt     
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/dephell_archive.egg-info/requires.txt     
1970-01-01 01:00:00.000000000 +0100
@@ -0,0 +1 @@
+attrs
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dephell-archive-0.1.4/dephell_archive.egg-info/top_level.txt 
new/dephell-archive-0.1.5/dephell_archive.egg-info/top_level.txt
--- old/dephell-archive-0.1.4/dephell_archive.egg-info/top_level.txt    
1970-01-01 01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/dephell_archive.egg-info/top_level.txt    
1970-01-01 01:00:00.000000000 +0100
@@ -0,0 +1 @@
+dephell_archive
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-archive-0.1.4/setup.py 
new/dephell-archive-0.1.5/setup.py
--- old/dephell-archive-0.1.4/setup.py  2019-05-19 14:50:50.000000000 +0200
+++ new/dephell-archive-0.1.5/setup.py  2019-05-23 20:40:25.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-archive',
-    version='0.1.4',
+    version='0.1.5',
     description='pathlib for archives',
     python_requires='>=3.5',
     project_urls={'repository': 'https://github.com/dephell/dephell_archive'},
Binary files 
old/dephell-archive-0.1.4/tests/__pycache__/__init__.cpython-37.pyc and 
new/dephell-archive-0.1.5/tests/__pycache__/__init__.cpython-37.pyc differ
Binary files 
old/dephell-archive-0.1.4/tests/__pycache__/test_glob.cpython-37-PYTEST.pyc and 
new/dephell-archive-0.1.5/tests/__pycache__/test_glob.cpython-37-PYTEST.pyc 
differ
Binary files 
old/dephell-archive-0.1.4/tests/__pycache__/test_path.cpython-37-PYTEST.pyc and 
new/dephell-archive-0.1.5/tests/__pycache__/test_path.cpython-37-PYTEST.pyc 
differ
Binary files old/dephell-archive-0.1.4/tests/requirements/sdist.tar.gz and 
new/dephell-archive-0.1.5/tests/requirements/sdist.tar.gz differ
Binary files old/dephell-archive-0.1.4/tests/requirements/wheel.whl and 
new/dephell-archive-0.1.5/tests/requirements/wheel.whl differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-archive-0.1.4/tests/test_glob.py 
new/dephell-archive-0.1.5/tests/test_glob.py
--- old/dephell-archive-0.1.4/tests/test_glob.py        1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/tests/test_glob.py        2019-04-19 
10:04:50.000000000 +0200
@@ -0,0 +1,41 @@
+# external
+import pytest
+
+# project
+from dephell_archive._glob import glob_path
+
+
[email protected]('path, pattern, ok', [
+    ('/lol/', '/lol/', True),
+    ('/lol/', '/lal/', False),
+
+    ('lol', '/lol/', True),
+    ('lol', '/lal/', False),
+
+    ('/lol/', '/l*', True),
+    ('/tol/', '/l*', False),
+    ('l', '/l*', True),
+    ('lal', '/l*t', False),
+
+    ('lol/lal', '*/lal', True),
+
+    ('lol/lal', '**/lal', True),
+    ('lol/lal', 'lol/**', True),
+    ('lol/lal', 'lal/**', False),
+
+    ('lol/lal', '*/lal', True),
+    ('lol/lal/kek', '*/lal', False),
+    ('lol/lal/kek', '*/kek', False),
+    ('lol/lal/kek', '*/lal/*', True),
+    ('lol/lal/kek', '**/kek', True),
+
+    ('lol.egg', '*.egg', True),
+    ('lol/lal.egg', '*.egg', False),
+    ('lol/lal/kek.egg', '*.egg', False),
+
+    ('lol', '*/*.egg', False),
+    ('lol/lal.egg', '*/*.egg', True),
+    ('lol/lal/kek.egg', '*/*.egg', False),
+])
+def test_glob_path(path, pattern, ok):
+    assert glob_path(path=path, pattern=pattern) is ok
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dephell-archive-0.1.4/tests/test_path.py 
new/dephell-archive-0.1.5/tests/test_path.py
--- old/dephell-archive-0.1.4/tests/test_path.py        1970-01-01 
01:00:00.000000000 +0100
+++ new/dephell-archive-0.1.5/tests/test_path.py        2019-04-19 
10:04:50.000000000 +0200
@@ -0,0 +1,68 @@
+# built-in
+from pathlib import Path
+
+# project
+from dephell_archive import ArchivePath
+
+
+def test_open_zip(tmpdir):
+    path = ArchivePath(
+        archive_path=Path('tests', 'requirements', 'wheel.whl'),
+        cache_path=Path(str(tmpdir)),
+    )
+    subpath = path / 'dephell' / '__init__.py'
+    with subpath.open() as stream:
+        content = stream.read()
+    assert 'from .controllers' in content
+
+
+def test_open_tar_gz(tmpdir):
+    path = ArchivePath(
+        archive_path=Path('tests', 'requirements', 'sdist.tar.gz'),
+        cache_path=Path(str(tmpdir)),
+    )
+    subpath = path / 'dephell-0.2.0' / 'setup.py'
+    with subpath.open() as stream:
+        content = stream.read()
+    assert 'from setuptools import' in content
+
+
+def test_glob_zip(tmpdir):
+    path = ArchivePath(
+        archive_path=Path('tests', 'requirements', 'wheel.whl'),
+        cache_path=Path(str(tmpdir)),
+    )
+    paths = list(path.glob('*/__init__.py'))
+    assert len(paths) == 1
+    assert paths[0].as_posix() == 'dephell/__init__.py'
+
+
+def test_glob_tar(tmpdir):
+    path = ArchivePath(
+        archive_path=Path('tests', 'requirements', 'sdist.tar.gz'),
+        cache_path=Path(str(tmpdir)),
+    )
+    paths = list(path.glob('*/setup.py'))
+    assert len(paths) == 1
+    assert paths[0].as_posix() == 'dephell-0.2.0/setup.py'
+
+
+def test_glob_dir(tmpdir):
+    path = ArchivePath(
+        archive_path=Path('tests', 'requirements', 'sdist.tar.gz'),
+        cache_path=Path(str(tmpdir)),
+    )
+    paths = list(path.glob('dephell-*/'))
+    assert len(paths) == 1
+
+
+def test_iterdir(tmpdir):
+    path = ArchivePath(
+        archive_path=Path('tests', 'requirements', 'sdist.tar.gz'),
+        cache_path=Path(str(tmpdir)),
+    )
+    paths = [str(subpath) for subpath in path.iterdir(recursive=True)]
+
+    for path in paths:
+        assert paths.count(path) == 1, 'duplicate dir: ' + path
+    assert 'dephell-0.2.0' in paths


Reply via email to