Add paperspec correct, check math forms and datasets, and give the tools public names
The work the other paper tools planned for paperspec (paperdesk PLAN M5.4, paperform PLAN 4.2): - paperspec correct and paperspec.revision apply proposed corrections to a package, folder or zip, and write it only once it validates. - doc.math.form is checked: label and style commands always, the form's own spelling when papermath is installed or forms= is passed. - paperspec.datasets and seven doc.dataset.* rules check a package's datasets. - fixtures/invalid gains suspect-witness and math-form-label (33 in all). - Canonical JSON reads numbers as doubles, so 1e20 round-trips. - The registries and the JSON-LD context ship in the wheel. - Public names for what paperdesk and paperform imported as private ones, with the old names kept as aliases. - The text and lossy-projection functions are about three times faster through the gate, tested equal to the old code on every code point. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013XwDhn4LkrKQfw4ArDEr2E
This commit is contained in:
70 files changed
+4470
-270
No files matched your search
+21
-5
@@ -62,23 +62,39 @@ dev = [
|
||||
"twine>=6.1",
|
||||
]
|
||||
|
||||
# The code is `src/paperspec`. The schemas, SQL and vectors stay at the repository root, where the
|
||||
# specification links to them and the website serves the schemas at their `$id` URLs, and travel with the
|
||||
# package as data subpackages, so a consumer reads them with importlib.resources. That mapping is why the
|
||||
# packages are listed rather than found.
|
||||
# The code is `src/paperspec`. The schemas, SQL, vectors, registries and JSON-LD context stay at the
|
||||
# repository root, where the specification links to them and the website serves the schemas at their `$id`
|
||||
# URLs, and travel with the package as data subpackages, so a consumer reads them with importlib.resources.
|
||||
# That mapping is why the packages are listed rather than found.
|
||||
[tool.setuptools]
|
||||
packages = ["paperspec", "paperspec.cli", "paperspec.schemas", "paperspec.sql", "paperspec.vectors"]
|
||||
packages = [
|
||||
"paperspec",
|
||||
"paperspec.cli",
|
||||
"paperspec.schemas",
|
||||
"paperspec.sql",
|
||||
"paperspec.vectors",
|
||||
"paperspec.registry",
|
||||
"paperspec.registry.stamps",
|
||||
"paperspec.registry.stages",
|
||||
"paperspec.context",
|
||||
]
|
||||
|
||||
[tool.setuptools.package-dir]
|
||||
"" = "src"
|
||||
"paperspec.schemas" = "schemas"
|
||||
"paperspec.sql" = "sql"
|
||||
"paperspec.vectors" = "vectors"
|
||||
"paperspec.registry" = "registry"
|
||||
"paperspec.context" = "context"
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"paperspec.schemas" = ["*.json"]
|
||||
"paperspec.sql" = ["*.sql"]
|
||||
"paperspec.vectors" = ["*.jsonl"]
|
||||
"paperspec.registry" = ["*.json"]
|
||||
"paperspec.registry.stamps" = ["*.json"]
|
||||
"paperspec.registry.stages" = ["*.json"]
|
||||
"paperspec.context" = ["*.jsonld"]
|
||||
|
||||
# The package version comes from git tags (v0.1.1 builds as 0.1.1, later commits as 0.1.2.devN); CONTRIBUTING.md
|
||||
# says how it relates to the format version that CHANGELOG.md and pixi.toml carry. A source tree without git
|
||||
|
||||
Reference in new issue
Block a user