| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,9 @@ | |||
| 19 | 19 | with open('requirements.txt') as reqs_file: | |
| 20 | 20 | requirements = reqs_file.read().splitlines() | |
| 21 | 21 | ||
| 22 | + | ||
| 22 | 23 | class build_py(_build_py): | |
| 24 | + | ||
| 23 | 25 | def run(self): | |
| 24 | 26 | init = path.join(self.build_lib, 'git', '__init__.py') | |
| 25 | 27 | if path.exists(init): | |
@@ -30,7 +32,8 @@ def run(self): | |||
| 30 | 32 | ||
| 31 | 33 | ||
| 32 | 34 | class sdist(_sdist): | |
| 33 | - def make_release_tree (self, base_dir, files): | ||
| 35 | + | ||
| 36 | + def make_release_tree(self, base_dir, files): | ||
| 34 | 37 | _sdist.make_release_tree(self, base_dir, files) | |
| 35 | 38 | orig = path.join('git', '__init__.py') | |
| 36 | 39 | assert path.exists(orig), orig | |
@@ -48,7 +51,7 @@ def _stamp_version(filename): | |||
| 48 | 51 | except (IOError, OSError): | |
| 49 | 52 | print >> sys.stderr, "Couldn't find file %s to stamp version" % filename | |
| 50 | 53 | return | |
| 51 | - #END handle error, usually happens during binary builds | ||
| 54 | + # END handle error, usually happens during binary builds | ||
| 52 | 55 | for line in f: | |
| 53 | 56 | if '__version__ =' in line: | |
| 54 | 57 | line = line.replace("'git'", "'%s'" % VERSION) | |
@@ -63,35 +66,37 @@ def _stamp_version(filename): | |||
| 63 | 66 | else: | |
| 64 | 67 | print >> sys.stderr, "WARNING: Couldn't find version line in file %s" % filename | |
| 65 | 68 | ||
| 66 | - install_requires = ['gitdb >= 0.6.0',] | ||
| 67 | - setup(name = "GitPython", | ||
| 68 | - cmdclass={'build_py': build_py, 'sdist': sdist}, | ||
| 69 | - version = VERSION, | ||
| 70 | - description = "Python Git Library", | ||
| 71 | - author = "Sebastian Thiel, Michael Trier", | ||
| 72 | - author_email = "byronimo@gmail.com, mtrier@gmail.com", | ||
| 73 | - url = "http://gitorious.org/projects/git-python/", | ||
| 74 | - packages = find_packages('.'), | ||
| 75 | - py_modules = ['git.'+f[:-3] for f in os.listdir('./git') if f.endswith('.py')], | ||
| 76 | - package_data = {'git.test' : ['fixtures/*']}, | ||
| 77 | - package_dir = {'git':'git'}, | ||
| 78 | - license = "BSD License", | ||
| 79 | - requires=['gitdb (>=0.6.0)'], | ||
| 80 | - install_requires=install_requires, | ||
| 81 | - test_requirements = ['mock', 'nose'] + install_requires, | ||
| 82 | - zip_safe=False, | ||
| 83 | - long_description = """\ | ||
| 69 | + install_requires = ['gitdb >= 0.6.0'] | ||
| 70 | + | ||
| 71 | + setup( | ||
| 72 | + name="GitPython", | ||
| 73 | + cmdclass={'build_py': build_py, 'sdist': sdist}, | ||
| 74 | + version=VERSION, | ||
| 75 | + description="Python Git Library", | ||
| 76 | + author="Sebastian Thiel, Michael Trier", | ||
| 77 | + author_email="byronimo@gmail.com, mtrier@gmail.com", | ||
| 78 | + url="http://gitorious.org/projects/git-python/", | ||
| 79 | + packages=find_packages('.'), | ||
| 80 | + py_modules=['git.'+f[:-3] for f in os.listdir('./git') if f.endswith('.py')], | ||
| 81 | + package_data={'git.test': ['fixtures/*']}, | ||
| 82 | + package_dir={'git': 'git'}, | ||
| 83 | + license="BSD License", | ||
| 84 | + requires=['gitdb (>=0.6.0)'], | ||
| 85 | + install_requires=install_requires, | ||
| 86 | + test_requirements=['mock', 'nose'] + install_requires, | ||
| 87 | + zip_safe=False, | ||
| 88 | + long_description="""\ | ||
| 84 | 89 | GitPython is a python library used to interact with Git repositories""", | |
| 85 | - classifiers=[ | ||
| 86 | - # Picked from | ||
| 87 | - # http://pypi.python.org/pypi?:action=list_classifiers | ||
| 88 | - #"Development Status :: 1 - Planning", | ||
| 89 | - #"Development Status :: 2 - Pre-Alpha", | ||
| 90 | - #"Development Status :: 3 - Alpha", | ||
| 90 | + classifiers=[ | ||
| 91 | + # Picked from | ||
| 92 | + # http://pypi.python.org/pypi?:action=list_classifiers | ||
| 93 | + # "Development Status :: 1 - Planning", | ||
| 94 | + # "Development Status :: 2 - Pre-Alpha", | ||
| 95 | + # "Development Status :: 3 - Alpha", | ||
| 91 | 96 | "Development Status :: 4 - Beta", | |
| 92 | 97 | # "Development Status :: 5 - Production/Stable", | |
| 93 | - #"Development Status :: 6 - Mature", | ||
| 94 | - #"Development Status :: 7 - Inactive", | ||
| 98 | + # "Development Status :: 6 - Mature", | ||
| 99 | + # "Development Status :: 7 - Inactive", | ||
| 95 | 100 | "Environment :: Console", | |
| 96 | 101 | "Intended Audience :: Developers", | |
| 97 | 102 | "License :: OSI Approved :: BSD License", | |
@@ -106,5 +111,5 @@ def _stamp_version(filename): | |||
| 106 | 111 | # "Programming Language :: Python :: 3", | |
| 107 | 112 | # "Programming Language :: Python :: 3.3", | |
| 108 | 113 | # "Programming Language :: Python :: 3.4", | |
| 109 | - ] | ||
| 110 | - ) | ||
| 114 | + ] | ||
| 115 | + ) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments