From 2c9d23b0291157eb1096384ff76e0122747b9bdf Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sat, 11 Jun 2016 22:20:04 +0100 Subject: convert into a proper Python module Sem-Ver: api-break --- setup.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..535b255 --- /dev/null +++ b/setup.py @@ -0,0 +1,23 @@ +#!/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'] + sphinx, + use_pyscaffold=True) + + +if __name__ == "__main__": + setup_package() -- cgit From 02e79d29f71feb795779d97825644ad4172598ad Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Wed, 16 May 2018 16:39:57 +0100 Subject: try using setuptools-markdown to fix the long_description --- setup.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 535b255..4df7bcb 100644 --- a/setup.py +++ b/setup.py @@ -15,8 +15,15 @@ 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'] + sphinx, - use_pyscaffold=True) + setup( + setup_requires=[ + 'six', + 'pyscaffold>=2.5a0,<2.6a0', + 'setuptools-markdown', + ] + sphinx, + long_description_markdown_filename='README.md', + use_pyscaffold=True + ) if __name__ == "__main__": -- cgit