Hello community,
here is the log from the commit of package python-metaextract for
openSUSE:Factory checked in at 2017-02-28 23:51:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-metaextract (Old)
and /work/SRC/openSUSE:Factory/.python-metaextract.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-metaextract"
Tue Feb 28 23:51:47 2017 rev:3 rq:460992 version:0.0.9
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-metaextract/python-metaextract.changes
2016-10-28 10:46:15.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-metaextract.new/python-metaextract.changes
2017-02-28 23:51:47.942860862 +0100
@@ -1,0 +2,14 @@
+Tue Feb 28 18:53:16 UTC 2017 - [email protected]
+
+update to version 0.0.9
+ * Improve tests with extras_require
+ * Fix documentation link in README
+ * Post release version bump to 0.0.9
+ * Support "python_requires"
+ * Use same version for doc and sdist
+ * Add doc badge to README
+ * Use already used python interpreter
+ * Post release version bump to 0.0.8
+ * Use Sphinx to build documentation
+
+-------------------------------------------------------------------
Old:
----
metaextract-0.0.7.tar.gz
New:
----
metaextract-0.0.9.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-metaextract.spec ++++++
--- /var/tmp/diff_new_pack.yWtJXN/_old 2017-02-28 23:51:48.558773930 +0100
+++ /var/tmp/diff_new_pack.yWtJXN/_new 2017-02-28 23:51:48.558773930 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-metaextract
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-metaextract
-Version: 0.0.7
+Version: 0.0.9
Release: 0
Summary: get metadata for python modules
License: Apache-2.0
++++++ metaextract-0.0.7.tar.gz -> metaextract-0.0.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/PKG-INFO
new/metaextract-0.0.9/PKG-INFO
--- old/metaextract-0.0.7/PKG-INFO 2016-08-29 19:39:18.000000000 +0200
+++ new/metaextract-0.0.9/PKG-INFO 2017-02-28 19:51:41.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: metaextract
-Version: 0.0.7
+Version: 0.0.9
Summary: get metadata for python modules
Home-page: http://github.com/toabctl/metaextract
Author: Thomas Bechtold
@@ -10,7 +10,10 @@
=============================================
.. image:: https://travis-ci.org/toabctl/metaextract.png?branch=master
- :target: https://travis-ci.org/toabctl/metaextract
+ :target: https://travis-ci.org/toabctl/metaextract
+ .. image:: https://readthedocs.org/projects/metaextract/badge/
+ :target: http://metaextract.readthedocs.io/en/latest/
+ :alt: Documentation Status
metaextract is a tool to collect metadata about a python module. For
example
you may have a sdist tarball from the `Python Package Index`_ and you
want to
@@ -18,40 +21,9 @@
The tool was first developed in `py2pack`_ but is now it's own module
to be
useful for others, too.
- Installation
- ------------
- To install metaextract from the `Python Package Index`_, simply:
-
- .. code-block:: bash
-
- $ pip install metaextract
-
- Usage
- -----
-
- To extract the metadata for a python module using setup.py, do:
-
- .. code-block:: bash
-
- $ metaextract my-archive-file.tar.gz
-
- This will print a json blob to stdout which contains i.e.
``install_requires``,
- ``extras_require`` and friends extracted from the given archive file.
-
- If you already have some source code available (i.e. a git checkout)
for some
- project you can also run the ``setup.py`` file with the ``metaextract``
- distutils command:
-
- .. code-block:: bash
-
- $ python setup.py --command-packages=metaextract metaextract
-
- This will print the metadata as json. If you want to write the data to
a file, do:
-
- .. code-block:: bash
-
- $ python setup.py --command-packages=metaextract metaextract -o
output-file
-
+ Documentation
+ -------------
+ You can find the documentation on `readthedocs`_.
Hacking and contributing
------------------------
@@ -68,6 +40,7 @@
----
If you run into bugs, you can file them in the `issue tracker`_.
+ .. _`readthedocs`: http://metaextract.readthedocs.io/
.. _`py2pack`: https://pypi.python.org/pypi/py2pack
.. _`issue tracker`: https://github.com/toabctl/metaextract/issues
.. _`Python Package Index`: https://pypi.python.org/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/README.rst
new/metaextract-0.0.9/README.rst
--- old/metaextract-0.0.7/README.rst 2016-08-29 19:39:00.000000000 +0200
+++ new/metaextract-0.0.9/README.rst 2016-10-08 23:27:58.000000000 +0200
@@ -2,7 +2,10 @@
=============================================
.. image:: https://travis-ci.org/toabctl/metaextract.png?branch=master
- :target: https://travis-ci.org/toabctl/metaextract
+ :target: https://travis-ci.org/toabctl/metaextract
+.. image:: https://readthedocs.org/projects/metaextract/badge/
+ :target: http://metaextract.readthedocs.io/en/latest/
+ :alt: Documentation Status
metaextract is a tool to collect metadata about a python module. For example
you may have a sdist tarball from the `Python Package Index`_ and you want to
@@ -10,40 +13,9 @@
The tool was first developed in `py2pack`_ but is now it's own module to be
useful for others, too.
-Installation
-------------
-To install metaextract from the `Python Package Index`_, simply:
-
-.. code-block:: bash
-
- $ pip install metaextract
-
-Usage
------
-
-To extract the metadata for a python module using setup.py, do:
-
-.. code-block:: bash
-
- $ metaextract my-archive-file.tar.gz
-
-This will print a json blob to stdout which contains i.e. ``install_requires``,
-``extras_require`` and friends extracted from the given archive file.
-
-If you already have some source code available (i.e. a git checkout) for some
-project you can also run the ``setup.py`` file with the ``metaextract``
-distutils command:
-
-.. code-block:: bash
-
- $ python setup.py --command-packages=metaextract metaextract
-
-This will print the metadata as json. If you want to write the data to a file,
do:
-
-.. code-block:: bash
-
- $ python setup.py --command-packages=metaextract metaextract -o output-file
-
+Documentation
+-------------
+You can find the documentation on `readthedocs`_.
Hacking and contributing
------------------------
@@ -60,6 +32,7 @@
----
If you run into bugs, you can file them in the `issue tracker`_.
+.. _`readthedocs`: http://metaextract.readthedocs.io/
.. _`py2pack`: https://pypi.python.org/pypi/py2pack
.. _`issue tracker`: https://github.com/toabctl/metaextract/issues
.. _`Python Package Index`: https://pypi.python.org/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/metaextract/__init__.py
new/metaextract-0.0.9/metaextract/__init__.py
--- old/metaextract-0.0.7/metaextract/__init__.py 2016-08-29
19:39:00.000000000 +0200
+++ new/metaextract-0.0.9/metaextract/__init__.py 2017-02-28
19:51:09.000000000 +0100
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (c) 2016, Thomas Bechtold <[email protected]>
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+__version__ = "0.0.9"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/metaextract/metaextract.py
new/metaextract-0.0.9/metaextract/metaextract.py
--- old/metaextract-0.0.7/metaextract/metaextract.py 2016-08-29
19:39:00.000000000 +0200
+++ new/metaextract-0.0.9/metaextract/metaextract.py 2017-02-28
19:40:57.000000000 +0100
@@ -46,8 +46,8 @@
# keep list ordered!
for key in ['data_files', 'entry_points', 'extras_require',
- 'install_requires', 'setup_requires', 'scripts',
- 'tests_require', 'tests_suite']:
+ 'install_requires', 'python_requires', 'setup_requires',
+ 'scripts', 'tests_require', 'tests_suite']:
if hasattr(self.distribution, key):
data[key] = getattr(self.distribution, key)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/metaextract/utils.py
new/metaextract-0.0.9/metaextract/utils.py
--- old/metaextract-0.0.7/metaextract/utils.py 2016-08-29 19:39:00.000000000
+0200
+++ new/metaextract-0.0.9/metaextract/utils.py 2017-02-28 19:40:57.000000000
+0100
@@ -22,6 +22,7 @@
import os
import shutil
import subprocess
+import sys
import tarfile
import tempfile
import zipfile
@@ -98,8 +99,10 @@
single_subdir))
# generate a temporary json file which contains the metadata
output_json = tempfile.NamedTemporaryFile()
- cmd = "python setup.py -q --command-packages metaextract " \
- "metaextract -o %s " % output_json.name
+ # 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)
try:
subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
except subprocess.CalledProcessError:
@@ -122,6 +125,12 @@
###############################################################################
def from_archive(archive_filename):
+ """extract metadata from a given sdist archive file
+
+ :param archive_filename: a sdist archive file
+
+ :returns: a json blob with metadata
+"""
with _extract_to_tempdir(archive_filename) as root_dir:
data = _setup_py_run_from_dir(root_dir)
return data
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/metaextract.egg-info/PKG-INFO
new/metaextract-0.0.9/metaextract.egg-info/PKG-INFO
--- old/metaextract-0.0.7/metaextract.egg-info/PKG-INFO 2016-08-29
19:39:18.000000000 +0200
+++ new/metaextract-0.0.9/metaextract.egg-info/PKG-INFO 2017-02-28
19:51:41.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: metaextract
-Version: 0.0.7
+Version: 0.0.9
Summary: get metadata for python modules
Home-page: http://github.com/toabctl/metaextract
Author: Thomas Bechtold
@@ -10,7 +10,10 @@
=============================================
.. image:: https://travis-ci.org/toabctl/metaextract.png?branch=master
- :target: https://travis-ci.org/toabctl/metaextract
+ :target: https://travis-ci.org/toabctl/metaextract
+ .. image:: https://readthedocs.org/projects/metaextract/badge/
+ :target: http://metaextract.readthedocs.io/en/latest/
+ :alt: Documentation Status
metaextract is a tool to collect metadata about a python module. For
example
you may have a sdist tarball from the `Python Package Index`_ and you
want to
@@ -18,40 +21,9 @@
The tool was first developed in `py2pack`_ but is now it's own module
to be
useful for others, too.
- Installation
- ------------
- To install metaextract from the `Python Package Index`_, simply:
-
- .. code-block:: bash
-
- $ pip install metaextract
-
- Usage
- -----
-
- To extract the metadata for a python module using setup.py, do:
-
- .. code-block:: bash
-
- $ metaextract my-archive-file.tar.gz
-
- This will print a json blob to stdout which contains i.e.
``install_requires``,
- ``extras_require`` and friends extracted from the given archive file.
-
- If you already have some source code available (i.e. a git checkout)
for some
- project you can also run the ``setup.py`` file with the ``metaextract``
- distutils command:
-
- .. code-block:: bash
-
- $ python setup.py --command-packages=metaextract metaextract
-
- This will print the metadata as json. If you want to write the data to
a file, do:
-
- .. code-block:: bash
-
- $ python setup.py --command-packages=metaextract metaextract -o
output-file
-
+ Documentation
+ -------------
+ You can find the documentation on `readthedocs`_.
Hacking and contributing
------------------------
@@ -68,6 +40,7 @@
----
If you run into bugs, you can file them in the `issue tracker`_.
+ .. _`readthedocs`: http://metaextract.readthedocs.io/
.. _`py2pack`: https://pypi.python.org/pypi/py2pack
.. _`issue tracker`: https://github.com/toabctl/metaextract/issues
.. _`Python Package Index`: https://pypi.python.org/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/setup.cfg
new/metaextract-0.0.9/setup.cfg
--- old/metaextract-0.0.7/setup.cfg 2016-08-29 19:39:18.000000000 +0200
+++ new/metaextract-0.0.9/setup.cfg 2017-02-28 19:51:41.000000000 +0100
@@ -9,6 +9,14 @@
tag_date = 0
tag_svn_revision = 0
+[build_sphinx]
+source-dir = doc/source
+build-dir = doc/build
+all_files = 1
+
+[upload_sphinx]
+upload-dir = doc/build/html
+
[wheel]
universal = 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/setup.py
new/metaextract-0.0.9/setup.py
--- old/metaextract-0.0.7/setup.py 2016-08-29 19:39:00.000000000 +0200
+++ new/metaextract-0.0.9/setup.py 2017-02-28 19:51:09.000000000 +0100
@@ -19,12 +19,14 @@
import setuptools
import metaextract.setup
+from metaextract import __version__
+
with open("README.rst", "r") as f:
long_description = f.read()
setuptools.setup(
name="metaextract",
- version="0.0.7",
+ version=__version__,
license="Apache-2.0",
description="get metadata for python modules",
long_description=long_description,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metaextract-0.0.7/tox.ini
new/metaextract-0.0.9/tox.ini
--- old/metaextract-0.0.7/tox.ini 2016-08-29 19:39:00.000000000 +0200
+++ new/metaextract-0.0.9/tox.ini 2016-10-08 22:52:47.000000000 +0200
@@ -20,3 +20,7 @@
[flake8]
ignore =
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
+
+[testenv:docs]
+commands =
+ python setup.py build_sphinx