Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-metaextract for 
openSUSE:Factory checked in at 2022-10-14 15:42:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-metaextract (Old)
 and      /work/SRC/openSUSE:Factory/.python-metaextract.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-metaextract"

Fri Oct 14 15:42:34 2022 rev:18 rq:1010574 version:1.0.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-metaextract/python-metaextract.changes    
2022-09-30 17:58:03.405282254 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-metaextract.new.2275/python-metaextract.changes
  2022-10-14 15:43:54.336055290 +0200
@@ -1,0 +2,16 @@
+Fri Oct 14 05:40:11 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Change preun to postun for update alternatives
+- Remove not needed setup.py patch
+- Change shared files python-sitelib glob to package
+- Update source package
+
+-------------------------------------------------------------------
+Thu Oct 13 15:05:49 UTC 2022 - Thomas Bechtold <thomasbecht...@jpberlin.de>
+
+- Update to Version 1.0.9:
+  * ci: drop python 3.7, add python 3.10
+  * Add initial support for packages without setup.py
+  * Update badge given that github actions are now used
+
+-------------------------------------------------------------------

Old:
----
  1.0.8.tar.gz

New:
----
  1.0.9.tar.gz

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

Other differences:
------------------
++++++ python-metaextract.spec ++++++
--- /var/tmp/diff_new_pack.Qb9jMh/_old  2022-10-14 15:43:54.812056085 +0200
+++ /var/tmp/diff_new_pack.Qb9jMh/_new  2022-10-14 15:43:54.820056098 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-metaextract
-Version:        1.0.8
+Version:        1.0.9
 Release:        0
 Summary:        Module to collect metadata for Python modules
 License:        Apache-2.0
@@ -35,7 +35,7 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 Requires(post): update-alternatives
-Requires(preun):update-alternatives
+Requires(postun):update-alternatives
 %python_subpackages
 
 %description
@@ -47,8 +47,6 @@
 
 %prep
 %setup -q -n metaextract-%{version}
-# https://github.com/toabctl/metaextract/issues/13
-sed -i 's:.pytest-runner.::' setup.py
 
 %build
 %python_build
@@ -62,7 +60,7 @@
 %post
 %python_install_alternative metaextract
 
-%preun
+%postun
 %python_uninstall_alternative metaextract
 
 %check
@@ -73,6 +71,7 @@
 %doc README.rst
 %license LICENSE
 %python_alternative %{_bindir}/metaextract
