forked from Guo-Jian-Wang/refann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (35 loc) · 1.05 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
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 2 16:17:03 2019
@author: Guojian Wang
"""
import os
import re
from setuptools import setup, find_packages
def read(filename):
f = open(filename)
r = f.read()
f.close()
return r
ver = re.compile("__version__ = \"(.*?)\"")
#m = read(os.path.join(os.path.dirname(os.path.abspath(__file__)), "refann", "__init__.py"))
#m = read(os.path.join(os.path.dirname(__file__), "refann", "__init__.py"))
m = read(os.path.join(os.getcwd(), "refann", "__init__.py"))
version = ver.findall(m)[0]
setup(
name = "refann",
version = version,
keywords = ("pip", "ANN"),
description = "Reconstruct Functions with Artificial Neural Network",
long_description = "",
license = "MIT",
url = "",
author = "Guojian Wang",
author_email = "[email protected]",
# packages = find_packages(),
packages = ["refann", "examples"],
include_package_data = True,
data_files = ["examples/data/Hz31.txt", "examples/data/Union2.1_DL.txt"],
platforms = "any",
install_requires = []
)