-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (49 loc) · 1.52 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
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
import os
cwd = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(cwd, "nutrition", "version.py"), "r") as f:
version = [x.split("=")[1].replace('"', "").strip() for x in f if x.startswith("version =")][0]
try:
from pypandoc import convert
except ImportError:
import io
def convert(filename, fmt):
with io.open(filename, encoding="utf-8") as fd:
return fd.read()
CLASSIFIERS = [
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GPLv3",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2.7",
]
setup(
name="nutrition",
version=version,
author="Sam Hainsworth, Ruth Pearson, Madhura Killedar, Nick Scott",
author_email="[email protected]",
description="Optima Nutrition",
url="http://github.com/optimamodel/nutrition",
keywords=["optima", "nutrition"],
platforms=["OS Independent"],
classifiers=CLASSIFIERS,
packages=find_packages(),
include_package_data=True,
install_requires=[
"matplotlib>=1.4.2",
"numpy>=1.10.1",
"scipy",
"pandas>=1.2.4",
"babel",
"openpyxl",
"openpyexcel",
"sciris",
"seaborn",
],
)