grz-pydantic-models 1.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ name: Python CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+
15
+ strategy:
16
+ matrix:
17
+ python-version:
18
+ - "3.12"
19
+ - "3.13"
20
+
21
+ steps:
22
+ - name: Checkout code
23
+ uses: actions/checkout@v4
24
+
25
+ - name: Install uv
26
+ uses: astral-sh/setup-uv@v5
27
+ with:
28
+ # Install a specific version of uv and enable caching.
29
+ version: "0.6.2"
30
+ enable-cache: true
31
+
32
+ - name: Set up Python
33
+ run: uv python install ${{ matrix.python-version }}
34
+
35
+ - name: Install the project
36
+ run: uv sync --all-extras --dev --frozen
37
+
38
+ - name: Check formatting
39
+ run: uv run ruff format --check
40
+
41
+ - name: Run mypy
42
+ run: uv run mypy src
43
+
@@ -0,0 +1,55 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ release:
6
+ types: [published]
7
+ push:
8
+ tags:
9
+ - 'v*'
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v5
21
+ with:
22
+ # Install a specific version of uv and enable caching.
23
+ version: "0.6.2"
24
+ enable-cache: true
25
+
26
+ - name: Set up Python
27
+ run: uv python install 3.12 # Build only for Python 3.12
28
+
29
+ - name: Build package
30
+ run: uv build
31
+
32
+ - name: Save distributables
33
+ uses: actions/upload-artifact@v4
34
+ with:
35
+ name: grz-pydantic-models-dist
36
+ path: dist/
37
+
38
+ pypi-publish:
39
+ name: Upload release to PyPI
40
+ runs-on: ubuntu-latest
41
+ needs: [build]
42
+ environment:
43
+ name: pypi
44
+ url: https://pypi.org/p/grz-pydantic-models
45
+ permissions:
46
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
47
+ steps:
48
+ - name: Download build artifacts
49
+ uses: actions/download-artifact@v4
50
+ with:
51
+ name: grz-pydantic-models-dist
52
+ path: dist/
53
+
54
+ - name: Publish package distributions to PyPI
55
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,2 @@
1
+ # Python
2
+ __pycache__/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 GRZ/GHGA
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,18 @@
1
+ Metadata-Version: 2.4
2
+ Name: grz-pydantic-models
3
+ Version: 1.1.1
4
+ Summary: Pydantic models for the GRZ metadata schema
5
+ Project-URL: Repository, https://github.com/BfArM-MVH/grz-pydantic-models.git
6
+ Project-URL: Issues, https://github.com/BfArM-MVH/grz-pydantic-models/issues
7
+ Project-URL: Changelog, https://github.com/BfArM-MVH/grz-pydantic-models/commits/main
8
+ Author-email: Koray Kirli <koraykirli@gmail.com>, Mathias Lesche <mathias.lesche@tu-dresden.de>, "Florian R. Hölzlwimmer" <git.ich@frhoelzlwimmer.de>, Till Hartmann <till.hartmann@bih-charite.de>, Thomas Sell <thomas.sell@bih-charite.de>, Travis Wrightsman <travis.wrightsman@uni-tuebingen.de>
9
+ License-File: LICENSE
10
+ Keywords: GRZ
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Requires-Python: >=3.12
15
+ Requires-Dist: pydantic<3,>=2.9.2
16
+ Description-Content-Type: text/markdown
17
+
18
+ # grz-pydantic-models
@@ -0,0 +1 @@
1
+ # grz-pydantic-models
@@ -0,0 +1,53 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "grz-pydantic-models"
7
+ authors = [
8
+ { name = "Koray Kirli", email = "koraykirli@gmail.com" },
9
+ { name = "Mathias Lesche", email = "mathias.lesche@tu-dresden.de" },
10
+ { name = "Florian R. Hölzlwimmer", email = "git.ich@frhoelzlwimmer.de" },
11
+ { name = "Till Hartmann", email = "till.hartmann@bih-charite.de" },
12
+ { name = "Thomas Sell", email = "thomas.sell@bih-charite.de" },
13
+ { name = "Travis Wrightsman", email = "travis.wrightsman@uni-tuebingen.de" },
14
+ ]
15
+ description = "Pydantic models for the GRZ metadata schema"
16
+ readme = "README.md"
17
+ requires-python = ">=3.12"
18
+ license-files = { paths = ["LICENSE"] }
19
+ classifiers = [
20
+ "Programming Language :: Python :: 3",
21
+ "License :: OSI Approved :: MIT License",
22
+ "Operating System :: OS Independent"
23
+ ]
24
+ keywords = ["GRZ"]
25
+ dynamic = ["version"]
26
+ dependencies = [
27
+ "pydantic >=2.9.2,<3",
28
+ ]
29
+
30
+ [project.urls]
31
+ Repository = "https://github.com/BfArM-MVH/grz-pydantic-models.git"
32
+ Issues = "https://github.com/BfArM-MVH/grz-pydantic-models/issues"
33
+ Changelog = "https://github.com/BfArM-MVH/grz-pydantic-models/commits/main"
34
+
35
+ [dependency-groups]
36
+ dev = [
37
+ "ruff >=0.11.0,<0.12",
38
+ "mypy >=1.13.0"
39
+ ]
40
+
41
+ [tool.hatch.version]
42
+ path = "src/grz_pydantic_models/__init__.py"
43
+
44
+ [tool.ruff]
45
+ line-length = 120
46
+
47
+ [tool.ruff.lint]
48
+ fixable = [
49
+ "I"
50
+ ]
51
+ select = [
52
+ "I"
53
+ ]
@@ -0,0 +1 @@
1
+ __version__ = "1.1.1"