Skip to content

Commit bc92fb7

Browse files
authored
Remove pydantic dependency (#18)
* PackConfig does not rely on pydantic anymore * PyProjectConfig does not rely on pydantic anymore * renaming * remove pydantic from pkg dep and update changelog
1 parent 6cffc48 commit bc92fb7

10 files changed

Lines changed: 162 additions & 326 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
Anything MAY change at any time. The public API SHOULD NOT be considered stable.").
1111
While in this phase, we will denote breaking changes with a minor increase.
1212

13+
## Unreleased
14+
15+
### Changed
16+
17+
* `dac` does not rely on [`pydantic`](https://pypi.org/project/pydantic/) anymore, and uses [`dataclass`](https://docs.python.org/3/library/dataclasses.html#) instead.
18+
Changes affect `PackConfig` and `PyProjectConfig`.
19+
1320
## 0.3.3
1421

1522
### Fixed

pyproject.toml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ dynamic = ["version"]
44
description = "Tool to distribute data as code"
55
readme = "README.md"
66
requires-python = ">=3.9"
7-
license = {text = "MIT"}
7+
license = { text = "MIT" }
88
authors = [
9-
{name = "Francesco Calcavecchia", email = "francesco.calcavecchia@gmail.com"}
9+
{ name = "Francesco Calcavecchia", email = "francesco.calcavecchia@gmail.com" },
1010
]
1111
maintainers = [
12-
{name = "Francesco Calcavecchia", email = "francesco.calcavecchia@gmail.com"}
12+
{ name = "Francesco Calcavecchia", email = "francesco.calcavecchia@gmail.com" },
1313
]
1414
classifiers = [
1515
"Programming Language :: Python :: 3",
@@ -18,16 +18,10 @@ classifiers = [
1818
"Topic :: Software Development :: Build Tools",
1919
"License :: OSI Approved :: MIT License",
2020
"Topic :: Scientific/Engineering",
21-
"Operating System :: OS Independent"
21+
"Operating System :: OS Independent",
2222
]
2323

24-
dependencies = [
25-
"build~=0.9",
26-
"pydantic>=1.10,<3.0",
27-
"toml~=0.10",
28-
"typer[all]~=0.7",
29-
"wheel~=0.38"
30-
]
24+
dependencies = ["build~=0.9", "toml~=0.10", "typer[all]~=0.7", "wheel~=0.38"]
3125

3226
# [project.optional-dependencies]
3327
#
@@ -42,11 +36,7 @@ changelog = "https://github.com/data-as-code/dac/blob/main/CHANGELOG.md"
4236
dac = "dac._cli:app"
4337

4438
[build-system]
45-
requires = [
46-
"setuptools>=45",
47-
"wheel",
48-
"setuptools_scm[toml]>=6.2"
49-
]
39+
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
5040
build-backend = "setuptools.build_meta"
5141

5242
[tool.setuptools_scm]

src/dac/_input/_config_pydantic_v1.py

Lines changed: 0 additions & 110 deletions
This file was deleted.

src/dac/_input/_config_pydantic_v2.py

Lines changed: 0 additions & 109 deletions
This file was deleted.

src/dac/_input/_pyproject_pydantic_v1.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/dac/_input/_pyproject_pydantic_v2.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)