mirror of
https://github.com/andrewyng/openworker.git
synced 2026-11-04 13:27:11 +00:00
The server, connectors tool, acceptor and team board no longer install as commands. They stay runnable as modules (python -m coworker.server.run, …) for development.
18 lines
610 B
Python
18 lines
610 B
Python
"""The package puts one command on the path: `openworker`. The server, the connectors
|
|
tool, the acceptor and the team board are run as modules while they are not products."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
if sys.version_info >= (3, 11):
|
|
import tomllib
|
|
else: # pragma: no cover
|
|
import tomli as tomllib
|
|
|
|
|
|
def test_only_openworker_is_a_console_script() -> None:
|
|
pyproject = tomllib.loads((Path(__file__).resolve().parents[1] / "pyproject.toml").read_text(encoding="utf-8"))
|
|
assert pyproject["project"]["scripts"] == {"openworker": "coworker.cli:main"}
|