This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
forked from jupyterhub/traefik-proxy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
82 lines (67 loc) · 2.44 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
"""Install jupyterhub-traefik-proxy
Usage:
pip install [-e] .
"""
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.bdist_egg import bdist_egg
# ensure cwd is on sys.path
# workaround bug in pip 19.0
here = os.path.dirname(__file__)
if here not in sys.path:
sys.path.insert(0, here)
import versioneer
cmdclass = versioneer.get_cmdclass()
class bdist_egg_disabled(bdist_egg):
"""Disabled version of bdist_egg
Prevents setup.py install from performing setuptools' default easy_install,
which it should never ever do.
"""
def run(self):
sys.exit(
"Aborting implicit building of eggs. Use `pip install .` to install from source."
)
if "bdist_egg" not in sys.argv:
cmdclass["bdist_egg"] = bdist_egg_disabled
with open("README.md", encoding="utf8") as f:
readme = f.read()
setup(
name="jupyterhub-traefik-proxy",
version=versioneer.get_version(),
install_requires=open("requirements.txt").read().splitlines(),
python_requires=">=3.6",
author="Project Jupyter Contributors",
author_email="[email protected]",
url="https://jupyterhub-traefik-proxy.readthedocs.io",
project_urls={
"Documentation": "https://jupyterhub-traefik-proxy.readthedocs.io",
"Source": "https://github.com/jupyterhub/traefik-proxy/",
"Tracker": "https://github.com/jupyter/traefik-proxy/issues",
},
# this should be a whitespace separated string of keywords, not a list
keywords="jupyter jupyterhub traefik proxy",
description="JupyterHub proxy implementation with traefik",
long_description=readme,
long_description_content_type="text/markdown",
license="BSD",
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
packages=find_packages(),
include_package_data=True,
cmdclass=cmdclass,
entry_points={
"jupyterhub.proxies": [
"traefik_consul = jupyterhub_traefik_proxy:TraefikConsulProxy",
"traefik_etcd = jupyterhub_traefik_proxy:TraefikEtcdProxy",
"traefik_toml = jupyterhub_traefik_proxy:TraefikTomlProxy",
"traefik_toml_cm = jupyterhub_traefik_proxy:TraefikTomlConfigmapProxy",
]
},
)