bioio-imagexpress 0.2.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_imagexpress-0.2.0/.cookiecutter.yaml +10 -0
- bioio_imagexpress-0.2.0/.editorconfig +24 -0
- bioio_imagexpress-0.2.0/.gitattributes +1 -0
- bioio_imagexpress-0.2.0/.github/CODEOWNERS +1 -0
- bioio_imagexpress-0.2.0/.github/ISSUE_TEMPLATE/bug_report.md +31 -0
- bioio_imagexpress-0.2.0/.github/ISSUE_TEMPLATE/feature_request.md +28 -0
- bioio_imagexpress-0.2.0/.github/PULL_REQUEST_TEMPLATE.md +23 -0
- bioio_imagexpress-0.2.0/.github/dependabot.yml +10 -0
- bioio_imagexpress-0.2.0/.github/workflows/ci.yml +129 -0
- bioio_imagexpress-0.2.0/.gitignore +108 -0
- bioio_imagexpress-0.2.0/.pre-commit-config.yaml +31 -0
- bioio_imagexpress-0.2.0/CODE_OF_CONDUCT.md +73 -0
- bioio_imagexpress-0.2.0/CONTRIBUTING.md +91 -0
- bioio_imagexpress-0.2.0/Justfile +52 -0
- bioio_imagexpress-0.2.0/LICENSE +21 -0
- bioio_imagexpress-0.2.0/MANIFEST.in +1 -0
- bioio_imagexpress-0.2.0/PKG-INFO +69 -0
- bioio_imagexpress-0.2.0/README.md +33 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress/__init__.py +18 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress/acquisition.py +463 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress/py.typed +0 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress/reader.py +482 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress/reader_metadata.py +37 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/PKG-INFO +69 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/SOURCES.txt +32 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/dependency_links.txt +1 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/entry_points.txt +2 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/not-zip-safe +1 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/requires.txt +17 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/scm_file_list.json +96 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/scm_version.json +8 -0
- bioio_imagexpress-0.2.0/bioio_imagexpress.egg-info/top_level.txt +2 -0
- bioio_imagexpress-0.2.0/pyproject.toml +117 -0
- bioio_imagexpress-0.2.0/setup.cfg +4 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
default_context:
|
|
2
|
+
author_name: "bioio-devs"
|
|
3
|
+
author_email: "brian.whitney@alleninstitute.org"
|
|
4
|
+
hosting_github_username_or_org: "bioio-devs"
|
|
5
|
+
project_name: "bioio-imagexpress"
|
|
6
|
+
project_slug: "bioio-imagexpress"
|
|
7
|
+
python_slug: "bioio_imagexpress"
|
|
8
|
+
project_short_description: "A BioIO reader plugin for reading Molecular Devices ImageXpress (multifile) images."
|
|
9
|
+
hosting_pypi_username: "bioio-devs"
|
|
10
|
+
license: "MIT License"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
|
|
3
|
+
root = true
|
|
4
|
+
|
|
5
|
+
[*]
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 4
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
charset = utf-8
|
|
11
|
+
end_of_line = lf
|
|
12
|
+
|
|
13
|
+
[*.yml]
|
|
14
|
+
indent_size = 2
|
|
15
|
+
|
|
16
|
+
[*.bat]
|
|
17
|
+
indent_style = tab
|
|
18
|
+
end_of_line = crlf
|
|
19
|
+
|
|
20
|
+
[LICENSE]
|
|
21
|
+
insert_final_newline = false
|
|
22
|
+
|
|
23
|
+
[Makefile]
|
|
24
|
+
indent_style = tab
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bioio_imagexpress/tests/resources/** filter=lfs diff=lfs merge=lfs -text
|
|
@@ -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-imagexpress
|
|
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-imagexpress Version: _[e.g. 0.5.0]_
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature Request
|
|
3
|
+
about: Suggest a feature for bioio-imagexpress
|
|
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,129 @@
|
|
|
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
|
+
# <minute [0,59]> <hour [0,23]> <day of the month [1,31]>
|
|
14
|
+
# <month of the year [1,12]> <day of the week [0,6]>
|
|
15
|
+
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
|
|
16
|
+
# Run every Monday at 10:24:00 PST
|
|
17
|
+
# (Since these CRONs are used by a lot of people -
|
|
18
|
+
# let's be nice to the servers and schedule it _not_ on the hour)
|
|
19
|
+
- cron: "24 18 * * 1"
|
|
20
|
+
workflow_dispatch:
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
# Check that all files listed in manifest make it into build
|
|
24
|
+
check-manifest:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v3
|
|
29
|
+
- uses: actions/setup-python@v4
|
|
30
|
+
with:
|
|
31
|
+
python-version: "3.x"
|
|
32
|
+
- run: pip install check-manifest && check-manifest
|
|
33
|
+
|
|
34
|
+
# Check tests pass on multiple Python and OS combinations
|
|
35
|
+
test:
|
|
36
|
+
runs-on: ${{ matrix.os }}
|
|
37
|
+
strategy:
|
|
38
|
+
fail-fast: false
|
|
39
|
+
matrix:
|
|
40
|
+
python-version: ["3.10", 3.11, 3.12, 3.13]
|
|
41
|
+
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
42
|
+
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v3
|
|
45
|
+
with:
|
|
46
|
+
lfs: true
|
|
47
|
+
- name: Set up Python
|
|
48
|
+
uses: actions/setup-python@v4
|
|
49
|
+
with:
|
|
50
|
+
python-version: ${{ matrix.python-version }}
|
|
51
|
+
- uses: extractions/setup-just@v1
|
|
52
|
+
env:
|
|
53
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
54
|
+
- name: Install Dependencies
|
|
55
|
+
run: |
|
|
56
|
+
python -m pip install --upgrade pip
|
|
57
|
+
pip install .[test]
|
|
58
|
+
- name: Run Tests
|
|
59
|
+
run: just test
|
|
60
|
+
- name: Upload Codecov
|
|
61
|
+
uses: codecov/codecov-action@v3
|
|
62
|
+
|
|
63
|
+
# Check linting, formating, types, etc.
|
|
64
|
+
lint:
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@v3
|
|
69
|
+
- name: Set up Python
|
|
70
|
+
uses: actions/setup-python@v4
|
|
71
|
+
with:
|
|
72
|
+
python-version: "3.11"
|
|
73
|
+
- uses: extractions/setup-just@v1
|
|
74
|
+
env:
|
|
75
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
76
|
+
- name: Install Dependencies
|
|
77
|
+
run: |
|
|
78
|
+
python -m pip install --upgrade pip
|
|
79
|
+
pip install .[lint]
|
|
80
|
+
- name: Lint
|
|
81
|
+
run: just lint
|
|
82
|
+
|
|
83
|
+
# Publish to PyPI if test, lint, and manifest checks passed
|
|
84
|
+
publish:
|
|
85
|
+
if: "success() && startsWith(github.ref, 'refs/tags/')"
|
|
86
|
+
needs: [check-manifest, test, lint]
|
|
87
|
+
runs-on: ubuntu-latest
|
|
88
|
+
environment: release
|
|
89
|
+
permissions:
|
|
90
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
91
|
+
|
|
92
|
+
steps:
|
|
93
|
+
- uses: actions/checkout@v3
|
|
94
|
+
- name: Set up Python
|
|
95
|
+
uses: actions/setup-python@v4
|
|
96
|
+
with:
|
|
97
|
+
python-version: "3.11"
|
|
98
|
+
- name: Install Dependencies
|
|
99
|
+
run: |
|
|
100
|
+
python -m pip install --upgrade pip
|
|
101
|
+
pip install build wheel
|
|
102
|
+
- name: Build Package
|
|
103
|
+
run: |
|
|
104
|
+
python -m build
|
|
105
|
+
- name: Publish to PyPI
|
|
106
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
107
|
+
|
|
108
|
+
# GitHub does not provide a "all status checks must pass" option
|
|
109
|
+
# in branch protection settings. Instead, you have to specify exactly
|
|
110
|
+
# what status checks want to require to pass before merging. However,
|
|
111
|
+
# naming each individual check would be effectively impossible.
|
|
112
|
+
# Therefore, by creating this stage in every repo in the org we can
|
|
113
|
+
# require "Report Result" to pass before merging and this stage can
|
|
114
|
+
# represent the result of the other checks where it only passes if
|
|
115
|
+
# all the other checks pass.
|
|
116
|
+
results:
|
|
117
|
+
if: ${{ always() && github.event_name == 'pull_request' }}
|
|
118
|
+
needs: [check-manifest, test, lint]
|
|
119
|
+
runs-on: ubuntu-latest
|
|
120
|
+
name: Report Result
|
|
121
|
+
steps:
|
|
122
|
+
- run: exit 1
|
|
123
|
+
# see https://stackoverflow.com/a/67532120/4907315
|
|
124
|
+
if: >-
|
|
125
|
+
${{
|
|
126
|
+
contains(needs.*.result, 'failure')
|
|
127
|
+
|| contains(needs.*.result, 'cancelled')
|
|
128
|
+
}}
|
|
129
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
# PyBuilder
|
|
69
|
+
target/
|
|
70
|
+
|
|
71
|
+
# Jupyter Notebook
|
|
72
|
+
.ipynb_checkpoints
|
|
73
|
+
|
|
74
|
+
# pyenv
|
|
75
|
+
.python-version
|
|
76
|
+
|
|
77
|
+
# celery beat schedule file
|
|
78
|
+
celerybeat-schedule
|
|
79
|
+
|
|
80
|
+
# Dask
|
|
81
|
+
dask-worker-space
|
|
82
|
+
|
|
83
|
+
# SageMath parsed files
|
|
84
|
+
*.sage.py
|
|
85
|
+
|
|
86
|
+
# dotenv
|
|
87
|
+
.env
|
|
88
|
+
|
|
89
|
+
# virtualenv
|
|
90
|
+
.venv
|
|
91
|
+
venv/
|
|
92
|
+
ENV/
|
|
93
|
+
|
|
94
|
+
# Spyder project settings
|
|
95
|
+
.spyderproject
|
|
96
|
+
.spyproject
|
|
97
|
+
|
|
98
|
+
# Rope project settings
|
|
99
|
+
.ropeproject
|
|
100
|
+
|
|
101
|
+
# mkdocs documentation
|
|
102
|
+
/site
|
|
103
|
+
|
|
104
|
+
# mypy
|
|
105
|
+
.mypy_cache/
|
|
106
|
+
|
|
107
|
+
# VSCode
|
|
108
|
+
.vscode
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
files: bioio_imagexpress
|
|
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,91 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions are welcome, and they are greatly appreciated! Every little bit
|
|
4
|
+
helps, and credit will always be given.
|
|
5
|
+
|
|
6
|
+
## Developer Installation
|
|
7
|
+
|
|
8
|
+
If something goes wrong at any point during installing the library please see how
|
|
9
|
+
[our CI/CD on GitHub Actions](.github/workflows/build-main.yml) installs and builds the
|
|
10
|
+
project as it will always be the most up-to-date.
|
|
11
|
+
|
|
12
|
+
## Get Started!
|
|
13
|
+
|
|
14
|
+
Ready to contribute? Here's how to set up `bioio-imagexpress` for local development.
|
|
15
|
+
|
|
16
|
+
1. Fork the `bioio-imagexpress` repo on GitHub.
|
|
17
|
+
|
|
18
|
+
2. Clone your fork locally:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git clone git@github.com:{your_name_here}/bioio-imagexpress.git
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
3. Install the project in editable mode. (It is also recommended to work in a virtualenv or anaconda environment):
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
cd bioio-imagexpress/
|
|
28
|
+
just install
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
4. Create a branch for local development:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
git checkout -b {your_development_type}/short-description
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Ex: feature/read-tiff-files or bugfix/handle-file-not-found<br>
|
|
38
|
+
Now you can make your changes locally.
|
|
39
|
+
|
|
40
|
+
5. When you're done making changes, check that your changes pass linting and
|
|
41
|
+
tests with [just](https://github.com/casey/just):
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
just build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
6. Commit your changes and push your branch to GitHub:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git add .
|
|
51
|
+
git commit -m "Your detailed description of your changes."
|
|
52
|
+
git push origin {your_development_type}/short-description
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
7. Submit a pull request through the GitHub website.
|
|
56
|
+
|
|
57
|
+
## Just Commands
|
|
58
|
+
|
|
59
|
+
For development commands we use [just](https://github.com/casey/just).
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
just
|
|
63
|
+
```
|
|
64
|
+
```
|
|
65
|
+
Available recipes:
|
|
66
|
+
build # run lint and then run tests
|
|
67
|
+
clean # clean all build, python, and lint files
|
|
68
|
+
default # list all available commands
|
|
69
|
+
install # install with all deps
|
|
70
|
+
lint # lint, format, and check all files
|
|
71
|
+
release # release a new version
|
|
72
|
+
tag-for-release version # tag a new version
|
|
73
|
+
test # run tests
|
|
74
|
+
update-from-cookiecutter # update this repo using latest cookiecutter-bioio-reader
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Deploying
|
|
78
|
+
|
|
79
|
+
A reminder for the maintainers on how to deploy.
|
|
80
|
+
Make sure the main branch is checked out and all desired changes
|
|
81
|
+
are merged. Then run:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
just tag-for-release "vX.Y.Z"
|
|
85
|
+
just release
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The presence of a tag starting with "v" will trigger the `publish` step in the
|
|
89
|
+
main github workflow, which will build the package and upload it to PyPI. The
|
|
90
|
+
version will be injected into the package metadata by
|
|
91
|
+
[`setuptools-scm`](https://github.com/pypa/setuptools_scm)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# list all available commands
|
|
2
|
+
default:
|
|
3
|
+
just --list
|
|
4
|
+
|
|
5
|
+
# clean all build, python, and lint files
|
|
6
|
+
clean:
|
|
7
|
+
rm -fr build
|
|
8
|
+
rm -fr dist
|
|
9
|
+
rm -fr .eggs
|
|
10
|
+
find . -name '*.egg-info' -exec rm -fr {} +
|
|
11
|
+
find . -name '*.egg' -exec rm -f {} +
|
|
12
|
+
find . -name '*.pyc' -exec rm -f {} +
|
|
13
|
+
find . -name '*.pyo' -exec rm -f {} +
|
|
14
|
+
find . -name '*~' -exec rm -f {} +
|
|
15
|
+
find . -name '__pycache__' -exec rm -fr {} +
|
|
16
|
+
rm -fr .coverage
|
|
17
|
+
rm -fr coverage.xml
|
|
18
|
+
rm -fr htmlcov
|
|
19
|
+
rm -fr .pytest_cache
|
|
20
|
+
rm -fr .mypy_cache
|
|
21
|
+
|
|
22
|
+
# install with all deps
|
|
23
|
+
install:
|
|
24
|
+
pip install -e .[lint,test]
|
|
25
|
+
pre-commit install
|
|
26
|
+
|
|
27
|
+
# lint, format, and check all files
|
|
28
|
+
lint:
|
|
29
|
+
pre-commit run --all-files
|
|
30
|
+
|
|
31
|
+
# run tests
|
|
32
|
+
test:
|
|
33
|
+
pytest --cov-report xml --cov-report html --cov=bioio_imagexpress bioio_imagexpress/tests
|
|
34
|
+
|
|
35
|
+
# run lint and then run tests
|
|
36
|
+
build:
|
|
37
|
+
just lint
|
|
38
|
+
just test
|
|
39
|
+
|
|
40
|
+
# tag a new version
|
|
41
|
+
tag-for-release version:
|
|
42
|
+
git tag -a "{{version}}" -m "{{version}}"
|
|
43
|
+
echo "Tagged: $(git tag --sort=-version:refname| head -n 1)"
|
|
44
|
+
|
|
45
|
+
# release a new version
|
|
46
|
+
release:
|
|
47
|
+
git push --follow-tags
|
|
48
|
+
|
|
49
|
+
# update this repo using latest cookiecutter-bioio-reader
|
|
50
|
+
update-from-cookiecutter:
|
|
51
|
+
pip install cookiecutter
|
|
52
|
+
cookiecutter gh:bioio-devs/cookiecutter-bioio-reader --config-file .cookiecutter.yaml --no-input --overwrite-if-exists --output-dir ..
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, bioio-devs
|
|
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 @@
|
|
|
1
|
+
exclude bioio_imagexpress/tests/**
|