-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (36 loc) · 986 Bytes
/
setup.py
File metadata and controls
39 lines (36 loc) · 986 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
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
import re
import ast
root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__)))
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open(os.path.join(root_dir, 'python_geometry', '__init__.py'), 'r') as f:
version = str(ast.literal_eval(_version_re.search(f.read()).group(1)))
setup(
name='python-geometry',
version=version,
packages=find_packages(),
url='https://github.com/CompMaterSci/python-geometry',
license='BSD',
author='Dominik Steinberger',
author_email='dominik.steinberger@fau.de',
description='Dealing with geometrical problems using Python.',
install_requires=[
'numpy'
],
setup_requires=[
'pytest-runner'
],
tests_require=[
'pytest'
],
extras_require={
'docs': [
'sphinx',
'sphinx_rtd_theme',
'numpydoc'
]
}
)