Skip to content

Commit

Permalink
Merge pull request #9 from cindytsai/Pre-v0.1
Browse files Browse the repository at this point in the history
Pre v0.1
  • Loading branch information
cindytsai authored Aug 29, 2024
2 parents 9b9d653 + 5ab4624 commit 1f54389
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 26 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,11 @@ jobs:
with:
path: ./dist/*.tar.gz

build_wheels:
name: Build Wheels
runs-on: ubuntu-latest
needs:
- style_check
- run_tests
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
python-version: "3.10"
- run: python -m pip install --upgrade pip
- name: Build pure Python wheels
run: pip wheel . -w wheels/ --no-deps
- name: Upload builds
uses: actions/upload-artifact@v4
with:
path: ./wheels/*.whl

publish_to_pypi:
name: Publish to PyPI
if: startsWith(github.event.ref, 'refs/tags/v')
needs:
- build_source
- build_wheels
runs-on: ubuntu-latest
steps:
- name: Download source tarball and builds
Expand All @@ -72,4 +52,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }} # TODO: Add token in github settings
password: ${{ secrets.PYPI_API_TOKEN }}
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
# Jupyter libyt

[![PyPI version](https://badge.fury.io/py/jupyter-libyt.svg)](https://badge.fury.io/py/jupyter-libyt)

This is a Jupyter provisioner for [`libyt`](https://github.com/yt-project/libyt) kernel.

* **Jupyter Project**: https://jupyter.org/
* **YT Project**: https://yt-project.org/
* **yt**: https://yt-project.org/
* **libyt Repo**: https://github.com/yt-project/libyt
* **libyt Doc**: https://yt-project.github.io/libyt/
* **libyt Doc**: https://libyt.readthedocs.io/en/latest/

### Install

- From PyPI:
```bash
pip install jupyter-libyt
```
- From source:
```bash
git clone https://github.com/yt-project/jupyter_libyt.git
cd jupyter_libyt
pip install .
```
2 changes: 1 addition & 1 deletion jupyter_libyt/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.1"
__version__ = "0.1.0"
7 changes: 7 additions & 0 deletions jupyter_libyt/provisioning/libyt_kernel_provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ async def cleanup(self, restart: bool = False) -> None:
pass

def _get_kernel_info(self, target_file: str) -> typing.Union[int, dict]:
# Print version info
from .. import _version

print(
f"jupyter_libyt version {_version.__version__} (required libyt version >=0.1.0,<1.0.0)"
)

# Get LIBYT_KERNEL_INFO_DIR in environment variable
libyt_kernel_info_dir = os.getenv("LIBYT_KERNEL_INFO_DIR")
if libyt_kernel_info_dir is None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [
description = "A Jupyter kernel provisioner for libyt"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.8"
requires-python = ">=3.7"
keywords = ["jupyter"]
classifiers = [
"Development Status :: 3 - Alpha",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include_package_data = True
packages = find:
zip_safe = False
install_requires =
jupyter-client>=8.0.0,<9
jupyter-client>=7.0.0,<9

[options.packages.find]
exclude =
Expand Down

0 comments on commit 1f54389

Please sign in to comment.