diff pyproject.toml @ 1:a39dd69b8972

Create a more-or-less real package and make it work (?)
author Paul Fisher <paul@pfish.zone>
date Sat, 14 Feb 2026 18:41:52 -0500
parents
children 871dcb2a2aeb
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pyproject.toml	Sat Feb 14 18:41:52 2026 -0500
@@ -0,0 +1,70 @@
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+
+[project]
+name = "git-serve"
+dynamic = ["version"]
+description = 'Serves Git repositories from Mercurial.'
+requires-python = ">=3.8"
+license = "MIT"
+keywords = []
+authors = [
+  { name = "Paul Fisher", email = "paul@pfish.zone" },
+]
+classifiers = [
+  "Development Status :: 4 - Beta",
+  "Programming Language :: Python",
+  "Programming Language :: Python :: 3.8",
+  "Programming Language :: Python :: 3.9",
+  "Programming Language :: Python :: 3.10",
+  "Programming Language :: Python :: 3.11",
+  "Programming Language :: Python :: 3.12",
+  "Programming Language :: Python :: Implementation :: CPython",
+  "Programming Language :: Python :: Implementation :: PyPy",
+]
+dependencies = [
+  'dulwich',
+  'mercurial',
+  'hg-git',
+]
+
+[tool.hatch.version]
+path = "src/git_serve.py"
+
+[tool.hatch.envs.types]
+extra-dependencies = [
+  "mypy>=1.0.0",
+]
+[tool.hatch.envs.types.scripts]
+check = "mypy --install-types --non-interactive {args:src/git_serve tests}"
+
+[tool.coverage.run]
+source_pkgs = ["git_serve", "tests"]
+branch = true
+parallel = true
+
+[tool.coverage.paths]
+git_serve = ["src/git_serve", "*/git-serve/src/git_serve"]
+tests = ["tests", "*/git-serve/tests"]
+
+[tool.coverage.report]
+exclude_lines = [
+  "no cov",
+  "if __name__ == .__main__.:",
+  "if TYPE_CHECKING:",
+]
+
+[[tool.mypy.overrides]]
+module = ['mercurial.*', 'hggit.*']
+follow_untyped_imports = true
+
+[tool.ruff]
+line-length = 80
+
+[tool.ruff.lint]
+select = ['E', 'F', 'UP', 'B', 'SIM', 'I']
+isort.force-single-line = true
+
+[tool.ruff.format]
+quote-style = 'single'