-
Notifications
You must be signed in to change notification settings - Fork 8
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 #68 from sameeul/update_bioformats_710
update bioformats to 7.1.0
- Loading branch information
Showing
16 changed files
with
170 additions
and
156 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
[flake8] | ||
docstring-convention=google | ||
max-line-length=88 | ||
exclude=noxfile.py,docs/*,tests/*,examples/*,.nox/*,build/*,bfio/OmeXml.py,setup.py | ||
exclude=noxfile.py,docs/*,tests/*,examples/*,.nox/*,build/* | ||
ignore=D105, W503, D100, D104, AZ100 | ||
extend-ignore = E203 |
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ jobs: | |
- uses: psf/black@stable | ||
with: | ||
options: "--check --color --verbose" | ||
src: "./bfio" | ||
src: "./src" |
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 @@ | ||
__pycache__ | ||
.vscode | ||
.venv | ||
venv | ||
docs/build | ||
dist | ||
build | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,123 @@ | ||
[build-system] | ||
# Run dependencies are also considered as build dependencies | ||
# due to cascading import situation in src/bfio/__init__.py | ||
requires = [ | ||
"setuptools", | ||
"wheel", | ||
"imagecodecs>=2021.2.26", | ||
"numpy", | ||
"ome-types>=0.4.2", | ||
"zarr>=2.6.1", | ||
"scyjava", | ||
"jpype1", | ||
"tifffile>=2022.8.12" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[project] | ||
name = "bfio" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"imagecodecs>=2021.2.26", | ||
"numpy", | ||
"ome-types>=0.4.2", | ||
"zarr>=2.6.1", | ||
"scyjava", | ||
"jpype1", | ||
"tifffile>=2022.8.12" | ||
] | ||
|
||
description = "Simple reading and writing classes for tiled tiffs using Bioformats." | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
|
||
authors = [ | ||
{name = "Nick Schaub", email = "nick.schaub@nih.gov"}, | ||
{name = "Sameeul Bashir Samee", email = "sameeul.samee@axleinfo.com"}, | ||
] | ||
|
||
maintainers = [ | ||
{name = "Sameeul Bashir Samee", email = "sameeul.samee@axleinfo.com"}, | ||
] | ||
|
||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
requires-python = ">=3.8" | ||
|
||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"ome_zarr", | ||
"requests>=2.26.0" | ||
] | ||
|
||
|
||
[project.urls] | ||
Documentation = "https://bfio.readthedocs.io/en/latest/" | ||
Repository = "https://github.com/PolusAI/bfio" | ||
|
||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "bfio.__version__"} | ||
|
||
|
||
[tool.setuptools] | ||
package-dir = {"" = "src"} | ||
include-package-data = true | ||
|
||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
namespaces = false | ||
|
||
|
||
[tool.setuptools.package-data] | ||
"*" = [ | ||
"VERSION" | ||
] | ||
|
||
|
||
[tool.bumpversion] | ||
current_version = "2.3.3" | ||
commit = true | ||
tag = true | ||
commit_args = "--no-verify" | ||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\-(?P<release>[a-z]+)(?P<build>\\d+))?" | ||
serialize = [ | ||
"{major}.{minor}.{patch}-{release}{build}", | ||
"{major}.{minor}.{patch}" | ||
] | ||
|
||
[tool.bumpversion.parts.release] | ||
optional_value = "_" | ||
first_value = "dev" | ||
values = [ | ||
"dev", | ||
"_" | ||
] | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "src/bfio/VERSION" | ||
search = "{current_version}" | ||
replace = "{new_version}" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "requirements/requirements-base.txt" | ||
search = "bfio[all]=={current_version}" | ||
replace = "bfio[all]=={new_version}" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "README.md" | ||
search = "{current_version}" | ||
replace = "{new_version}" | ||
|
||
|
||
[tool.codespell] | ||
skip = "*.svg,*.html" | ||
ignore-words-list = "utput" |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import absolute_import, unicode_literals | ||
|
||
import logging | ||
import pathlib | ||
|
||
JAR_VERSION = None | ||
|
||
logging.basicConfig( | ||
format="%(asctime)s - %(name)-8s - %(levelname)-8s - %(message)s", | ||
datefmt="%d-%b-%y %H:%M:%S", | ||
) | ||
logger = logging.getLogger("bfio.init") | ||
|
||
log_level = logging.WARNING | ||
|
||
try: | ||
with open(pathlib.Path(__file__).parent.joinpath("VERSION"), "r") as fh: | ||
__version__ = fh.read() | ||
except FileNotFoundError: | ||
logger.info( | ||
"Could not find VERSION. " | ||
+ "This is likely due to using a local/cloned version of bfio." | ||
) | ||
__version__ = "0.0.0" | ||
logger.info("VERSION = {}".format(__version__)) | ||
|
||
|
||
from .bfio import BioReader, BioWriter, start # NOQA: F401, E402 |
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
File renamed without changes.
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
Oops, something went wrong.