Skip to content

Commit

Permalink
Use hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Sep 26, 2022
1 parent 3e21fc6 commit 909f2d6
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ repos:
hooks:
- id: flake8
additional_dependencies:
["flake8-bugbear==22.6.22", "flake8-implicit-str-concat==0.2.0"]
["flake8-bugbear==22.6.22", "flake8-implicit-str-concat==0.2.0", "flake8-pyproject"]
stages: [manual]
73 changes: 59 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,64 @@
[tool.check-manifest]
ignore = [".*"]
[build-system]
requires = [
"hatchling>=1.10.0",
]
build-backend = "hatchling.build"

[project]
name = "jupyter-ydoc"
dynamic = [
"version",
]
description = "Document structures for collaborative editing using Ypy"
requires-python = ">=3.7"
keywords = [
"jupyter",
"ypy",
]
dependencies = [
"y-py >=0.5.3,<0.6.0",
]

[[project.authors]]
name = "Jupyter Development Team"
email = "jupyter@googlegroups.com"

[project.optional-dependencies]
test = [
"pre-commit",
"pytest",
"pytest-asyncio",
"websockets >=10.0",
"ypy-websocket >=0.3.1,<0.4.0",
]

[project.entry-points.jupyter_ydoc]
file = "jupyter_ydoc.ydoc:YFile"
notebook = "jupyter_ydoc.ydoc:YNotebook"

[tool.tbump.version]
current = "0.1.17"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
'''
[project.readme]
file = "README.md"
content-type = "text/markdown"

[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[project.license]
text = "BSD 3-Clause License"

[[tool.tbump.file]]
src = "jupyter_ydoc/__init__.py"
[project.urls]
Homepage = "https://jupyter.org"

[tool.hatch.version]
path = "jupyter_ydoc/__init__.py"

[tool.check-manifest]
ignore = [
".*",
]

[tool.jupyter-releaser]
skip = ["check-links", "check-manifest"]
skip = [
"check-links",
"check-manifest",
]

[tool.flake8]
max-line-length = 100
41 changes: 0 additions & 41 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit 909f2d6

Please sign in to comment.