Skip to content

Commit

Permalink
WIP: use hatch backend
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed May 10, 2022
1 parent faabe59 commit a1556e0
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 8 deletions.
6 changes: 0 additions & 6 deletions literary_config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"ProjectOperator": {
"packages_dir": "src"
},
"PackageBuilder": {
"generated_dir": "lib"
},
"ProjectTester": {
"extra_sources": ["examples"]
},
Expand Down
76 changes: 74 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
[project]
name = "literary"
version = "3.0.2"
description = "Literate package development with Jupyter"
authors = [
{name = "Angus Hollands", email = "[email protected]"},
]
dependencies = [
"nbformat[fast]>=5",
"nbclient>=0.5.12",
"nbconvert>=6.0",
"traitlets>=5",
"astunparse>=1.6; python_version < \"3.9\"",
"ipython>=7.33.0",
"typing-extensions>=3.10",
"jupyter-core>=4.8",
]
requires-python = ">=3.7"
readme = "README.md"
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9"]
keywords = [
"literate-programming",
"jupyter",
"notebooks",
"nbconvert"
]

[project.urls]
"Repository" = "http://github.com/agoose77/literary"
"Bug Tracker" = "http://github.com/agoose77/literary/issues"

[project.scripts]
literary = "literary.commands.launcher:launch_new_instance"

[project.entry-points."nbconvert.exporters"]
literary = "literary.core.exporter:LiteraryExporter"

[project.optional-dependencies]

[tool]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"jupyterlab>=3.4.0"
]

[tool.hatch.build]
only-packages = true
exclude = ["lib"]


[tool.hatch.build.targets.wheel.shared-data]
"share/jupyter/nbconvert/templates/literary/conf.json" = "share/jupyter/nbconvert/templates/literary/conf.json"
"share/jupyter/nbconvert/templates/literary/index.py.j2" = "share/jupyter/nbconvert/templates/literary/index.py.j2"


[tool.hatch.build.targets.wheel.hooks.literary]
dependencies = ["literary-build-hatch"]


[build-system]
requires = ["wheel", "literary-build>=2.0.0,<3.0.0"]
build-backend = "literary.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

0 comments on commit a1556e0

Please sign in to comment.