Skip to content

Commit d8ba298

Browse files
authored
Prepare repo for PyPI release via Jupyter Releaser (#2)
* prepare repo for PyPI release via Jupyter Releaser * add CHANGELOG.md
1 parent 18aefb8 commit d8ba298

File tree

7 files changed

+23
-41
lines changed

7 files changed

+23
-41
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,6 @@ __marimo__/
214214

215215
# Streamlit
216216
.streamlit/secrets.toml
217+
218+
# Auto-generated _version.py module
219+
jupyter_ai_magic_commands/_version.py

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
<!-- <START NEW CHANGELOG ENTRY> -->
4+
5+
<!-- <END NEW CHANGELOG ENTRY> -->
6+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @jupyter-ai-contrib/jupyter-ai-magic-commands
1+
# jupyter-ai-magic-commands
22

33
Magics are currently provided for Jupyter AI via the package `jupyter-ai-magics` ([current version 2.31.6](https://pypi.org/project/jupyter-ai-magics)). This works with Jupyter AI v2 but will not work with the collection of extensions for v3 developed in https://github.com/jupyter-ai-contrib, which use `litellm` via the https://github.com/jupyter-ai-contrib/jupyter-ai-litellm repository. Therefore, we introduce an updated magics package, titled `jupyter_ai_magic_commands` (v0.0.1) for use with Jupyter AI v3.
44

jupyter_ai_magic_commands/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
from typing import TYPE_CHECKING
44

5-
from ._version import __version__
6-
75
if TYPE_CHECKING:
86
from IPython.core.interactiveshell import InteractiveShell
97

108

9+
__version__ = '0.0.0'
10+
1111
def load_ipython_extension(ipython: InteractiveShell):
1212
from .exception import store_exception
1313
from .magics import AiMagics

jupyter_ai_magic_commands/_version.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

pyproject.toml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
[build-system]
2-
requires = ["hatchling>=1.4.0", "hatch-nodejs-version"]
2+
requires = ["hatchling>=1.4.0"]
33
build-backend = "hatchling.build"
44

55
[project]
66
name = "jupyter_ai_magic_commands"
77
readme = "README.md"
8+
description = "Package providing Jupyter AI magic commands in IPython"
9+
authors = [{ name = "Project Jupyter", email = "jupyter@googlegroups.com" }]
10+
keywords = ["ipython", "ai", "magic-commands"]
811
license = { file = "LICENSE" }
912
requires-python = ">=3.9"
1013
classifiers = [
@@ -18,7 +21,7 @@ classifiers = [
1821
"Programming Language :: Python :: 3.12",
1922
]
2023

21-
dynamic = ["version", "description", "authors", "urls", "keywords"]
24+
dynamic = ["version"]
2225

2326
dependencies = [
2427
"ipython",
@@ -28,6 +31,11 @@ dependencies = [
2831
"click>=8.1.0,<9",
2932
]
3033

34+
[project.urls]
35+
Documentation = "https://jupyter-ai.readthedocs.io/en/v3/"
36+
Source = "https://github.com/jupyter-ai-contrib/jupyter-ai-magic-commands"
37+
Tracker = "https://github.com/jupyter-ai-contrib/jupyter-ai-magic-commands/issues"
38+
3139
[project.optional-dependencies]
3240
dev = [
3341
# used to run our linters and formatters locally
@@ -45,10 +53,4 @@ all = [
4553
]
4654

4755
[tool.hatch.version]
48-
source = "nodejs"
49-
50-
[tool.hatch.metadata.hooks.nodejs]
51-
fields = ["description", "authors", "urls"]
52-
53-
[tool.hatch.build.hooks.version]
54-
path = "jupyter_ai_magic_commands/_version.py"
56+
path = "jupyter_ai_magic_commands/__init__.py"

0 commit comments

Comments
 (0)