Skip to content

Commit

Permalink
Rename to bioimageio.engine
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Mar 2, 2024
1 parent 1acd249 commit a360d98
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Test server
run: python -m bioengine start-server --host=0.0.0.0 --port=9000 & wget http://127.0.0.1:9000/public/services/bioengine
run: python -m bioimageio.engine start-server --host=0.0.0.0 --port=9000 & wget http://127.0.0.1:9000/public/services/bioengine
2 changes: 1 addition & 1 deletion bioengine/__init__.py → bioimageio/engine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import asyncio
from bioengine.app_loader import load_apps
from bioimageio.engine.app_loader import load_apps
import logging

logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions bioengine/__main__.py → bioimageio/engine/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ def start_server(args):
f"--host={args.host}",
f"--port={args.port}",
f"--public-base-url={args.public_base_url}",
"--startup-functions=bioengine:register_bioengine_apps"
"--startup-functions=bioimageio.engine:register_bioengine_apps"
]
subprocess.run(command)

def connect_server(args):
from bioengine import connect_server
from engine import connect_server
server_url = args.server_url
loop = asyncio.get_event_loop()
loop.create_task(connect_server(server_url))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def run(self, server):
assert self.entrypoint

file_path = Path(__file__).parent.parent / "apps" / self.id / self.entrypoint
module_name = 'bioengine.apps.' + self.id.replace('-', '_')
module_name = 'bioimageio.engine.apps.' + self.id.replace('-', '_')
spec = importlib.util.spec_from_file_location(module_name, file_path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BioEngine stands as a beacon for developers and researchers alike, providing an
## Installation

```bash
pip install bioengine
pip install bioimageio.engine
```

## Using the BioEngine
Expand Down
21 changes: 0 additions & 21 deletions hypha-services-manifest.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
requires = ["setuptools", "wheel"]

[project]
name = "bioengine"
name = "bioimageio.engine"
version = "0.1.0"
readme = "README.md"
description = "Hypha Services for the BioEngine"
description = "BioEngine: Your AI Engine for Advanced BioImage Analysis in Containers"
dependencies = [
"imjoy-rpc",
"PyYAML",
Expand All @@ -17,5 +17,5 @@ dependencies = [
include-package-data = true

[tool.setuptools.packages.find]
include = ["bioengine*"]
include = ["bioimageio*"]
exclude = ["tests*", "scripts*"]

0 comments on commit a360d98

Please sign in to comment.