forked from cassinyio/SwarmSpawner
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
51 lines (43 loc) · 1.66 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
47
48
49
50
51
import os
from setuptools import setup, find_packages
cur_dir = os.path.abspath(os.path.dirname(__file__))
def read(path):
with open(path, "r") as _file:
return _file.read()
def read_req(name):
path = os.path.join(cur_dir, name)
return [req.strip() for req in read(path).splitlines() if req.strip()]
# Get the current package version.
version_ns = {}
with open(os.path.join(cur_dir, "version.py")) as f:
exec(f.read(), {}, version_ns)
long_description = open("README.rst").read()
setup(
name="jhub-swarmspawner",
version=version_ns["__version__"],
description="""SwarmSpawner enables JupyterHub to spawn jupyter
notebooks across a Docker Swarm cluster""",
long_description=long_description,
author="Rasmus Munk",
author_email="rasmus.munk@nbi.ku.dk",
packages=find_packages(exclude=["contrib", "docs", "tests"]),
url="https://github.com/rasmunk/SwarmSpawner",
license="BSD",
keywords=["Interactive", "Interpreter", "Shell", "Web"],
install_requires=read_req("requirements.txt"),
extras_require={
"dev": read_req("requirements-dev.txt"),
"test": read_req(os.path.join("tests", "requirements.txt")),
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)