diff options
author | Adam Spiers <github@adamspiers.org> | 2018-05-16 16:54:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 16:54:33 +0100 |
commit | c091a477d14ae74bb7f1e08d7c5bc5c3bcfd7d20 (patch) | |
tree | 01abbbeea250e834c35bed73ac84934c52705ae8 /setup.py | |
parent | 9a741f07167dcb6cc81a8f87036d1ea75c4270d3 (diff) | |
parent | 02e79d29f71feb795779d97825644ad4172598ad (diff) | |
download | git-deps-c091a477d14ae74bb7f1e08d7c5bc5c3bcfd7d20.tar.gz |
Merge pull request #71 from aspiers/module
package as a Python module
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4df7bcb --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Setup file for git_deps. + + This file was generated with PyScaffold 2.5.6, a tool that easily + puts up a scaffold for your new Python project. Learn more under: + http://pyscaffold.readthedocs.org/ +""" + +import sys +from setuptools import setup + + +def setup_package(): + needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv) + sphinx = ['sphinx'] if needs_sphinx else [] + setup( + setup_requires=[ + 'six', + 'pyscaffold>=2.5a0,<2.6a0', + 'setuptools-markdown', + ] + sphinx, + long_description_markdown_filename='README.md', + use_pyscaffold=True + ) + + +if __name__ == "__main__": + setup_package() |