-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from pahrohfit/pydantic_2_support
Pydantic 2 support
- Loading branch information
Showing
8 changed files
with
48 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ Aliaksandr Vaskevich <[email protected]> | |
Contributors | ||
------------ | ||
Jeoffrey Jardin <[email protected]> | ||
Rob Dailey <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,30 +9,27 @@ | |
from .point import PointModel | ||
from .polygon import PolygonModel | ||
|
||
__author__ = 'Aliaksandr Vaskevich' | ||
__author__ = "Aliaksandr Vaskevich" | ||
__maintainer__ = __author__ | ||
|
||
__email__ = '[email protected]' | ||
__license__ = 'MIT' | ||
__email__ = "[email protected]" | ||
__license__ = "MIT" | ||
|
||
__all__ = [ | ||
'__author__', | ||
'__email__', | ||
'__license__', | ||
'__maintainer__', | ||
|
||
"__author__", | ||
"__email__", | ||
"__license__", | ||
"__maintainer__", | ||
# object type | ||
'GeometryType', | ||
|
||
"GeometryType", | ||
# models | ||
'PointModel', | ||
'MultiPointModel', | ||
'LineStringModel', | ||
'MultiLineStringModel', | ||
'PolygonModel', | ||
'MultiPolygonModel', | ||
'GeometryCollectionModel', | ||
'FeatureModel', | ||
'FeatureCollectionModel', | ||
|
||
"PointModel", | ||
"MultiPointModel", | ||
"LineStringModel", | ||
"MultiLineStringModel", | ||
"PolygonModel", | ||
"MultiPolygonModel", | ||
"GeometryCollectionModel", | ||
"FeatureModel", | ||
"FeatureCollectionModel", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pydantic_geojson" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
description = "Pydantic validation for GeoJson" | ||
authors = [ | ||
"Aliaksandr Vaskevich <[email protected]>", | ||
|
@@ -41,13 +41,17 @@ classifiers = [ | |
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
pydantic = "^1.9.0" | ||
pydantic = ">=1.9,<3.0" | ||
mypy = "^1.4.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
isort = "^5.10.1" | ||
pytest = "^7.1.1" | ||
pytest-cov = "^4.0.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
bandit = "^1.7.5" | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" | ||
|