-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
41 lines (32 loc) · 1.2 KB
/
setup.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for abelian.
This file was generated with PyScaffold 2.5.7, 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, find_packages
import re
import ast
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('abelian/__init__.py', 'rb') as f:
VERSION = str(ast.literal_eval(_version_re.search(f.read().decode('utf-8')).group(1)))
with open('README.rst', 'r') as file:
README_TEXT = file.read()
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=False,
name = 'abelian',
description="Computations on abelian groups.",
long_description = README_TEXT,
version=VERSION,
packages=find_packages(),
author = "Tommy Odland",
author_email= '[email protected]',
url="https://github.com/tommyod/abelian/")
if __name__ == "__main__":
setup_package()