-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
50 lines (45 loc) · 1.49 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
"""Create hass_pyscript_kernel package."""
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
def get_version(path):
with open(path, "r") as fh:
for line in fh.readlines():
if line.startswith("__version__"):
return line.split('"' if '"' in line else "'")[1]
else:
raise RuntimeError(f"Unable to find version string in {path}")
version = get_version("hass_pyscript_kernel/version.py")
setup(
name="hass_pyscript_kernel",
version=version,
author="Craig Barratt",
author_email="[email protected]",
description="Home Assistant Pyscript Jupyter kernel shim",
url="https://github.com/craigbarratt/hass-pyscript-jupyter",
download_url=f"https://github.com/craigbarratt/hass-pyscript-jupyter/archive/{version}.tar.gz",
packages=["hass_pyscript_kernel"],
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=[
"aiohttp",
"aiohttp_socks",
"jupyter-client",
"jupyter-core",
],
python_requires=">=3.7",
zip_safe=False,
include_package_data=True,
package_data={
"hass_pyscript_kernel": [
"kernel_files/pyscript.conf",
"kernel_files/logo-32x32.png",
"kernel_files/logo-64x64.png"
],
},
entry_points={
"console_scripts": [
"jupyter-pyscript=hass_pyscript_kernel:install_main",
],
},
)