forked from datajoint/pharus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (33 loc) · 1.19 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
#! /usr/bin/env python
from setuptools import setup, find_packages
from os import path, listdir
import re
pkg_name = 'dj_gui_api_server'
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), 'r') as f:
long_description = f.read()
with open(path.join(here, pkg_name, 'version.py')) as f:
exec(f.read())
with open(path.join(here, 'requirements.txt')) as f:
requirements = ['{pkg} @ {target}#egg={pkg}'.format(
pkg=re.search(r'/([A-Za-z0-9\-]+)\.git', r).group(1),
target=r) if '+' in r else r for r in f.read().splitlines() if '#' not in r]
setup(
name=pkg_name,
version=__version__,
author='DataJoint Neuro',
author_email='[email protected]',
description='A generic REST API for DataJoint pipelines.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://datajoint.io',
packages=find_packages(exclude=['test*', 'docs']),
classifiers=[
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
],
install_requires=requirements,
entry_points={
'console_scripts': ['djgui_api={}.DJGUIAPIServer:run'.format(pkg_name)],
},
)