forked from CellProfiler/core
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #9 from DavidStirling/compat-4-2-8
Update to 4.2.8
- Loading branch information
Showing
13 changed files
with
53 additions
and
139 deletions.
There are no files selected for viewing
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 +1 @@ | ||
__version__ = "4.2.6" | ||
__version__ = "4.2.8" |
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,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({}) | ||
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
Empty file.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class PollTimeoutException(Exception): | ||
"""Exception issued by a timeout from polling""" | ||
|
||
pass |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ | |
|
||
project = "CellProfiler-core" | ||
|
||
release = "4.2.6" | ||
release = "4.2.8" | ||
|
||
templates_path = ["_templates"] |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ filterwarnings = | |
ignore::DeprecationWarning | ||
ignore::FutureWarning | ||
minversion = | ||
4.2.6 | ||
4.2.8 | ||
testpaths = | ||
./tests/ |
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