Hello community,
here is the log from the commit of package python3-setuptools-git for
openSUSE:Factory checked in at 2017-02-22 13:54:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-setuptools-git (Old)
and /work/SRC/openSUSE:Factory/.python3-setuptools-git.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-setuptools-git"
Changes:
--------
---
/work/SRC/openSUSE:Factory/python3-setuptools-git/python3-setuptools-git.changes
2016-05-25 21:26:16.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python3-setuptools-git.new/python3-setuptools-git.changes
2017-02-22 13:54:43.962087426 +0100
@@ -1,0 +2,16 @@
+Mon Feb 20 19:55:23 UTC 2017 - [email protected]
+
+- specfile:
+ * update copyright year
+
+- update to version 1.2:
+ * Add ability to get version from git tags
+ (https://github.com/msabramo/setuptools-git/pull/9)
+ * Return early if a directory isn’t managed by git
+ (https://github.com/msabramo/setuptools-git/pull/10)
+ * Support universal wheels
+ (https://github.com/msabramo/setuptools-git/pull/11)
+ * Optimize directory scanning to skip ignored directories
+ (https://github.com/msabramo/setuptools-git/pull/12)
+
+-------------------------------------------------------------------
@@ -7 +22,0 @@
-
Old:
----
setuptools-git-1.1.tar.gz
New:
----
setuptools-git-1.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-setuptools-git.spec ++++++
--- /var/tmp/diff_new_pack.r1jTec/_old 2017-02-22 13:54:44.370029382 +0100
+++ /var/tmp/diff_new_pack.r1jTec/_new 2017-02-22 13:54:44.370029382 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python3-setuptools-git
#
-# 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
@@ -19,7 +19,7 @@
%define mod_name setuptools-git
Name: python3-setuptools-git
-Version: 1.1
+Version: 1.2
Release: 0
Summary: Setuptools revision control system plugin for Git
License: BSD-3-Clause
++++++ setuptools-git-1.1.tar.gz -> setuptools-git-1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-git-1.1/PKG-INFO
new/setuptools-git-1.2/PKG-INFO
--- old/setuptools-git-1.1/PKG-INFO 2014-08-16 11:08:11.000000000 +0200
+++ new/setuptools-git-1.2/PKG-INFO 2017-02-18 01:30:59.000000000 +0100
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: setuptools-git
-Version: 1.1
+Version: 1.2
Summary: Setuptools revision control system plugin for Git
Home-page: https://github.com/wichert/setuptools-git
-Author: Wichert Akkerman
-Author-email: [email protected]
+Author: Marc Abramowitz
+Author-email: [email protected]
License: BSD
Description: About
-----
@@ -15,11 +15,11 @@
inclusion specifications with ``MANIFEST.in``.
A package distribution here refers to a package that you create using
- setup.py, ex::
+ setup.py, for example::
- python setup.py sdist
- python setup.py bdist_rpm
- python setup.py bdist_egg
+ $> python setup.py sdist
+ $> python setup.py bdist_rpm
+ $> python setup.py bdist_egg
This package was formerly known as gitlsfiles. The name change is the
result of an effort by the setuptools plugin developers to provide a
@@ -31,13 +31,13 @@
With easy_install::
- easy_install setuptools_git
+ $> easy_install setuptools_git
Alternative manual installation::
- tar -zxvf setuptools_git-X.Y.Z.tar.gz
- cd setuptools_git-X.Y.Z
- python setup.py install
+ $> tar -zxvf setuptools_git-X.Y.Z.tar.gz
+ $> cd setuptools_git-X.Y.Z
+ $> python setup.py install
Where X.Y.Z is a version number.
@@ -51,12 +51,16 @@
the `distutils manual <http://docs.python.org/dist/dist.html>`_.
To use setuptools instead of distutils, just edit ``setup.py`` and
- change::
+ change:
+
+ .. code-block:: python
from distutils.core import setup
- to::
-
+ to:
+
+ .. code-block:: python
+
from setuptools import setup, find_packages
When Setuptools builds a source package, it always includes all files
@@ -65,21 +69,25 @@
When Setuptools builds a binary package, you can ask it to include all
files tracked by your revision control system, by adding these argument
- to your invocation of `setup()`::
+ to your invocation of `setup()`:
- setup(...,
- packages=find_packages(),
- include_package_data=True,
- ...)
+ .. code-block:: python
+
+ setup(...,
+ packages=find_packages(),
+ include_package_data=True,
+ ...)
which will detect that a directory is a package if it contains a
- ``__init__.py`` file. Alternatively, you can do without ``__init__.py``
- files and tell Setuptools explicitly which packages to process::
+ ``__init__.py`` file. Alternatively, you can do without
``__init__.py``
+ files and tell Setuptools explicitly which packages to process:
+
+ .. code-block:: python
- setup(...,
- packages=["a_package", "another_one"],
- include_package_data=True,
- ...)
+ setup(...,
+ packages=["a_package", "another_one"],
+ include_package_data=True,
+ ...)
This plugin lets setuptools know what files are tracked by your git
revision control tool. Setuptools ships with support for cvs and
@@ -89,28 +97,32 @@
It might happen that you track files with your revision control system
that you don't want to include in your packages. In that case, you
can prevent setuptools from packaging those files with a directive in
- your `MANIFEST.in`, ex::
+ your ``MANIFEST.in``, for example::
exclude .gitignore
recursive-exclude images *.xcf *.blend
- In this example, we prevent setuptools from packaging `.gitignore` and
- the Gimp and Blender source files found under the `images` directory.
+ In this example, we prevent setuptools from packaging ``.gitignore``
and
+ the Gimp and Blender source files found under the ``images`` directory.
Files to exclude from the package can also be listed in the `setup()`
- directive. To do the same as the MANIFEST.in above, do::
+ directive. To do the same as the MANIFEST.in above, do:
+
+ .. code-block:: python
+
+ setup(...,
+ exclude_package_data={'': ['.gitignore'],
+ 'images': ['*.xcf', '*.blend']},
+ ...)
+
+ Here is another example:
+
+ .. code-block:: python
- setup(...,
- exclude_package_data = {'': ['.gitignore'],
- 'images': ['*.xcf', '*.blend']},
- ...)
-
- Here is another example::
-
- setup(...,
- exclude_package_data = {'': ['.gitignore', 'artwork/*'],
- 'model': ['config.py']},
- ...)
+ setup(...,
+ exclude_package_data={'': ['.gitignore', 'artwork/*'],
+ 'model': ['config.py']},
+ ...)
Gotchas
@@ -129,22 +141,39 @@
You can make sure that anyone who clones your git repository and uses
your setup.py file has this plugin by adding a `setup_requires`
- argument::
+ argument:
+
+ .. code-block:: python
+
+ setup(...,
+ setup_requires=[ "setuptools_git >= 0.3", ],
+ ...)
+
+
+ Changes
+ -------
+
+ 1.2; 2017-02-17
+ ~~~~~~~~~~~~~~~~
+ - Add ability to get version from git tags
(https://github.com/msabramo/setuptools-git/pull/9)
+ - Return early if a directory isn't managed by git
(https://github.com/msabramo/setuptools-git/pull/10)
+ - Support universal wheels
(https://github.com/msabramo/setuptools-git/pull/11)
+ - Optimize directory scanning to skip ignored directories
(https://github.com/msabramo/setuptools-git/pull/12)
- setup(...,
- setup_requires = [ "setuptools_git >= 0.3", ],
- ...)
-
References
----------
* `How to distribute Python modules with Distutils
<http://docs.python.org/dist/dist.html>`_
+
* `Setuptools complete manual
<http://peak.telecommunity.com/DevCenter/setuptools>`_
- Thanks to Zooko O'Whielacronx for many improvements to the
documentation.
+ Thanks to `Zooko O'Whielacronx`_ for many improvements to the
documentation.
+
+
+ .. _Zooko O'Whielacronx: https://bitbucket.org/zooko
Keywords: distutils setuptools git
Platform: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-git-1.1/README.rst
new/setuptools-git-1.2/README.rst
--- old/setuptools-git-1.1/README.rst 2014-08-16 11:06:54.000000000 +0200
+++ new/setuptools-git-1.2/README.rst 2017-02-18 01:30:24.000000000 +0100
@@ -7,11 +7,11 @@
inclusion specifications with ``MANIFEST.in``.
A package distribution here refers to a package that you create using
-setup.py, ex::
+setup.py, for example::
- python setup.py sdist
- python setup.py bdist_rpm
- python setup.py bdist_egg
+ $> python setup.py sdist
+ $> python setup.py bdist_rpm
+ $> python setup.py bdist_egg
This package was formerly known as gitlsfiles. The name change is the
result of an effort by the setuptools plugin developers to provide a
@@ -23,13 +23,13 @@
With easy_install::
- easy_install setuptools_git
+ $> easy_install setuptools_git
Alternative manual installation::
- tar -zxvf setuptools_git-X.Y.Z.tar.gz
- cd setuptools_git-X.Y.Z
- python setup.py install
+ $> tar -zxvf setuptools_git-X.Y.Z.tar.gz
+ $> cd setuptools_git-X.Y.Z
+ $> python setup.py install
Where X.Y.Z is a version number.
@@ -43,12 +43,16 @@
the `distutils manual <http://docs.python.org/dist/dist.html>`_.
To use setuptools instead of distutils, just edit ``setup.py`` and
-change::
+change:
+
+.. code-block:: python
from distutils.core import setup
-to::
-
+to:
+
+.. code-block:: python
+
from setuptools import setup, find_packages
When Setuptools builds a source package, it always includes all files
@@ -57,21 +61,25 @@
When Setuptools builds a binary package, you can ask it to include all
files tracked by your revision control system, by adding these argument
-to your invocation of `setup()`::
+to your invocation of `setup()`:
- setup(...,
- packages=find_packages(),
- include_package_data=True,
- ...)
+.. code-block:: python
+
+ setup(...,
+ packages=find_packages(),
+ include_package_data=True,
+ ...)
which will detect that a directory is a package if it contains a
-``__init__.py`` file. Alternatively, you can do without ``__init__.py``
-files and tell Setuptools explicitly which packages to process::
+``__init__.py`` file. Alternatively, you can do without ``__init__.py``
+files and tell Setuptools explicitly which packages to process:
+
+.. code-block:: python
- setup(...,
- packages=["a_package", "another_one"],
- include_package_data=True,
- ...)
+ setup(...,
+ packages=["a_package", "another_one"],
+ include_package_data=True,
+ ...)
This plugin lets setuptools know what files are tracked by your git
revision control tool. Setuptools ships with support for cvs and
@@ -81,28 +89,32 @@
It might happen that you track files with your revision control system
that you don't want to include in your packages. In that case, you
can prevent setuptools from packaging those files with a directive in
-your `MANIFEST.in`, ex::
+your ``MANIFEST.in``, for example::
exclude .gitignore
recursive-exclude images *.xcf *.blend
-In this example, we prevent setuptools from packaging `.gitignore` and
-the Gimp and Blender source files found under the `images` directory.
+In this example, we prevent setuptools from packaging ``.gitignore`` and
+the Gimp and Blender source files found under the ``images`` directory.
Files to exclude from the package can also be listed in the `setup()`
-directive. To do the same as the MANIFEST.in above, do::
+directive. To do the same as the MANIFEST.in above, do:
+
+.. code-block:: python
+
+ setup(...,
+ exclude_package_data={'': ['.gitignore'],
+ 'images': ['*.xcf', '*.blend']},
+ ...)
+
+Here is another example:
+
+.. code-block:: python
- setup(...,
- exclude_package_data = {'': ['.gitignore'],
- 'images': ['*.xcf', '*.blend']},
- ...)
-
-Here is another example::
-
- setup(...,
- exclude_package_data = {'': ['.gitignore', 'artwork/*'],
- 'model': ['config.py']},
- ...)
+ setup(...,
+ exclude_package_data={'': ['.gitignore', 'artwork/*'],
+ 'model': ['config.py']},
+ ...)
Gotchas
@@ -121,19 +133,36 @@
You can make sure that anyone who clones your git repository and uses
your setup.py file has this plugin by adding a `setup_requires`
-argument::
+argument:
+
+.. code-block:: python
+
+ setup(...,
+ setup_requires=[ "setuptools_git >= 0.3", ],
+ ...)
+
+
+Changes
+-------
+
+1.2; 2017-02-17
+~~~~~~~~~~~~~~~~
+ - Add ability to get version from git tags
(https://github.com/msabramo/setuptools-git/pull/9)
+ - Return early if a directory isn't managed by git
(https://github.com/msabramo/setuptools-git/pull/10)
+ - Support universal wheels
(https://github.com/msabramo/setuptools-git/pull/11)
+ - Optimize directory scanning to skip ignored directories
(https://github.com/msabramo/setuptools-git/pull/12)
- setup(...,
- setup_requires = [ "setuptools_git >= 0.3", ],
- ...)
-
References
----------
* `How to distribute Python modules with Distutils
<http://docs.python.org/dist/dist.html>`_
+
* `Setuptools complete manual
<http://peak.telecommunity.com/DevCenter/setuptools>`_
-Thanks to Zooko O'Whielacronx for many improvements to the documentation.
+Thanks to `Zooko O'Whielacronx`_ for many improvements to the documentation.
+
+
+.. _Zooko O'Whielacronx: https://bitbucket.org/zooko
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-git-1.1/setup.cfg
new/setuptools-git-1.2/setup.cfg
--- old/setuptools-git-1.1/setup.cfg 2014-08-16 11:08:11.000000000 +0200
+++ new/setuptools-git-1.2/setup.cfg 2017-02-18 01:30:59.000000000 +0100
@@ -1,5 +1,7 @@
+[bdist_wheel]
+universal = 1
+
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-git-1.1/setup.py
new/setuptools-git-1.2/setup.py
--- old/setuptools-git-1.1/setup.py 2014-08-16 11:07:07.000000000 +0200
+++ new/setuptools-git-1.2/setup.py 2017-02-18 01:06:52.000000000 +0100
@@ -1,12 +1,12 @@
from setuptools import setup, find_packages
-version = '1.1'
+version = '1.2'
setup(
name="setuptools-git",
version=version,
- maintainer='Wichert Akkerman',
- maintainer_email='[email protected]',
+ maintainer='Marc Abramowitz',
+ maintainer_email='[email protected]',
author="Yannick Gingras",
author_email="[email protected]",
url="https://github.com/wichert/setuptools-git",
@@ -35,5 +35,8 @@
entry_points="""
[setuptools.file_finders]
git=setuptools_git:listfiles
+
+ [distutils.setup_keywords]
+ use_vcs_version=setuptools_git:version_calc
"""
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-git-1.1/setuptools_git/__init__.py
new/setuptools-git-1.2/setuptools_git/__init__.py
--- old/setuptools-git-1.1/setuptools_git/__init__.py 2014-08-16
11:06:54.000000000 +0200
+++ new/setuptools-git-1.2/setuptools_git/__init__.py 2017-02-18
01:05:33.000000000 +0100
@@ -18,6 +18,19 @@
from setuptools_git.utils import CalledProcessError
+def version_calc(dist, attr, value):
+ """
+ Handler for parameter to setup(use_vcs_version=value)
+ bool(value) should be true to invoke this plugin.
+ """
+ if attr == 'use_vcs_version' and value:
+ dist.metadata.version = calculate_version()
+
+
+def calculate_version():
+ return check_output(['git', 'describe', '--tags', '--dirty']).strip()
+
+
def ntfsdecode(path):
# We receive the raw bytes from Git and must decode by hand
if sys.version_info >= (3,):
@@ -80,18 +93,34 @@
return res
+def _gitlsdirs(files, prefix_length):
+ # Return directories managed by Git
+ dirs = set()
+ for file in files:
+ dir = posixpath.dirname(file)
+ while len(dir) > prefix_length:
+ dirs.add(dir)
+ dir = posixpath.dirname(dir)
+ return dirs
+
+
def listfiles(dirname=''):
git_files = gitlsfiles(dirname)
+ if not git_files:
+ return
cwd = realpath(dirname or os.curdir)
prefix_length = len(cwd) + 1
+ git_dirs = _gitlsdirs(git_files, prefix_length)
+
if sys.version_info >= (2, 6):
walker = os.walk(cwd, followlinks=True)
else:
walker = os.walk(cwd)
for root, dirs, files in walker:
+ dirs[:] = [x for x in dirs if posix(realpath(join(root, x))) in
git_dirs]
for file in files:
filename = join(root, file)
if posix(realpath(filename)) in git_files:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-git-1.1/setuptools_git/tests.py
new/setuptools-git-1.2/setuptools_git/tests.py
--- old/setuptools-git-1.1/setuptools_git/tests.py 2014-08-16
11:06:54.000000000 +0200
+++ new/setuptools-git-1.2/setuptools_git/tests.py 2017-02-18
01:05:33.000000000 +0100
@@ -61,7 +61,7 @@
def test_at_repo_root_with_subdir(self):
self.create_git_file('root.txt')
- os.mkdir(join(self.directory, 'subdir'))
+ self.create_dir('subdir')
self.create_git_file('subdir', 'entry.txt')
self.assertEqual(
set(self.gitlsfiles(self.directory)),
@@ -70,7 +70,7 @@
def test_at_repo_subdir(self):
self.create_git_file('root.txt')
- os.mkdir(join(self.directory, 'subdir'))
+ self.create_dir('subdir')
self.create_git_file('subdir', 'entry.txt')
self.assertEqual(
set(self.gitlsfiles(join(self.directory, 'subdir'))),
@@ -167,7 +167,7 @@
def test_empty_dirname_in_subdir(self):
self.create_git_file('root.txt')
- os.mkdir(join(self.directory, 'subdir'))
+ self.create_dir('subdir')
self.create_git_file('subdir', 'entry.txt')
os.chdir(join(self.directory, 'subdir'))
self.assertEqual(
@@ -205,7 +205,7 @@
def test_at_repo_root_with_subdir(self):
self.create_git_file('root.txt')
- os.mkdir(join(self.directory, 'subdir'))
+ self.create_dir('subdir')
self.create_git_file('subdir', 'entry.txt')
self.assertEqual(
set(self.listfiles(self.directory)),
@@ -213,7 +213,7 @@
def test_at_repo_subdir(self):
self.create_git_file('root.txt')
- os.mkdir(join(self.directory, 'subdir'))
+ self.create_dir('subdir')
self.create_git_file('subdir', 'entry.txt')
self.assertEqual(
set(self.listfiles(join(self.directory, 'subdir'))),
@@ -309,7 +309,7 @@
def test_empty_dirname_in_subdir(self):
self.create_git_file('root.txt')
- os.mkdir(join(self.directory, 'subdir'))
+ self.create_dir('subdir')
self.create_git_file('subdir', 'entry.txt')
os.chdir(join(self.directory, 'subdir'))
self.assertEqual(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-git-1.1/setuptools_git.egg-info/PKG-INFO
new/setuptools-git-1.2/setuptools_git.egg-info/PKG-INFO
--- old/setuptools-git-1.1/setuptools_git.egg-info/PKG-INFO 2014-08-16
11:08:10.000000000 +0200
+++ new/setuptools-git-1.2/setuptools_git.egg-info/PKG-INFO 2017-02-18
01:30:59.000000000 +0100
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: setuptools-git
-Version: 1.1
+Version: 1.2
Summary: Setuptools revision control system plugin for Git
Home-page: https://github.com/wichert/setuptools-git
-Author: Wichert Akkerman
-Author-email: [email protected]
+Author: Marc Abramowitz
+Author-email: [email protected]
License: BSD
Description: About
-----
@@ -15,11 +15,11 @@
inclusion specifications with ``MANIFEST.in``.
A package distribution here refers to a package that you create using
- setup.py, ex::
+ setup.py, for example::
- python setup.py sdist
- python setup.py bdist_rpm
- python setup.py bdist_egg
+ $> python setup.py sdist
+ $> python setup.py bdist_rpm
+ $> python setup.py bdist_egg
This package was formerly known as gitlsfiles. The name change is the
result of an effort by the setuptools plugin developers to provide a
@@ -31,13 +31,13 @@
With easy_install::
- easy_install setuptools_git
+ $> easy_install setuptools_git
Alternative manual installation::
- tar -zxvf setuptools_git-X.Y.Z.tar.gz
- cd setuptools_git-X.Y.Z
- python setup.py install
+ $> tar -zxvf setuptools_git-X.Y.Z.tar.gz
+ $> cd setuptools_git-X.Y.Z
+ $> python setup.py install
Where X.Y.Z is a version number.
@@ -51,12 +51,16 @@
the `distutils manual <http://docs.python.org/dist/dist.html>`_.
To use setuptools instead of distutils, just edit ``setup.py`` and
- change::
+ change:
+
+ .. code-block:: python
from distutils.core import setup
- to::
-
+ to:
+
+ .. code-block:: python
+
from setuptools import setup, find_packages
When Setuptools builds a source package, it always includes all files
@@ -65,21 +69,25 @@
When Setuptools builds a binary package, you can ask it to include all
files tracked by your revision control system, by adding these argument
- to your invocation of `setup()`::
+ to your invocation of `setup()`:
- setup(...,
- packages=find_packages(),
- include_package_data=True,
- ...)
+ .. code-block:: python
+
+ setup(...,
+ packages=find_packages(),
+ include_package_data=True,
+ ...)
which will detect that a directory is a package if it contains a
- ``__init__.py`` file. Alternatively, you can do without ``__init__.py``
- files and tell Setuptools explicitly which packages to process::
+ ``__init__.py`` file. Alternatively, you can do without
``__init__.py``
+ files and tell Setuptools explicitly which packages to process:
+
+ .. code-block:: python
- setup(...,
- packages=["a_package", "another_one"],
- include_package_data=True,
- ...)
+ setup(...,
+ packages=["a_package", "another_one"],
+ include_package_data=True,
+ ...)
This plugin lets setuptools know what files are tracked by your git
revision control tool. Setuptools ships with support for cvs and
@@ -89,28 +97,32 @@
It might happen that you track files with your revision control system
that you don't want to include in your packages. In that case, you
can prevent setuptools from packaging those files with a directive in
- your `MANIFEST.in`, ex::
+ your ``MANIFEST.in``, for example::
exclude .gitignore
recursive-exclude images *.xcf *.blend
- In this example, we prevent setuptools from packaging `.gitignore` and
- the Gimp and Blender source files found under the `images` directory.
+ In this example, we prevent setuptools from packaging ``.gitignore``
and
+ the Gimp and Blender source files found under the ``images`` directory.
Files to exclude from the package can also be listed in the `setup()`
- directive. To do the same as the MANIFEST.in above, do::
+ directive. To do the same as the MANIFEST.in above, do:
+
+ .. code-block:: python
+
+ setup(...,
+ exclude_package_data={'': ['.gitignore'],
+ 'images': ['*.xcf', '*.blend']},
+ ...)
+
+ Here is another example:
+
+ .. code-block:: python
- setup(...,
- exclude_package_data = {'': ['.gitignore'],
- 'images': ['*.xcf', '*.blend']},
- ...)
-
- Here is another example::
-
- setup(...,
- exclude_package_data = {'': ['.gitignore', 'artwork/*'],
- 'model': ['config.py']},
- ...)
+ setup(...,
+ exclude_package_data={'': ['.gitignore', 'artwork/*'],
+ 'model': ['config.py']},
+ ...)
Gotchas
@@ -129,22 +141,39 @@
You can make sure that anyone who clones your git repository and uses
your setup.py file has this plugin by adding a `setup_requires`
- argument::
+ argument:
+
+ .. code-block:: python
+
+ setup(...,
+ setup_requires=[ "setuptools_git >= 0.3", ],
+ ...)
+
+
+ Changes
+ -------
+
+ 1.2; 2017-02-17
+ ~~~~~~~~~~~~~~~~
+ - Add ability to get version from git tags
(https://github.com/msabramo/setuptools-git/pull/9)
+ - Return early if a directory isn't managed by git
(https://github.com/msabramo/setuptools-git/pull/10)
+ - Support universal wheels
(https://github.com/msabramo/setuptools-git/pull/11)
+ - Optimize directory scanning to skip ignored directories
(https://github.com/msabramo/setuptools-git/pull/12)
- setup(...,
- setup_requires = [ "setuptools_git >= 0.3", ],
- ...)
-
References
----------
* `How to distribute Python modules with Distutils
<http://docs.python.org/dist/dist.html>`_
+
* `Setuptools complete manual
<http://peak.telecommunity.com/DevCenter/setuptools>`_
- Thanks to Zooko O'Whielacronx for many improvements to the
documentation.
+ Thanks to `Zooko O'Whielacronx`_ for many improvements to the
documentation.
+
+
+ .. _Zooko O'Whielacronx: https://bitbucket.org/zooko
Keywords: distutils setuptools git
Platform: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/setuptools-git-1.1/setuptools_git.egg-info/SOURCES.txt
new/setuptools-git-1.2/setuptools_git.egg-info/SOURCES.txt
--- old/setuptools-git-1.1/setuptools_git.egg-info/SOURCES.txt 2014-08-16
11:08:11.000000000 +0200
+++ new/setuptools-git-1.2/setuptools_git.egg-info/SOURCES.txt 2017-02-18
01:30:59.000000000 +0100
@@ -3,6 +3,7 @@
LICENSE.txt
README.rst
TODO.txt
+setup.cfg
setup.py
setuptools_git/__init__.py
setuptools_git/tests.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/setuptools-git-1.1/setuptools_git.egg-info/entry_points.txt
new/setuptools-git-1.2/setuptools_git.egg-info/entry_points.txt
--- old/setuptools-git-1.1/setuptools_git.egg-info/entry_points.txt
2014-08-16 11:08:10.000000000 +0200
+++ new/setuptools-git-1.2/setuptools_git.egg-info/entry_points.txt
2017-02-18 01:30:59.000000000 +0100
@@ -1,4 +1,7 @@
[setuptools.file_finders]
git=setuptools_git:listfiles
+
+ [distutils.setup_keywords]
+ use_vcs_version=setuptools_git:version_calc
\ No newline at end of file