-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added version file; a few tweaks prior to 1.0.0 release
- Loading branch information
1 parent
d0ad316
commit fde6ffa
Showing
5 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"""Version for this package.""" | ||
|
||
__version__ = "1.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,32 @@ | |
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='0.30', | ||
author='Craig Barratt', | ||
author_email='@alumni.stanford.edu', | ||
description='Home Assistant Pyscript Jupyter kernel shim', | ||
url='https://github.com/craigbarratt/hass-pyscript-jupyter', | ||
download_url='https://github.com/craigbarratt/hass-pyscript-jupyter/archive/0.30.tar.gz', | ||
packages=['hass_pyscript_kernel'], | ||
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', | ||
"aiohttp", | ||
"aiohttp_socks", | ||
"jupyter-client", | ||
"jupyter-core", | ||
], | ||
python_requires=">=3.7", | ||
zip_safe=False, | ||
|
@@ -33,8 +43,8 @@ | |
], | ||
}, | ||
entry_points={ | ||
'console_scripts': [ | ||
'jupyter-pyscript=hass_pyscript_kernel:install_main', | ||
"console_scripts": [ | ||
"jupyter-pyscript=hass_pyscript_kernel:install_main", | ||
], | ||
}, | ||
) |