-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·48 lines (39 loc) · 1.44 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
42
43
44
45
46
47
48
import os
import re
from setuptools import setup
def find_version(*file_paths):
with open(os.path.join(os.path.dirname(__file__), *file_paths)) as file:
version_file = file.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]
setup(
name='grg-mp2grg',
packages=['grg_mp2grg'],
version=find_version('grg_mp2grg', '__init__.py'),
url='https://github.com/lanl-ansi/grg-mp2grg',
license='BSD',
author='Carleton Coffrin',
author_email='[email protected]',
install_requires=['grg-mpdata', 'grg-grgdata'],
setup_requires=['pytest-runner'],
tests_require=['pytest-cov'],
test_suite='tests',
description='Data structures and methods for translating Matpower and GRG data files',
long_description=long_description,
classifiers = classifiers,
)