Hello community,
here is the log from the commit of package python-metaextract for
openSUSE:Factory checked in at 2017-03-01 23:43:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-metaextract (Old)
and /work/SRC/openSUSE:Factory/.python-metaextract.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-metaextract"
Wed Mar 1 23:43:45 2017 rev:4 rq:461143 version:1.0.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-metaextract/python-metaextract.changes
2017-02-28 23:51:47.942860862 +0100
+++
/work/SRC/openSUSE:Factory/.python-metaextract.new/python-metaextract.changes
2017-03-01 23:43:47.339990685 +0100
@@ -1,0 +2,8 @@
+Tue Feb 28 23:06:08 UTC 2017 - [email protected]
+
+update to version 1.0.0
+ * Allow to specify the used python interpreter
+ * Fix utils import in python3 case
+ * Post release version bump to 1.0.0
+
+-------------------------------------------------------------------
Old:
----
metaextract-0.0.9.tar.gz
New:
----
metaextract-1.0.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-metaextract.spec ++++++
--- /var/tmp/diff_new_pack.OORsiE/_old 2017-03-01 23:43:47.851918489 +0100
+++ /var/tmp/diff_new_pack.OORsiE/_new 2017-03-01 23:43:47.851918489 +0100
@@ -17,7 +17,7 @@
Name: python-metaextract
-Version: 0.0.9
+Version: 1.0.0
Release: 0
Summary: get metadata for python modules
License: Apache-2.0
++++++ metaextract-0.0.9.tar.gz -> metaextract-1.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.9/PKG-INFO
new/metaextract-1.0.0/PKG-INFO
--- old/metaextract-0.0.9/PKG-INFO 2017-02-28 19:51:41.000000000 +0100
+++ new/metaextract-1.0.0/PKG-INFO 2017-03-01 00:03:55.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: metaextract
-Version: 0.0.9
+Version: 1.0.0
Summary: get metadata for python modules
Home-page: http://github.com/toabctl/metaextract
Author: Thomas Bechtold
@@ -48,7 +48,7 @@
.. _`tox`: http://testrun.org/tox
Platform: UNKNOWN
-Classifier: Development Status :: 3 - Alpha
+Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.9/metaextract/__init__.py
new/metaextract-1.0.0/metaextract/__init__.py
--- old/metaextract-0.0.9/metaextract/__init__.py 2017-02-28
19:51:09.000000000 +0100
+++ new/metaextract-1.0.0/metaextract/__init__.py 2017-03-01
00:03:36.000000000 +0100
@@ -15,4 +15,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-__version__ = "0.0.9"
+__version__ = "1.0.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.9/metaextract/cmds.py
new/metaextract-1.0.0/metaextract/cmds.py
--- old/metaextract-0.0.9/metaextract/cmds.py 2016-08-25 17:56:03.000000000
+0200
+++ new/metaextract-1.0.0/metaextract/cmds.py 2017-02-28 23:59:20.000000000
+0100
@@ -19,12 +19,17 @@
import argparse
import json
+import sys
-import utils as meta_utils
+from . import utils as meta_utils
def main():
parser = argparse.ArgumentParser(prog="metaextract")
+ parser.add_argument('--python', type=str, nargs=1,
+ help='path to the python interpreter which is used'
+ 'when calling setup.py. Defaults to %(default)s',
+ default=sys.executable)
parser.add_argument('archive', type=str, nargs=1,
help='filename of the archive')
args = parser.parse_args()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.9/metaextract/utils.py
new/metaextract-1.0.0/metaextract/utils.py
--- old/metaextract-0.0.9/metaextract/utils.py 2017-02-28 19:40:57.000000000
+0100
+++ new/metaextract-1.0.0/metaextract/utils.py 2017-02-28 23:59:20.000000000
+0100
@@ -88,7 +88,7 @@
f.write("# -*- coding: utf-8 -*-\n" + content)
-def _setup_py_run_from_dir(root_dir):
+def _setup_py_run_from_dir(root_dir, py_interpreter):
"""run the extractmeta command via the setup.py in the given root_dir.
the output of extractmeta is json and is stored in a tempfile
which is then read in and returned as data"""
@@ -99,10 +99,8 @@
single_subdir))
# generate a temporary json file which contains the metadata
output_json = tempfile.NamedTemporaryFile()
- # use the same python interpreter the process currently uses
- # TODO: make the interpreter configurable
cmd = "%s setup.py -q --command-packages metaextract " \
- "metaextract -o %s " % (sys.executable, output_json.name)
+ "metaextract -o %s " % (py_interpreter, output_json.name)
try:
subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
except subprocess.CalledProcessError:
@@ -124,13 +122,14 @@
###############################################################################
-def from_archive(archive_filename):
+def from_archive(archive_filename, py_interpreter=sys.executable):
"""extract metadata from a given sdist archive file
:param archive_filename: a sdist archive file
+ :param py_interpreter: The full path to the used python interpreter
:returns: a json blob with metadata
"""
with _extract_to_tempdir(archive_filename) as root_dir:
- data = _setup_py_run_from_dir(root_dir)
+ data = _setup_py_run_from_dir(root_dir, py_interpreter)
return data
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.9/metaextract.egg-info/PKG-INFO
new/metaextract-1.0.0/metaextract.egg-info/PKG-INFO
--- old/metaextract-0.0.9/metaextract.egg-info/PKG-INFO 2017-02-28
19:51:41.000000000 +0100
+++ new/metaextract-1.0.0/metaextract.egg-info/PKG-INFO 2017-03-01
00:03:55.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: metaextract
-Version: 0.0.9
+Version: 1.0.0
Summary: get metadata for python modules
Home-page: http://github.com/toabctl/metaextract
Author: Thomas Bechtold
@@ -48,7 +48,7 @@
.. _`tox`: http://testrun.org/tox
Platform: UNKNOWN
-Classifier: Development Status :: 3 - Alpha
+Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.9/setup.py
new/metaextract-1.0.0/setup.py
--- old/metaextract-0.0.9/setup.py 2017-02-28 19:51:09.000000000 +0100
+++ new/metaextract-1.0.0/setup.py 2017-02-28 23:43:30.000000000 +0100
@@ -38,7 +38,7 @@
cmdclass=metaextract.setup.get_cmdclass(),
tests_require=["flake8", "pytest", "mock"],
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',