-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
36 lines (30 loc) · 960 Bytes
/
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
import os
from distutils.core import setup
descr = 'Concomitant Lasso with repetitions'
version = None
with open(os.path.join('clar', '__init__.py'), 'r') as fid:
for line in (line.strip() for line in fid):
if line.startswith('__version__'):
version = line.split('=')[1].strip().strip('\'')
break
if version is None:
raise RuntimeError('Could not determine version')
DISTNAME = 'clar'
DESCRIPTION = descr
MAINTAINER = 'Quentin Bertrand'
MAINTAINER_EMAIL = '[email protected]'
LICENSE = 'BSD (3-clause)'
DOWNLOAD_URL = 'https://github.com/QB3/clar.git'
VERSION = version
# URL = 'https://qb3.github.io/clar'
setup(name='clar',
version=VERSION,
description=DESCRIPTION,
long_description=open('README.rst').read(),
license=LICENSE,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
# url=URL,
download_url=DOWNLOAD_URL,
packages=['clar'],
)