forked from pool/git-deps
Matej Cepl
db56bdb965
- Fix setup.py to correctly identify the project packages git_deps
and git_deps/listener. These were not being packaged and as a
result the git-deps command was simply failing
- Fix issue with unbuffered text I/O under python3, as identified in
6beebe034b
I couldn't make sense of the "test" which accompanies the source code. i think it's out of date, so I didn't add any tests
OBS-URL: https://build.opensuse.org/request/show/844902
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git-deps?expand=0&rev=4
69 lines
2.5 KiB
Diff
69 lines
2.5 KiB
Diff
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -8,21 +8,50 @@
|
|
http://pyscaffold.readthedocs.org/
|
|
"""
|
|
|
|
+import os
|
|
import sys
|
|
from setuptools import setup
|
|
|
|
+def read(fname):
|
|
+ with open(os.path.join(os.path.dirname(__file__), fname)) as inf:
|
|
+ return "\n" + inf.read().replace("\r\n", "\n")
|
|
|
|
def setup_package():
|
|
needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
|
|
sphinx = ['sphinx'] if needs_sphinx else []
|
|
setup(
|
|
+ name = "git-deps",
|
|
+ description = "automatically detect dependencies between git commits",
|
|
+ author = "Adam Spiers",
|
|
+ author_email = "git@adamspiers.org",
|
|
+ license = "GPL-2+",
|
|
+ url = "https://github.com/aspiers/git-deps",
|
|
+ long_description = read("README.md"),
|
|
+ classifiers = [
|
|
+ "Development Status :: 4 - Beta",
|
|
+ "Environment :: Console",
|
|
+ "Environment :: Web Environment",
|
|
+ "Framework :: Flask",
|
|
+ "Intended Audience :: Developers",
|
|
+ "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
|
|
+ "Natural Language :: English",
|
|
+ "Operating System :: OS Independent",
|
|
+ "Programming Language :: Python",
|
|
+ "Topic :: Software Development :: Version Control",
|
|
+ "Topic :: Utilities"
|
|
+ ],
|
|
+ scripts = ["bin/git-fixup"],
|
|
+ packages = ["git_deps", "git_deps/listener"],
|
|
+ # data_files = "share/git_deps = share/gitfile-handler.desktop",
|
|
setup_requires=[
|
|
'six',
|
|
- 'pyscaffold>=2.5.10,<2.6a0',
|
|
- 'setuptools-markdown',
|
|
] + sphinx,
|
|
- long_description_markdown_filename='README.md',
|
|
- use_pyscaffold=True
|
|
+ entry_points = {
|
|
+ "console_scripts" : [
|
|
+ "git-deps = git_deps.cli:run",
|
|
+ "gitfile-handler = git_deps.handler:run"
|
|
+ ]
|
|
+ }
|
|
)
|
|
|
|
|
|
--- a/docs/conf.py
|
|
+++ b/docs/conf.py
|
|
@@ -45,7 +45,7 @@ if on_rtd:
|
|
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
|
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo',
|
|
'sphinx.ext.autosummary', 'sphinx.ext.viewcode', 'sphinx.ext.coverage',
|
|
- 'sphinx.ext.doctest', 'sphinx.ext.ifconfig', 'sphinx.ext.pngmath',
|
|
+ 'sphinx.ext.doctest', 'sphinx.ext.ifconfig', 'sphinx.ext.imgmath',
|
|
'sphinx.ext.napoleon']
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|