Skip to content

Commit

Permalink
some docker compose fixes, trying to repair poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
ignacioreyes committed Aug 19, 2024
1 parent 9962e1c commit c6c1c6e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
6 changes: 6 additions & 0 deletions correction_step/tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
from tests.utils import atlas_extra_fields, lsst_extra_fields, ztf_extra_fields


@pytest.fixture(scope="session")
def docker_compose_command():
version = os.getenv("COMPOSE", "v2")
return "docker compose" if version == "v2" else "docker-compose"


@pytest.fixture(scope="session")
def docker_compose_file(pytestconfig):
return (pathlib.Path(pytestconfig.rootdir) / "tests/integration/docker-compose.yaml").absolute()
Expand Down
2 changes: 1 addition & 1 deletion libs/apf/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/apf/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ click = ">=7.1.1"
confluent-kafka = ">=1.4.0,<2.1.0"
fastavro = ">=0.22.0,<=1.6.1"
jinja2 = ">=2.10.0"
pandas = ">=1.2,<=2.0.1"
pandas = ">=1.2,<=2.2.1"
boto3 = "1.26.69"
prometheus-client = "0.16.0"
pyroscope-io = "0.8.4"
Expand Down
6 changes: 6 additions & 0 deletions reflector_step/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
from confluent_kafka.admin import AdminClient, NewTopic


@pytest.fixture(scope="session")
def docker_compose_command():
version = os.getenv("COMPOSE", "v2")
return "docker compose" if version == "v2" else "docker-compose"


@pytest.fixture(scope="session")
def docker_compose_file(pytestconfig):
try:
Expand Down
6 changes: 3 additions & 3 deletions sorting_hat_step/sorting_hat_step/utils/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ def generate_new_id(alerts: pd.DataFrame):
count = 0
for oid, group in alerts_wo_aid.groupby("oid"):
id_ = id_generator(group["ra"].iloc[0], group["dec"].iloc[0])
alerts_wo_aid.loc[
group.index, "aid"
] = f"AL{time.strftime('%y')}{encode(id_)}"
alerts_wo_aid.loc[group.index, "aid"] = (
f"AL{time.strftime('%y')}{encode(id_)}"
)
count += 1

logger.debug(
Expand Down
6 changes: 6 additions & 0 deletions xmatch_step/tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
from confluent_kafka.admin import AdminClient, NewTopic


@pytest.fixture(scope="session")
def docker_compose_command():
version = os.getenv("COMPOSE", "v2")
return "docker compose" if version == "v2" else "docker-compose"


@pytest.fixture(scope="session")
def docker_compose_file(pytestconfig):
return os.path.join(
Expand Down

0 comments on commit c6c1c6e

Please sign in to comment.