Files
Snowwpanda 46f5bb86b6 Migrate Field syntax to Pydantic 2.x format (json_schema_extra)
- Updated all Field(ontology=...) to Field(json_schema_extra={'ontology': ...})
- Updated Field(comment=...) to Field(json_schema_extra={'comment': ...})
- Enhanced schema_registry.py to extract comment from json_schema_extra
- Updated documentation in decorators.py, README.md, TECHNICAL.md
- Bumped version to 0.2.2
- All tests pass without deprecation warnings
2025-11-09 23:45:41 +01:00

80 lines
2.1 KiB
TOML

[project]
name = "lib-ro-crate-schema"
version = "0.2.2"
description = "A Pythonic library for creating and managing RO-Crates with schema definitions using Pydantic models"
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [
{ name = "Simone Baffelli", email = "simone.baffelli@empa.ch" },
{ name = "Pascal Su", email = "pascal.su@empa.ch" }
]
maintainers = [
{ name = "Simone Baffelli", email = "simone.baffelli@empa.ch" },
{ name = "Pascal Su", email = "pascal.su@empa.ch" }
]
keywords = [
"ro-crate",
"research-object",
"metadata",
"pydantic",
"linked-data",
"rdf",
"schema",
"fair-data"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.13"
dependencies = [
"pydantic>=2.11.7",
"pyld>=2.0.4",
"pyshacl>=0.30.1",
"rdflib>=7.1.4",
"rocrate>=0.14.0",
]
[project.urls]
Homepage = "https://github.com/researchobjectschema/ro-crate-interoperability-profile"
Documentation = "https://github.com/researchobjectschema/ro-crate-interoperability-profile/tree/main/0.2.x/lib/python/lib-ro-crate-schema"
Repository = "https://github.com/researchobjectschema/ro-crate-interoperability-profile"
Issues = "https://github.com/researchobjectschema/ro-crate-interoperability-profile/issues"
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
[project.scripts]
check = "lib_ro_crate_schema.check:main"
example = "lib_ro_crate_schema.example.examples:main"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers"
testpaths = [
"tests",
]
python_files = [
"test_*.py",
"*_test.py",
]
python_classes = [
"Test*",
]
python_functions = [
"test_*",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"