-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (41 loc) · 1.29 KB
/
setup.py
File metadata and controls
46 lines (41 loc) · 1.29 KB
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
#! /usr/bin/env python
from setuptools import setup, find_packages
from os import path, listdir
import re
pkg_name = "pharus"
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.rst"), "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="support@vathes.com",
description="A generic REST API server backend for DataJoint pipelines.",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/datajoint/pharus",
packages=find_packages(exclude=["test*", "docs"]),
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
install_requires=requirements,
entry_points={
"console_scripts": [f"{pkg_name}={pkg_name}.server:run"],
},
)