Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hatch #51

Merged
merged 1 commit into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "[email protected]"

[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.