bioio-conversion 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.
- bioio_conversion-0.1.0/.github/CODEOWNERS +1 -0
- bioio_conversion-0.1.0/.github/ISSUE_TEMPLATE/bug_report.md +31 -0
- bioio_conversion-0.1.0/.github/ISSUE_TEMPLATE/feature_request.md +28 -0
- bioio_conversion-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +23 -0
- bioio_conversion-0.1.0/.github/dependabot.yml +10 -0
- bioio_conversion-0.1.0/.github/workflows/ci.yml +126 -0
- bioio_conversion-0.1.0/.gitignore +113 -0
- bioio_conversion-0.1.0/.pre-commit-config.yaml +31 -0
- bioio_conversion-0.1.0/CODE_OF_CONDUCT.md +73 -0
- bioio_conversion-0.1.0/Justfile +52 -0
- bioio_conversion-0.1.0/LICENSE +28 -0
- bioio_conversion-0.1.0/MANIFEST.in +2 -0
- bioio_conversion-0.1.0/PKG-INFO +425 -0
- bioio_conversion-0.1.0/README.md +386 -0
- bioio_conversion-0.1.0/bioio_conversion/__init__.py +10 -0
- bioio_conversion-0.1.0/bioio_conversion/bin/cli_batch_convert.py +111 -0
- bioio_conversion-0.1.0/bioio_conversion/bin/cli_convert.py +466 -0
- bioio_conversion-0.1.0/bioio_conversion/cluster.py +45 -0
- bioio_conversion-0.1.0/bioio_conversion/converters/__init__.py +11 -0
- bioio_conversion-0.1.0/bioio_conversion/converters/batch_converter.py +131 -0
- bioio_conversion-0.1.0/bioio_conversion/converters/ome_zarr_converter.py +422 -0
- bioio_conversion-0.1.0/bioio_conversion.egg-info/PKG-INFO +425 -0
- bioio_conversion-0.1.0/bioio_conversion.egg-info/SOURCES.txt +30 -0
- bioio_conversion-0.1.0/bioio_conversion.egg-info/dependency_links.txt +1 -0
- bioio_conversion-0.1.0/bioio_conversion.egg-info/entry_points.txt +3 -0
- bioio_conversion-0.1.0/bioio_conversion.egg-info/not-zip-safe +1 -0
- bioio_conversion-0.1.0/bioio_conversion.egg-info/requires.txt +26 -0
- bioio_conversion-0.1.0/bioio_conversion.egg-info/top_level.txt +4 -0
- bioio_conversion-0.1.0/docs/conf.py +35 -0
- bioio_conversion-0.1.0/docs/index.rst +17 -0
- bioio_conversion-0.1.0/pyproject.toml +124 -0
- bioio_conversion-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @bioio-devs/trusted-developers
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug Report
|
|
3
|
+
about: Create a report to help us improve bioio-ome-zarr
|
|
4
|
+
labels: bug
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<!--
|
|
8
|
+
⚠️⚠️ Please do the following before submitting: ⚠️⚠️
|
|
9
|
+
|
|
10
|
+
📖 Please read our Code of Conduct.
|
|
11
|
+
🔎 Please search existing issues to avoid creating duplicates.
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
### Describe the Bug
|
|
15
|
+
|
|
16
|
+
<!-- A clear and concise description of the bug. -->
|
|
17
|
+
|
|
18
|
+
### Expected Behavior
|
|
19
|
+
|
|
20
|
+
<!-- What did you expect to happen instead? -->
|
|
21
|
+
|
|
22
|
+
### Reproduction
|
|
23
|
+
|
|
24
|
+
<!-- Steps to reproduce the behavior and/or a minimal example that exhibits the behavior. -->
|
|
25
|
+
|
|
26
|
+
### Environment
|
|
27
|
+
|
|
28
|
+
<!-- Any additional information about your environment. -->
|
|
29
|
+
|
|
30
|
+
- OS Version: _[e.g. macOS 11.3.1]_
|
|
31
|
+
- bioio-ome-zarr Version: _[e.g. 0.5.0]_
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature Request
|
|
3
|
+
about: Suggest a feature for bioio-ome-zarr
|
|
4
|
+
labels: enhancement
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<!--
|
|
8
|
+
⚠️⚠️ Please do the following before submitting: ⚠️⚠️
|
|
9
|
+
|
|
10
|
+
📖 Please read our Code of Conduct.
|
|
11
|
+
🔎 Please search existing issues to avoid creating duplicates.
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
### Feature Description
|
|
15
|
+
|
|
16
|
+
<!-- A clear and concise description of the feature you're requesting. -->
|
|
17
|
+
|
|
18
|
+
### Use Case
|
|
19
|
+
|
|
20
|
+
<!-- Please provide a use case to help us understand your request in context. -->
|
|
21
|
+
|
|
22
|
+
### Solution
|
|
23
|
+
|
|
24
|
+
<!-- Please describe your ideal solution. -->
|
|
25
|
+
|
|
26
|
+
### Alternatives
|
|
27
|
+
|
|
28
|
+
<!-- Please describe any alternatives you've considered, even if you've dismissed them. -->
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Thank you for submitting a pull request!
|
|
3
|
+
|
|
4
|
+
⚠️⚠️ Please do the following before submitting: ⚠️⚠️
|
|
5
|
+
|
|
6
|
+
- Read the CONTRIBUTING.md guide and make sure you've followed all the steps given.
|
|
7
|
+
- Ensure that the code is up-to-date with the `main` branch.
|
|
8
|
+
- Provide or update documentation for any feature added by your pull request.
|
|
9
|
+
- Provide relevant tests for your feature or bug fix.
|
|
10
|
+
|
|
11
|
+
❗️ Also: ❗️
|
|
12
|
+
|
|
13
|
+
Please name your pull request {development-type}/{short-description}.
|
|
14
|
+
For example: feature/read-tiff-files
|
|
15
|
+
-->
|
|
16
|
+
|
|
17
|
+
### Link to Relevant Issue
|
|
18
|
+
|
|
19
|
+
This pull request resolves #
|
|
20
|
+
|
|
21
|
+
### Description of Changes
|
|
22
|
+
|
|
23
|
+
<!-- Include a description of the proposed changes. -->
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
2
|
+
|
|
3
|
+
version: 2
|
|
4
|
+
updates:
|
|
5
|
+
- package-ecosystem: "github-actions"
|
|
6
|
+
directory: "/"
|
|
7
|
+
schedule:
|
|
8
|
+
interval: "monthly"
|
|
9
|
+
commit-message:
|
|
10
|
+
prefix: "ci(dependabot):"
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
tags:
|
|
8
|
+
- "v*"
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
schedule:
|
|
13
|
+
# Run every Monday at 10:24:00 PST
|
|
14
|
+
- cron: "24 18 * * 1"
|
|
15
|
+
workflow_dispatch:
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
# Check that all files listed in manifest make it into build
|
|
19
|
+
check-manifest:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v5
|
|
24
|
+
- uses: actions/setup-python@v6
|
|
25
|
+
with:
|
|
26
|
+
python-version: "3.x"
|
|
27
|
+
- run: pip install check-manifest && check-manifest
|
|
28
|
+
|
|
29
|
+
# Check tests pass on multiple Python and OS combinations
|
|
30
|
+
test:
|
|
31
|
+
runs-on: ${{ matrix.os }}
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
python-version: [ 3.11, 3.12, 3.13]
|
|
36
|
+
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
37
|
+
permissions:
|
|
38
|
+
id-token: write # This is required for requesting the JWT
|
|
39
|
+
contents: read # This is required for actions/checkout
|
|
40
|
+
|
|
41
|
+
steps:
|
|
42
|
+
- uses: actions/checkout@v5
|
|
43
|
+
with:
|
|
44
|
+
lfs: true # For test files
|
|
45
|
+
- uses: actions/setup-python@v6
|
|
46
|
+
with:
|
|
47
|
+
python-version: ${{ matrix.python-version }}
|
|
48
|
+
- uses: extractions/setup-just@v3
|
|
49
|
+
env:
|
|
50
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
51
|
+
- name: Install Dependencies
|
|
52
|
+
run: |
|
|
53
|
+
python -m pip install --upgrade pip
|
|
54
|
+
pip install .[test]
|
|
55
|
+
- name: Run Tests
|
|
56
|
+
run: just test
|
|
57
|
+
- name: Upload Codecov
|
|
58
|
+
uses: codecov/codecov-action@v5
|
|
59
|
+
|
|
60
|
+
# Check linting, formating, types, etc.
|
|
61
|
+
lint:
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v5
|
|
66
|
+
- name: Set up Python
|
|
67
|
+
uses: actions/setup-python@v6
|
|
68
|
+
with:
|
|
69
|
+
python-version: "3.13"
|
|
70
|
+
- uses: extractions/setup-just@v3
|
|
71
|
+
env:
|
|
72
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
73
|
+
- name: Install Dependencies
|
|
74
|
+
run: |
|
|
75
|
+
python -m pip install --upgrade pip
|
|
76
|
+
pip install .[lint]
|
|
77
|
+
- name: Lint
|
|
78
|
+
run: just lint
|
|
79
|
+
|
|
80
|
+
# Publish to PyPI if test, lint, and manifest checks passed
|
|
81
|
+
publish:
|
|
82
|
+
if: "success() && startsWith(github.ref, 'refs/tags/')"
|
|
83
|
+
needs: [check-manifest, test, lint]
|
|
84
|
+
runs-on: ubuntu-latest
|
|
85
|
+
environment: release
|
|
86
|
+
permissions:
|
|
87
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
88
|
+
|
|
89
|
+
steps:
|
|
90
|
+
- uses: actions/checkout@v5
|
|
91
|
+
- name: Set up Python
|
|
92
|
+
uses: actions/setup-python@v6
|
|
93
|
+
with:
|
|
94
|
+
python-version: "3.11"
|
|
95
|
+
- name: Install Dependencies
|
|
96
|
+
run: |
|
|
97
|
+
python -m pip install --upgrade pip
|
|
98
|
+
pip install build wheel
|
|
99
|
+
- name: Build Package
|
|
100
|
+
run: |
|
|
101
|
+
python -m build
|
|
102
|
+
- name: Publish to PyPI
|
|
103
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
104
|
+
|
|
105
|
+
# GitHub does not provide a "all status checks must pass" option
|
|
106
|
+
# in branch protection settings. Instead, you have to specify exactly
|
|
107
|
+
# what status checks want to require to pass before merging. However,
|
|
108
|
+
# naming each individual check would be effectively impossible.
|
|
109
|
+
# Therefore, by creating this stage in every repo in the org we can
|
|
110
|
+
# require "Report Result" to pass before merging and this stage can
|
|
111
|
+
# represent the result of the other checks where it only passes if
|
|
112
|
+
# all the other checks pass.
|
|
113
|
+
results:
|
|
114
|
+
if: ${{ always() && github.event_name == 'pull_request' }}
|
|
115
|
+
needs: [check-manifest, test, lint]
|
|
116
|
+
runs-on: ubuntu-latest
|
|
117
|
+
name: Report Result
|
|
118
|
+
steps:
|
|
119
|
+
- run: exit 1
|
|
120
|
+
# see https://stackoverflow.com/a/67532120/4907315
|
|
121
|
+
if: >-
|
|
122
|
+
${{
|
|
123
|
+
contains(needs.*.result, 'failure')
|
|
124
|
+
|| contains(needs.*.result, 'cancelled')
|
|
125
|
+
}}
|
|
126
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
env/
|
|
12
|
+
build/
|
|
13
|
+
develop-eggs/
|
|
14
|
+
dist/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
parts/
|
|
21
|
+
sdist/
|
|
22
|
+
var/
|
|
23
|
+
wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
|
|
28
|
+
# OS generated files
|
|
29
|
+
.DS_Store
|
|
30
|
+
|
|
31
|
+
# PyInstaller
|
|
32
|
+
# Usually these files are written by a python script from a template
|
|
33
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
34
|
+
*.manifest
|
|
35
|
+
*.spec
|
|
36
|
+
|
|
37
|
+
# Installer logs
|
|
38
|
+
pip-log.txt
|
|
39
|
+
pip-delete-this-directory.txt
|
|
40
|
+
|
|
41
|
+
# Unit test / coverage reports
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
|
|
53
|
+
# Translations
|
|
54
|
+
*.mo
|
|
55
|
+
*.pot
|
|
56
|
+
|
|
57
|
+
# Django stuff:
|
|
58
|
+
*.log
|
|
59
|
+
local_settings.py
|
|
60
|
+
|
|
61
|
+
# Flask stuff:
|
|
62
|
+
instance/
|
|
63
|
+
.webassets-cache
|
|
64
|
+
|
|
65
|
+
# Scrapy stuff:
|
|
66
|
+
.scrapy
|
|
67
|
+
|
|
68
|
+
# Sphinx documentation
|
|
69
|
+
docs/_build/
|
|
70
|
+
docs/bioio.*rst
|
|
71
|
+
docs/modules.rst
|
|
72
|
+
|
|
73
|
+
# PyBuilder
|
|
74
|
+
target/
|
|
75
|
+
|
|
76
|
+
# Jupyter Notebook
|
|
77
|
+
.ipynb_checkpoints
|
|
78
|
+
|
|
79
|
+
# pyenv
|
|
80
|
+
.python-version
|
|
81
|
+
|
|
82
|
+
# celery beat schedule file
|
|
83
|
+
celerybeat-schedule
|
|
84
|
+
|
|
85
|
+
# Dask
|
|
86
|
+
dask-worker-space
|
|
87
|
+
|
|
88
|
+
# SageMath parsed files
|
|
89
|
+
*.sage.py
|
|
90
|
+
|
|
91
|
+
# dotenv
|
|
92
|
+
.env
|
|
93
|
+
|
|
94
|
+
# virtualenv
|
|
95
|
+
.venv
|
|
96
|
+
venv/
|
|
97
|
+
ENV/
|
|
98
|
+
|
|
99
|
+
# Spyder project settings
|
|
100
|
+
.spyderproject
|
|
101
|
+
.spyproject
|
|
102
|
+
|
|
103
|
+
# Rope project settings
|
|
104
|
+
.ropeproject
|
|
105
|
+
|
|
106
|
+
# mkdocs documentation
|
|
107
|
+
/site
|
|
108
|
+
|
|
109
|
+
# mypy
|
|
110
|
+
.mypy_cache/
|
|
111
|
+
|
|
112
|
+
# VSCode
|
|
113
|
+
.vscode
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
files: bioio_conversion
|
|
2
|
+
repos:
|
|
3
|
+
|
|
4
|
+
- repo: https://github.com/PyCQA/isort
|
|
5
|
+
rev: 5.12.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: isort
|
|
8
|
+
|
|
9
|
+
- repo: https://github.com/myint/autoflake
|
|
10
|
+
rev: v2.2.0
|
|
11
|
+
hooks:
|
|
12
|
+
- id: autoflake
|
|
13
|
+
args: ["--in-place", "--remove-all-unused-imports"]
|
|
14
|
+
|
|
15
|
+
- repo: https://github.com/psf/black
|
|
16
|
+
rev: 23.3.0
|
|
17
|
+
hooks:
|
|
18
|
+
- id: black
|
|
19
|
+
|
|
20
|
+
- repo: https://github.com/PyCQA/flake8
|
|
21
|
+
rev: 6.0.0
|
|
22
|
+
hooks:
|
|
23
|
+
- id: flake8
|
|
24
|
+
additional_dependencies:
|
|
25
|
+
- flake8-typing-imports>=1.9.0
|
|
26
|
+
- flake8-pyprojecttoml
|
|
27
|
+
|
|
28
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
29
|
+
rev: v1.4.1
|
|
30
|
+
hooks:
|
|
31
|
+
- id: mypy
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
|
15
|
+
include:
|
|
16
|
+
|
|
17
|
+
- Using welcoming and inclusive language
|
|
18
|
+
- Being respectful of differing viewpoints and experiences
|
|
19
|
+
- Gracefully accepting constructive criticism
|
|
20
|
+
- Focusing on what is best for the community
|
|
21
|
+
- Showing empathy towards other community members
|
|
22
|
+
|
|
23
|
+
Examples of unacceptable behavior by participants include:
|
|
24
|
+
|
|
25
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
- Public or private harassment
|
|
29
|
+
- Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
## Our Responsibilities
|
|
35
|
+
|
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
+
response to any instances of unacceptable behavior.
|
|
39
|
+
|
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
+
threatening, offensive, or harmful.
|
|
45
|
+
|
|
46
|
+
## Scope
|
|
47
|
+
|
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
+
when an individual is representing the project or its community. Examples of
|
|
50
|
+
representing a project or community include using an official project e-mail
|
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
|
53
|
+
further defined and clarified by project maintainers.
|
|
54
|
+
|
|
55
|
+
## Enforcement
|
|
56
|
+
|
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
+
reported by contacting any of the maintainers of this project and
|
|
59
|
+
we will attempt to resolve the issues with respect and dignity.
|
|
60
|
+
|
|
61
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
62
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
63
|
+
members of the project's leadership.
|
|
64
|
+
|
|
65
|
+
## Attribution
|
|
66
|
+
|
|
67
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
68
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
69
|
+
|
|
70
|
+
[homepage]: https://www.contributor-covenant.org
|
|
71
|
+
|
|
72
|
+
For answers to common questions about this code of conduct, see
|
|
73
|
+
https://www.contributor-covenant.org/faq
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# clean all build, python, and lint files
|
|
2
|
+
clean:
|
|
3
|
+
rm -fr build
|
|
4
|
+
rm -fr docs/_build
|
|
5
|
+
rm -fr dist
|
|
6
|
+
rm -fr .eggs
|
|
7
|
+
find . -name '*.egg-info' -exec rm -fr {} +
|
|
8
|
+
find . -name '*.egg' -exec rm -f {} +
|
|
9
|
+
find . -name '*.pyc' -exec rm -f {} +
|
|
10
|
+
find . -name '*.pyo' -exec rm -f {} +
|
|
11
|
+
find . -name '*~' -exec rm -f {} +
|
|
12
|
+
find . -name '__pycache__' -exec rm -fr {} +
|
|
13
|
+
rm -fr .coverage coverage.xml htmlcov .pytest_cache .mypy_cache
|
|
14
|
+
|
|
15
|
+
# install with all deps
|
|
16
|
+
install:
|
|
17
|
+
pip install -e .[lint,test,docs,dev]
|
|
18
|
+
pre-commit install
|
|
19
|
+
|
|
20
|
+
# lint, format, and check all files
|
|
21
|
+
lint:
|
|
22
|
+
pre-commit run --all-files
|
|
23
|
+
|
|
24
|
+
# run tests
|
|
25
|
+
test:
|
|
26
|
+
pytest --cov-report xml --cov-report html --cov=bioio_conversion bioio_conversion/tests
|
|
27
|
+
|
|
28
|
+
# run lint then tests
|
|
29
|
+
build:
|
|
30
|
+
just lint
|
|
31
|
+
just test
|
|
32
|
+
|
|
33
|
+
# generate Sphinx HTML documentation
|
|
34
|
+
generate-docs:
|
|
35
|
+
rm -f docs/bioio_conversion*.rst
|
|
36
|
+
rm -f docs/modules.rst
|
|
37
|
+
sphinx-apidoc -o docs bioio_conversion **/tests
|
|
38
|
+
python -msphinx docs docs/_build
|
|
39
|
+
|
|
40
|
+
# serve docs in browser
|
|
41
|
+
serve-docs:
|
|
42
|
+
just generate-docs
|
|
43
|
+
python -m webbrowser -t "file://$(shell pwd | sed 's|\\|/|g')/docs/_build/index.html"
|
|
44
|
+
|
|
45
|
+
# tag a new version
|
|
46
|
+
tag-for-release version:
|
|
47
|
+
git tag -a "{{version}}" -m "{{version}}"
|
|
48
|
+
echo "Tagged: $(git tag --sort=-version:refname | head -n 1)"
|
|
49
|
+
|
|
50
|
+
# push tags for release
|
|
51
|
+
release:
|
|
52
|
+
git push --follow-tags
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Bio IO Devs
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|