-%{python_sitelib}/*
+%{python_sitelib}/metaextract
+%{python_sitelib}/metaextract-%{version}*-info
 
 %changelog

++++++ 1.0.8.tar.gz -> 1.0.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metaextract-1.0.8/.github/workflows/ci.yaml 
new/metaextract-1.0.9/.github/workflows/ci.yaml
--- old/metaextract-1.0.8/.github/workflows/ci.yaml     2021-12-08 
14:15:24.000000000 +0100
+++ new/metaextract-1.0.9/.github/workflows/ci.yaml     2022-10-13 
16:50:59.000000000 +0200
@@ -21,7 +21,7 @@
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python: ["2.7", "3.7", "3.8", "3.9"]
+        python: ["2.7", "3.8", "3.9", "3.10"]
 
     steps:
       - uses: actions/checkout@v2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metaextract-1.0.8/README.rst 
new/metaextract-1.0.9/README.rst
--- old/metaextract-1.0.8/README.rst    2021-12-08 14:15:24.000000000 +0100
+++ new/metaextract-1.0.9/README.rst    2022-10-13 16:50:59.000000000 +0200
@@ -1,8 +1,8 @@
 metaextract - get metadata for python modules
 =============================================
 
-.. image:: https://travis-ci.org/toabctl/metaextract.png?branch=master
-           :target: https://travis-ci.org/toabctl/metaextract
+.. image:: 
https://github.com/toabctl/metaextract/actions/workflows/ci.yaml/badge.svg?branch=master
+           :target: https://github.com/toabctl/metaextract/actions
 .. image:: https://readthedocs.org/projects/metaextract/badge/
            :target: http://metaextract.readthedocs.io/en/latest/
            :alt: Documentation Status
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metaextract-1.0.8/metaextract/__init__.py 
new/metaextract-1.0.9/metaextract/__init__.py
--- old/metaextract-1.0.8/metaextract/__init__.py       2021-12-08 
14:15:24.000000000 +0100
+++ new/metaextract-1.0.9/metaextract/__init__.py       2022-10-13 
16:50:59.000000000 +0200
@@ -15,4 +15,4 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-__version__ = "1.0.8"
+__version__ = "1.0.9"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/metaextract-1.0.8/metaextract/tests/fixtures/pyproject/README.md 
new/metaextract-1.0.9/metaextract/tests/fixtures/pyproject/README.md
--- old/metaextract-1.0.8/metaextract/tests/fixtures/pyproject/README.md        
1970-01-01 01:00:00.000000000 +0100
+++ new/metaextract-1.0.9/metaextract/tests/fixtures/pyproject/README.md        
2022-10-13 16:50:59.000000000 +0200
@@ -0,0 +1 @@
+long desc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/metaextract-1.0.8/metaextract/tests/fixtures/pyproject/pyproject.toml 
new/metaextract-1.0.9/metaextract/tests/fixtures/pyproject/pyproject.toml
--- old/metaextract-1.0.8/metaextract/tests/fixtures/pyproject/pyproject.toml   
1970-01-01 01:00:00.000000000 +0100
+++ new/metaextract-1.0.9/metaextract/tests/fixtures/pyproject/pyproject.toml   
2022-10-13 16:50:59.000000000 +0200
@@ -0,0 +1,29 @@
+[build-system]
+requires = ["hatchling>=0.21.0"]
+build-backend = "hatchling.build"
+
+[project]
+requires-python = ">=2.6,!=3.0.*,!=3.1.*,!=3.2.*"
+name = "testpkg"
+version= "1.2.3"
+description = "desc"
+readme = "README.md"
+license = { text = "Apache-2.0" }
+authors = [
+  { name = "?????", email = "aut...@email.com" },
+]
+keywords = ["test", "pkg"]
+classifiers = [
+  "Intended Audience :: Developers",
+]
+dependencies = ["foo", "bar"]
+
+[project.optional-dependencies]
+extra1 = ["ex11", "ex12"]
+extra2 = ["ex21>=3.4", "ex22>=0.11.0,!=0.15.0"]
+
+[project.scripts]
+testpkgp1 = "testpkg:main"
+
+[tool.hatch.build.targets.sdist]
+[tool.hatch.build.targets.wheel]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/metaextract-1.0.8/metaextract/tests/test_metaextract.py 
new/metaextract-1.0.9/metaextract/tests/test_metaextract.py
--- old/metaextract-1.0.8/metaextract/tests/test_metaextract.py 2021-12-08 
14:15:24.000000000 +0100
+++ new/metaextract-1.0.9/metaextract/tests/test_metaextract.py 2022-10-13 
16:50:59.000000000 +0200
@@ -210,9 +210,34 @@
              'tests_require': None,
              'version': '1'}
         ),
+        (
+            "pyproject",
+            {
+                'install_requires': ['bar', 'foo'], 'setup_requires': [],
+                'python_requires': '!=3.0.*,!=3.1.*,!=3.2.*,>=2.6',
+                'entry_points':
+                {
+                    'console_scripts': ['testpkgp1 = testpkg:main']
+                },
+                'extras_require': {
+                    'extra1': ['ex11', 'ex12'],
+                    'extra2': ['ex21>=3.4', 'ex22!=0.15.0,>=0.11.0']
+                },
+                'version': '1.2.3',
+                'name': 'testpkg',
+                'fullname': 'testpkg-1.2.3',
+                'description': 'desc',
+                'long_description': 'long desc\n',
+                'classifiers': ['Intended Audience :: Developers'],
+                'license': 'Apache-2.0',
+            }
+        ),
     ])
     def test_run_setup_py_from_dir(self, tmpdir, monkeypatch,
                                    fixture_name, expected_data):
+        if fixture_name == "pyproject" and sys.version_info < (3, 0):
+            pytest.skip("pyproject.toml is not supported for python2")
+
         # the given fixture name is the directory name in the tests/fixtures
         # dir. copy that fixtures dir to a temp dir and run _setup_py_from_dir
         # PBR_VERSION is needed for the PBR tests because the fixture are not
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metaextract-1.0.8/metaextract/utils.py 
new/metaextract-1.0.9/metaextract/utils.py
--- old/metaextract-1.0.8/metaextract/utils.py  2021-12-08 14:15:24.000000000 
+0100
+++ new/metaextract-1.0.9/metaextract/utils.py  2022-10-13 16:50:59.000000000 
+0200
@@ -95,8 +95,14 @@
     data = {}
     with _enter_single_subdir(root_dir) as single_subdir:
         if not os.path.exists("setup.py"):
-            raise Exception("'setup.py' does not exist in '%s'" % (
-                single_subdir))
+            if not os.path.exists("pyproject.toml"):
+                raise Exception("'setup.py' does not exist in '%s'" % (
+                    single_subdir))
+
+            # Create it for pyproject.toml without setup.py
+            with open("setup.py", "w") as f:
+                f.write("from setuptools import setup\nsetup()\n")
+
         # generate a temporary json file which contains the metadata
         output_json = tempfile.NamedTemporaryFile()
         cmd = "%s setup.py -q --command-packages metaextract " \

Reply via email to