Hello community,
here is the log from the commit of package python3-setuptools_scm for
openSUSE:Factory checked in at 2015-08-31 22:59:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-setuptools_scm (Old)
and /work/SRC/openSUSE:Factory/.python3-setuptools_scm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-setuptools_scm"
Changes:
--------
---
/work/SRC/openSUSE:Factory/python3-setuptools_scm/python3-setuptools_scm.changes
2015-08-21 07:40:36.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python3-setuptools_scm.new/python3-setuptools_scm.changes
2015-08-31 22:59:01.000000000 +0200
@@ -1,0 +2,8 @@
+Sat Aug 15 02:47:19 UTC 2015 - [email protected]
+
+- update to version 1.7.0:
+ * correct the url to github thanks David Szotten
+ * enhance scm not found errors with a note on git tarballs thanks Markus
+ * add support for write_to_template
+
+-------------------------------------------------------------------
Old:
----
setuptools_scm-1.6.0.tar.gz
New:
----
setuptools_scm-1.7.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-setuptools_scm.spec ++++++
--- /var/tmp/diff_new_pack.DIvLul/_old 2015-08-31 22:59:01.000000000 +0200
+++ /var/tmp/diff_new_pack.DIvLul/_new 2015-08-31 22:59:01.000000000 +0200
@@ -17,7 +17,7 @@
Name: python3-setuptools_scm
-Version: 1.6.0
+Version: 1.7.0
Release: 0
Summary: the blessed package to manage your versions by scm tags
License: MIT
++++++ setuptools_scm-1.6.0.tar.gz -> setuptools_scm-1.7.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools_scm-1.6.0/CHANGELOG.rst
new/setuptools_scm-1.7.0/CHANGELOG.rst
--- old/setuptools_scm-1.6.0/CHANGELOG.rst 2015-07-22 23:38:48.000000000
+0200
+++ new/setuptools_scm-1.7.0/CHANGELOG.rst 2015-08-12 23:35:37.000000000
+0200
@@ -1,3 +1,12 @@
+v1.7.0
+======
+
+* correct the url to github
+ thanks David Szotten
+* enhance scm not found errors with a note on git tarballs
+ thanks Markus
+* add support for :code:`write_to_template`
+
v1.6.0
======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools_scm-1.6.0/PKG-INFO
new/setuptools_scm-1.7.0/PKG-INFO
--- old/setuptools_scm-1.6.0/PKG-INFO 2015-07-22 23:38:48.000000000 +0200
+++ new/setuptools_scm-1.7.0/PKG-INFO 2015-08-12 23:37:01.000000000 +0200
@@ -1,8 +1,8 @@
Metadata-Version: 1.1
Name: setuptools_scm
-Version: 1.6.0
+Version: 1.7.0
Summary: the blessed package to manage your versions by scm tags
-Home-page: http://bitbucket.org/pypa/setuptools_scm/
+Home-page: https://github.com/pypa/setuptools_scm/
Author: Ronny Pfannschmidt
Author-email: [email protected]
License: MIT
@@ -128,8 +128,12 @@
.. warning::
- only :code:`*.py` and :code:`*.txt` are supported as extensions
-
+ only :code:`*.py` and :code:`*.txt` have builtin templates,
+ for other extensions it is necessary
+ to provide a :code:`write_to_template`
+ :write_to_template:
+ a newstyle format string thats given the current version as
+ the :code:`version` keyword argument for formatting
To use setuptools_scm in other Python code you can use the
``get_version`` function:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools_scm-1.6.0/README.rst
new/setuptools_scm-1.7.0/README.rst
--- old/setuptools_scm-1.6.0/README.rst 2015-07-22 23:38:48.000000000 +0200
+++ new/setuptools_scm-1.7.0/README.rst 2015-08-12 23:33:07.000000000 +0200
@@ -120,8 +120,12 @@
.. warning::
- only :code:`*.py` and :code:`*.txt` are supported as extensions
-
+ only :code:`*.py` and :code:`*.txt` have builtin templates,
+ for other extensions it is necessary
+ to provide a :code:`write_to_template`
+:write_to_template:
+ a newstyle format string thats given the current version as
+ the :code:`version` keyword argument for formatting
To use setuptools_scm in other Python code you can use the
``get_version`` function:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools_scm-1.6.0/setup.cfg
new/setuptools_scm-1.7.0/setup.cfg
--- old/setuptools_scm-1.6.0/setup.cfg 2015-07-22 23:38:48.000000000 +0200
+++ new/setuptools_scm-1.7.0/setup.cfg 2015-08-12 23:37:01.000000000 +0200
@@ -5,7 +5,7 @@
formats = sdist,bdist_wheel
[egg_info]
+tag_svn_revision = 0
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools_scm-1.6.0/setup.py
new/setuptools_scm-1.7.0/setup.py
--- old/setuptools_scm-1.6.0/setup.py 2015-07-22 23:38:48.000000000 +0200
+++ new/setuptools_scm-1.7.0/setup.py 2015-08-12 23:37:01.000000000 +0200
@@ -60,10 +60,10 @@
arguments = dict(
name='setuptools_scm',
- url='http://bitbucket.org/pypa/setuptools_scm/',
+ url='https://github.com/pypa/setuptools_scm/',
zip_safe=True,
# pass here since entrypints are not yet registred
- version="1.6.0",
+ version="1.7.0",
author='Ronny Pfannschmidt',
author_email='[email protected]',
description=('the blessed package to manage your versions by scm tags'),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools_scm-1.6.0/setuptools_scm/__init__.py
new/setuptools_scm-1.7.0/setuptools_scm/__init__.py
--- old/setuptools_scm-1.6.0/setuptools_scm/__init__.py 2015-07-22
23:38:48.000000000 +0200
+++ new/setuptools_scm-1.7.0/setuptools_scm/__init__.py 2015-08-12
23:31:07.000000000 +0200
@@ -9,12 +9,15 @@
from .version import format_version
from .discover import find_matching_entrypoint
-PYTHON_TEMPLATE = """\
+TEMPLATES = {
+ '.py': """\
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
version = {version!r}
-"""
+""",
+ '.txt': '{version}',
+}
PY3 = sys.version_info > (3,)
string_types = (str,) if PY3 else (str, unicode) # noqa
@@ -24,17 +27,22 @@
ep = find_matching_entrypoint(root, 'setuptools_scm.parse_scm')
if ep:
return ep.load()(root)
- raise LookupError('no scm found for %r' % root)
+ raise LookupError(
+ "setuptools-scm was unable to detect version for %r.\n\n"
+ "Make sure you're not using GitHub's tarballs (or similar ones), as "
+ "those don't contain the necessary metadata. Use PyPI's tarballs "
+ "instead." % root)
-def dump_version(root, version, write_to):
+def dump_version(root, version, write_to, template=None):
if not write_to:
return
target = os.path.normpath(os.path.join(root, write_to))
- if target.endswith('.txt'):
- dump = version
- elif target.endswith('.py'):
- dump = PYTHON_TEMPLATE.format(version=version)
+ ext = os.path.splitext(target)[1]
+ template = template or TEMPLATES.get(ext)
+
+ if template is not None:
+ dump = template.format(version=version)
else:
raise ValueError((
"bad file format: '%s' (of %s) \n"
@@ -49,7 +57,8 @@
def get_version(root='.',
version_scheme='guess-next-dev',
local_scheme='node-and-date',
- write_to=None):
+ write_to=None,
+ write_to_template=None):
root = os.path.abspath(root)
trace('root', repr(root))
@@ -62,5 +71,9 @@
version,
version_scheme=version_scheme,
local_scheme=local_scheme)
- dump_version(root=root, version=version, write_to=write_to)
+ dump_version(
+ root=root,
+ version=version,
+ write_to=write_to,
+ template=write_to_template)
return version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/setuptools_scm-1.6.0/setuptools_scm.egg-info/PKG-INFO
new/setuptools_scm-1.7.0/setuptools_scm.egg-info/PKG-INFO
--- old/setuptools_scm-1.6.0/setuptools_scm.egg-info/PKG-INFO 2015-07-22
23:38:48.000000000 +0200
+++ new/setuptools_scm-1.7.0/setuptools_scm.egg-info/PKG-INFO 2015-08-12
23:37:01.000000000 +0200
@@ -1,8 +1,8 @@
Metadata-Version: 1.1
Name: setuptools-scm
-Version: 1.6.0
+Version: 1.7.0
Summary: the blessed package to manage your versions by scm tags
-Home-page: http://bitbucket.org/pypa/setuptools_scm/
+Home-page: https://github.com/pypa/setuptools_scm/
Author: Ronny Pfannschmidt
Author-email: [email protected]
License: MIT
@@ -128,8 +128,12 @@
.. warning::
- only :code:`*.py` and :code:`*.txt` are supported as extensions
-
+ only :code:`*.py` and :code:`*.txt` have builtin templates,
+ for other extensions it is necessary
+ to provide a :code:`write_to_template`
+ :write_to_template:
+ a newstyle format string thats given the current version as
+ the :code:`version` keyword argument for formatting
To use setuptools_scm in other Python code you can use the
``get_version`` function:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools_scm-1.6.0/tox.ini
new/setuptools_scm-1.7.0/tox.ini
--- old/setuptools_scm-1.6.0/tox.ini 2015-07-22 23:38:48.000000000 +0200
+++ new/setuptools_scm-1.7.0/tox.ini 2015-08-08 07:47:52.000000000 +0200
@@ -23,11 +23,11 @@
flake8 setuptools_scm/ testing/ setup.py
[testenv:check_readme]
+skip_install=True
deps=
-
- pygments
- docutils
+ readme
commands=
+ python setup.py check -r -s
rst2html.py README.rst {envlogdir}/README.html --strict []
[testenv:upload]