forked from pyscaffold/pyscaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (20 loc) · 721 Bytes
/
setup.py
File metadata and controls
27 lines (20 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for PyScaffold.
Important note: Since PyScaffold is self-using and depends on
setuptools-scm, it is important to run `python setup.py egg_info` after
a fresh checkout. This will generate some critically needed data.
"""
import sys
from setuptools import setup
__author__ = "Florian Wilhelm"
__copyright__ = "Blue Yonder"
__license__ = "new BSD"
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()