mirror of
https://github.com/wassname/pyramid_formalchemy.git
synced 2026-06-27 16:10:40 +08:00
ignore .egg
This commit is contained in:
@@ -11,6 +11,7 @@ docs/modules/
|
||||
include/
|
||||
.installed.cfg
|
||||
*.egg-info
|
||||
*.egg
|
||||
*.swp
|
||||
*.pyc
|
||||
*.pyo
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
[setuptools.file_finders]
|
||||
git=setuptools_git:gitlsfiles
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
setuptools_git
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -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]))
|
||||
Reference in New Issue
Block a user