Skip to content

Commit

Permalink
Bumpt to 4.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodar01 committed Sep 16, 2024
1 parent 78a4455 commit c4c8306
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 120 deletions.
2 changes: 1 addition & 1 deletion cellprofiler_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.2.7"
__version__ = "4.2.8"
55 changes: 0 additions & 55 deletions cellprofiler_core/__main__.py
Original file line number Diff line number Diff line change
@@ -1,55 +0,0 @@
import os
import pathlib

import click

import cellprofiler_core.commands

CONTEXT_SETTINGS = dict(auto_envvar_prefix="COMPLEX")


class Command(click.MultiCommand):
def get_command(self, context, name):
try:
name = f"cellprofiler_core.commands._{name}_command"

imported_module = __import__(name, None, None, ["command"])
except ImportError:
return

return imported_module.command

def list_commands(self, context):
command_names = []

commands_pathname = cellprofiler_core.commands.__file__

commands_directory = pathlib.Path(commands_pathname).parent

for filename in os.listdir(commands_directory):
if filename.endswith("_command.py") and filename.startswith("_"):
command_name = filename[1:-11]

command_names += [command_name]

command_names.sort()

return command_names


class Environment:
def __init__(self):
pass


pass_environment = click.make_pass_decorator(Environment, ensure=True)


@click.command(cls=Command, context_settings=CONTEXT_SETTINGS)
@pass_environment
def main(context):
pass


if __name__ == "__main__":
main({})
Empty file.
40 changes: 0 additions & 40 deletions cellprofiler_core/commands/_pipeline_command.py

This file was deleted.

15 changes: 0 additions & 15 deletions cellprofiler_core/commands/_worker_command.py

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

project = "CellProfiler-core"

release = "4.2.7"
release = "4.2.8"

templates_path = ["_templates"]
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ filterwarnings =
ignore::DeprecationWarning
ignore::FutureWarning
minversion =
4.2.7
4.2.8
testpaths =
./tests/
12 changes: 5 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
extras_require={
"dev": [
"black==19.10b0",
"click>=7.1.2",
"pre-commit==2.2.0",
"sphinx==3.1.2",
"twine==3.1.1",
],
"test": ["pytest==5.4.1"],
"test": ["pytest~=7.4.1"],
"wx": ["wxPython==4.1.0"],
},
install_requires=[
Expand All @@ -29,8 +27,8 @@
"numpy>=1.18.2",
"prokaryote==2.4.4",
"psutil>=5.7.0",
"python-bioformats==4.0.7",
"python-javabridge==4.0.3",
"python-bioformats>=4.0.7,<5",
"python-javabridge>=4.0.3,<5",
"pyzmq~=22.3",
"scikit-image==0.18.3",
"scipy>=1.4.1",
Expand All @@ -41,6 +39,6 @@
packages=setuptools.find_packages(exclude=["tests"]),
python_requires=">=3.8",
url="https://github.com/CellProfiler/core",
version="4.2.7",
version="4.2.8",
zip_safe=False,
)

0 comments on commit c4c8306

Please sign in to comment.