-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
46 lines (35 loc) · 1.48 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
import io
import os
import re
from setuptools import find_packages, setup
def read(filename):
filename = os.path.join(os.path.dirname(__file__), filename)
text_type = type(u'')
with io.open(filename, mode = 'r', encoding = 'utf-8') as fd:
return re.sub(text_type(r':[a-z]+:`~?(.*?)`'), text_type(r'``\1``'), fd.read())
def read_requirements():
filename = os.path.join(os.path.dirname(__file__), 'requirements.txt')
with io.open(filename) as f:
return [ine for line in f.read().splitlines() if (ine := str.lstrip(line)) if len(ine) > 0 if not ine.startswith('#')]
setup(
name = 'GPy-ABCD',
version = '1.2.3', # Change it in __init__.py too
url = 'https://github.com/T-Flet/GPy-ABCD',
license = 'BSD 3-Clause',
author = 'Thomas Fletcher',
author_email = 'T-Fletcher@outlook.com',
description = 'Basic implementation with GPy of an Automatic Bayesian Covariance Discovery (ABCD) system',
long_description = read('README.rst'),
packages = find_packages(exclude=('Tests',)),
install_requires = read_requirements(),
classifiers = [
'Development Status :: 4 - Beta',
# 'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
],
)