diff --git a/.gitignore b/.gitignore index 015d6a6..72bf353 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ docs/modules/ include/ .installed.cfg *.egg-info +*.egg *.swp *.pyc *.pyo diff --git a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/PKG-INFO b/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/PKG-INFO deleted file mode 100644 index a9475ec..0000000 --- a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/PKG-INFO +++ /dev/null @@ -1,26 +0,0 @@ -Metadata-Version: 1.0 -Name: setuptools-git -Version: 0.4.2 -Summary: Setuptools revision control system plugin for Git -Home-page: UNKNOWN -Author: Yannick Gingras -Author-email: ygingras@ygingras.net -License: Public Domain -Description: - This is a plugin for setup tools that enables Git integration. Once - installed, Setuptools can be told to include in a module distribution - all the files tracked by git. This is an alternative to explicit - inclusion specifications with MANIFEST.in. - - This package was formerly known as gitlsfiles. The name change is the - result of an effort by the setuptools plugin developers to provide a - uniform naming convention. -Platform: UNKNOWN -Classifier: Topic :: Software Development :: Version Control -Classifier: Development Status :: 4 - Beta -Classifier: Intended Audience :: Developers -Classifier: License :: Public Domain -Classifier: Operating System :: OS Independent -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 3 diff --git a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/SOURCES.txt b/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/SOURCES.txt deleted file mode 100644 index 850d264..0000000 --- a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/SOURCES.txt +++ /dev/null @@ -1,11 +0,0 @@ -.gitignore -AUTHORS.txt -README.txt -setup.cfg -setup.py -setuptools_git.py -setuptools_git.egg-info/PKG-INFO -setuptools_git.egg-info/SOURCES.txt -setuptools_git.egg-info/dependency_links.txt -setuptools_git.egg-info/entry_points.txt -setuptools_git.egg-info/top_level.txt \ No newline at end of file diff --git a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/dependency_links.txt b/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/entry_points.txt b/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/entry_points.txt deleted file mode 100644 index 7dbaefa..0000000 --- a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/entry_points.txt +++ /dev/null @@ -1,4 +0,0 @@ - - [setuptools.file_finders] - git=setuptools_git:gitlsfiles - \ No newline at end of file diff --git a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/top_level.txt b/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/top_level.txt deleted file mode 100644 index 639da31..0000000 --- a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -setuptools_git diff --git a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/zip-safe b/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/zip-safe deleted file mode 100644 index 8b13789..0000000 --- a/setuptools_git-0.4.2-py2.6.egg/EGG-INFO/zip-safe +++ /dev/null @@ -1 +0,0 @@ - diff --git a/setuptools_git-0.4.2-py2.6.egg/setuptools_git.py b/setuptools_git-0.4.2-py2.6.egg/setuptools_git.py deleted file mode 100755 index d7d98dd..0000000 --- a/setuptools_git-0.4.2-py2.6.egg/setuptools_git.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env python - -""" -A hook into setuptools for Git. -""" - -import locale -import os -from subprocess import Popen, PIPE -import sys - -if sys.version_info[0] >= 3: - def u(s, encoding): - if not isinstance(s, str): - s = s.decode(encoding) - return s -else: - def u(s, encoding): - return s - -def gitlsfiles(dirname=""): - try: - p = Popen(['git', 'ls-files', dirname], stdout=PIPE, stderr=PIPE) - p.stderr.close() - files = p.stdout.readlines() - except: - # Something went terribly wrong but the setuptools doc says we - # must be strong in the face of danger. We shall not run away - # in panic. - return [] - if p.wait(): - # git chocked - return [] - encoding = locale.getpreferredencoding() - return [u(f.strip(), encoding) for f in files] - -if __name__ == "__main__": - import sys - from pprint import pprint - - if len(sys.argv) != 2: - print("USAGE: %s DIRNAME" % sys.argv[0]) - sys.exit(1) - - pprint(gitlsfiles(sys.argv[1]))