Mercurial > hg-git-serve
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 0:c1dc9d21fa57 | 1:a39dd69b8972 |
|---|---|
| 1 [build-system] | |
| 2 requires = ["hatchling"] | |
| 3 build-backend = "hatchling.build" | |
| 4 | |
| 5 [project] | |
| 6 name = "git-serve" | |
| 7 dynamic = ["version"] | |
| 8 description = 'Serves Git repositories from Mercurial.' | |
| 9 requires-python = ">=3.8" | |
| 10 license = "MIT" | |
| 11 keywords = [] | |
| 12 authors = [ | |
| 13 { name = "Paul Fisher", email = "paul@pfish.zone" }, | |
| 14 ] | |
| 15 classifiers = [ | |
| 16 "Development Status :: 4 - Beta", | |
| 17 "Programming Language :: Python", | |
| 18 "Programming Language :: Python :: 3.8", | |
| 19 "Programming Language :: Python :: 3.9", | |
| 20 "Programming Language :: Python :: 3.10", | |
| 21 "Programming Language :: Python :: 3.11", | |
| 22 "Programming Language :: Python :: 3.12", | |
| 23 "Programming Language :: Python :: Implementation :: CPython", | |
| 24 "Programming Language :: Python :: Implementation :: PyPy", | |
| 25 ] | |
| 26 dependencies = [ | |
| 27 'dulwich', | |
| 28 'mercurial', | |
| 29 'hg-git', | |
| 30 ] | |
| 31 | |
| 32 [tool.hatch.version] | |
| 33 path = "src/git_serve.py" | |
| 34 | |
| 35 [tool.hatch.envs.types] | |
| 36 extra-dependencies = [ | |
| 37 "mypy>=1.0.0", | |
| 38 ] | |
| 39 [tool.hatch.envs.types.scripts] | |
| 40 check = "mypy --install-types --non-interactive {args:src/git_serve tests}" | |
| 41 | |
| 42 [tool.coverage.run] | |
| 43 source_pkgs = ["git_serve", "tests"] | |
| 44 branch = true | |
| 45 parallel = true | |
| 46 | |
| 47 [tool.coverage.paths] | |
| 48 git_serve = ["src/git_serve", "*/git-serve/src/git_serve"] | |
| 49 tests = ["tests", "*/git-serve/tests"] | |
| 50 | |
| 51 [tool.coverage.report] | |
| 52 exclude_lines = [ | |
| 53 "no cov", | |
| 54 "if __name__ == .__main__.:", | |
| 55 "if TYPE_CHECKING:", | |
| 56 ] | |
| 57 | |
| 58 [[tool.mypy.overrides]] | |
| 59 module = ['mercurial.*', 'hggit.*'] | |
| 60 follow_untyped_imports = true | |
| 61 | |
| 62 [tool.ruff] | |
| 63 line-length = 80 | |
| 64 | |
| 65 [tool.ruff.lint] | |
| 66 select = ['E', 'F', 'UP', 'B', 'SIM', 'I'] | |
| 67 isort.force-single-line = true | |
| 68 | |
| 69 [tool.ruff.format] | |
| 70 quote-style = 'single' |
