mobiedantic 0.1.0__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.
- mobiedantic-0.1.0/.gitattributes +2 -0
- mobiedantic-0.1.0/.github/workflows/publish.yml +84 -0
- mobiedantic-0.1.0/.github/workflows/test.yml +51 -0
- mobiedantic-0.1.0/.gitignore +8 -0
- mobiedantic-0.1.0/LICENSE.txt +11 -0
- mobiedantic-0.1.0/PKG-INFO +45 -0
- mobiedantic-0.1.0/README.md +21 -0
- mobiedantic-0.1.0/environment.yml +7 -0
- mobiedantic-0.1.0/pixi.lock +13183 -0
- mobiedantic-0.1.0/pyproject.toml +112 -0
- mobiedantic-0.1.0/sandbox/Testing.ipynb +255 -0
- mobiedantic-0.1.0/src/mobiedantic/__init__.py +170 -0
- mobiedantic-0.1.0/src/mobiedantic/generated.py +1285 -0
- mobiedantic-0.1.0/tests/__init__.py +0 -0
- mobiedantic-0.1.0/tests/test_api.py +57 -0
- mobiedantic-0.1.0/tests/test_schemas.py +110 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'mobiedantic-*'
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
name: Build wheel and source distribution
|
|
16
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
|
|
19
|
+
environment: release
|
|
20
|
+
permissions:
|
|
21
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout code
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
|
+
with:
|
|
27
|
+
fetch-depth: 0
|
|
28
|
+
|
|
29
|
+
- name: Set up Python
|
|
30
|
+
uses: actions/setup-python@v5
|
|
31
|
+
with:
|
|
32
|
+
python-version: '3.11'
|
|
33
|
+
cache: 'pip'
|
|
34
|
+
|
|
35
|
+
- name: Setup Miniconda
|
|
36
|
+
uses: conda-incubator/setup-miniconda@v3.0.4
|
|
37
|
+
with:
|
|
38
|
+
mamba-version: "*"
|
|
39
|
+
channels: conda-forge
|
|
40
|
+
|
|
41
|
+
- name: Install dependencies
|
|
42
|
+
run: |
|
|
43
|
+
python -m pip install --upgrade pip
|
|
44
|
+
pip install hatch
|
|
45
|
+
|
|
46
|
+
- name: Install Hatch-Conda
|
|
47
|
+
run: pip install --upgrade hatch-conda
|
|
48
|
+
|
|
49
|
+
- name: Build package
|
|
50
|
+
run: hatch build
|
|
51
|
+
|
|
52
|
+
- name: Test package
|
|
53
|
+
run: hatch test
|
|
54
|
+
|
|
55
|
+
- name: Upload artifacts
|
|
56
|
+
uses: actions/upload-artifact@v4
|
|
57
|
+
with:
|
|
58
|
+
name: python-artifacts
|
|
59
|
+
path: dist/*
|
|
60
|
+
if-no-files-found: error
|
|
61
|
+
|
|
62
|
+
publish:
|
|
63
|
+
name: Publish to PyPI
|
|
64
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
65
|
+
needs:
|
|
66
|
+
- build
|
|
67
|
+
runs-on: ubuntu-latest
|
|
68
|
+
|
|
69
|
+
permissions:
|
|
70
|
+
contents: write
|
|
71
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
72
|
+
|
|
73
|
+
steps:
|
|
74
|
+
- name: Download Python artifacts
|
|
75
|
+
uses: actions/download-artifact@v4
|
|
76
|
+
with:
|
|
77
|
+
name: python-artifacts
|
|
78
|
+
path: dist
|
|
79
|
+
- name: Add assets to release
|
|
80
|
+
uses: softprops/action-gh-release@v2
|
|
81
|
+
with:
|
|
82
|
+
files: dist/*
|
|
83
|
+
- name: Publish package distributions to PyPI
|
|
84
|
+
uses: pypa/gh-action-pypi-publish@v1.9.0
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: test-${{ github.head_ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
env:
|
|
14
|
+
PYTHONUNBUFFERED: "1"
|
|
15
|
+
FORCE_COLOR: "1"
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
run:
|
|
19
|
+
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
|
|
20
|
+
runs-on: ${{ matrix.os }}
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
os: [ubuntu-latest, macos-latest]
|
|
25
|
+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
|
|
26
|
+
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v3
|
|
29
|
+
|
|
30
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
31
|
+
uses: actions/setup-python@v4
|
|
32
|
+
with:
|
|
33
|
+
python-version: ${{ matrix.python-version }}
|
|
34
|
+
|
|
35
|
+
- name: Setup Miniconda
|
|
36
|
+
uses: conda-incubator/setup-miniconda@v3.0.4
|
|
37
|
+
with:
|
|
38
|
+
mamba-version: "*"
|
|
39
|
+
channels: conda-forge
|
|
40
|
+
|
|
41
|
+
- name: Install Hatch
|
|
42
|
+
run: pip install --upgrade hatch
|
|
43
|
+
|
|
44
|
+
- name: Install Hatch-Conda
|
|
45
|
+
run: pip install --upgrade hatch-conda
|
|
46
|
+
|
|
47
|
+
- name: Run static analysis
|
|
48
|
+
run: hatch fmt --check
|
|
49
|
+
|
|
50
|
+
- name: Run tests
|
|
51
|
+
run: hatch test --python ${{ matrix.python-version }} --cover --randomize --parallel --retries 2 --retry-delay 1
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright (c) 2024-present Friedrich Miescher Institute for Biomedical Research (FMI), Basel (Switzerland).
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: mobiedantic
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Project-URL: Documentation, https://github.com/fmi-faim/mobiedantic#readme
|
|
5
|
+
Project-URL: Issues, https://github.com/fmi-faim/mobiedantic/issues
|
|
6
|
+
Project-URL: Source, https://github.com/fmi-faim/mobiedantic
|
|
7
|
+
Author-email: Jan Eglinger <jan.eglinger@fmi.ch>
|
|
8
|
+
License-Expression: BSD-3-Clause
|
|
9
|
+
License-File: LICENSE.txt
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
18
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
19
|
+
Requires-Python: >=3.8
|
|
20
|
+
Requires-Dist: pydantic
|
|
21
|
+
Provides-Extra: hatch
|
|
22
|
+
Requires-Dist: hatch-conda<0.6,>=0.5.2; extra == 'hatch'
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# mobiedantic
|
|
26
|
+
|
|
27
|
+
[](https://pypi.org/project/mobiedantic)
|
|
28
|
+
[](https://pypi.org/project/mobiedantic)
|
|
29
|
+
|
|
30
|
+
-----
|
|
31
|
+
|
|
32
|
+
## Table of Contents
|
|
33
|
+
|
|
34
|
+
- [Installation](#installation)
|
|
35
|
+
- [License](#license)
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
|
|
39
|
+
```console
|
|
40
|
+
pip install mobiedantic
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
`mobiedantic` is distributed under the terms of the [BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html) license.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# mobiedantic
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/mobiedantic)
|
|
4
|
+
[](https://pypi.org/project/mobiedantic)
|
|
5
|
+
|
|
6
|
+
-----
|
|
7
|
+
|
|
8
|
+
## Table of Contents
|
|
9
|
+
|
|
10
|
+
- [Installation](#installation)
|
|
11
|
+
- [License](#license)
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```console
|
|
16
|
+
pip install mobiedantic
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
`mobiedantic` is distributed under the terms of the [BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html) license.
|