Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename package #68

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/code-quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: psf/[email protected]
with:
src: "./controller ./examples"
src: "./acapy_controller ./examples"
- uses: chartboost/ruff-action@v1
with:
src: "./controller ./examples"
src: "./acapy_controller ./examples"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ ENV PATH="/opt/poetry/bin:$PATH"
RUN poetry config virtualenvs.in-project true

# Setup project
RUN mkdir controller && touch controller/__init__.py
RUN mkdir acapy_controller && touch acapy_controller/__init__.py
COPY pyproject.toml poetry.lock ./
ARG install_flags=--no-dev
RUN poetry install ${install_flags}

COPY controller/ controller/
COPY acapy_controller/ acapy_controller/

ENTRYPOINT ["poetry", "run"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ services:
# acapy_url: https://github.com/Indicio-tech/aries-cloudagent-python@c1fed3c13d33e65979b08dd1eaf79dc84e3ce504
ports:
- "3001:3001"
volumes:
- ./configs:/configs:ro,z
command: >
start
--label Alice
Expand Down Expand Up @@ -49,8 +47,6 @@ services:
# acapy_url: https://github.com/Indicio-tech/aries-cloudagent-python@c1fed3c13d33e65979b08dd1eaf79dc84e3ce504
ports:
- "3002:3001"
volumes:
- ./configs:/configs:ro,z
command: >
start
--label Bob
Expand Down Expand Up @@ -98,7 +94,7 @@ services:
- ALICE=http://alice:3001
- BOB=http://bob:3001
volumes:
- ./controller:/usr/src/app/controller:z
- ./acapy_controller:/usr/src/app/acapy_controller:z
- ./tests:/usr/src/app/tests:z
entrypoint: "poetry run pytest"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion examples/json_ld/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ services:
- ALICE=http://alice:3001
- BOB=http://bob:3001
volumes:
- ./../../controller:/usr/src/app/controller:ro,z
- ./../../acapy_controller:/usr/src/app/acapy_controller:ro,z
- ./example.py:/usr/src/app/example.py:ro,z
command: python -m example
depends_on:
Expand Down
8 changes: 4 additions & 4 deletions examples/json_ld/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from os import getenv
from uuid import uuid4

from controller import Controller
from controller.logging import logging_to_stdout, pause_for_input, section
from controller.models import DIDResult, V20PresExRecord
from controller.protocols import (
from acapy_controller import Controller
from acapy_controller.logging import logging_to_stdout, pause_for_input, section
from acapy_controller.models import DIDResult, V20PresExRecord
from acapy_controller.protocols import (
didexchange,
indy_anoncred_onboard,
jsonld_issue_credential,
Expand Down
2 changes: 1 addition & 1 deletion examples/mediation/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ services:
- BOB=http://bob:3001
- MEDIATOR=http://mediator:3001
volumes:
- ../../controller:/usr/src/app/controller:z
- ../../acapy_controller:/usr/src/app/acapy_controller:z
- ./example.py:/usr/src/app/example.py:ro,z
command: python -m example
depends_on:
Expand Down
6 changes: 3 additions & 3 deletions examples/mediation/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import asyncio
from os import getenv

from controller import Controller
from controller.logging import logging_to_stdout
from controller.protocols import (
from acapy_controller import Controller
from acapy_controller.logging import logging_to_stdout
from acapy_controller.protocols import (
connection,
didexchange,
request_mediation_v1,
Expand Down
8 changes: 4 additions & 4 deletions examples/presenting_revoked_credential/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from os import getenv
import time

from controller import Controller
from controller.logging import logging_to_stdout
from controller.models import V20PresExRecord, V20PresExRecordList
from controller.protocols import (
from acapy_controller import Controller
from acapy_controller.logging import logging_to_stdout
from acapy_controller.models import V20PresExRecord, V20PresExRecordList
from acapy_controller.protocols import (
didexchange,
indy_anoncred_credential_artifacts,
indy_anoncred_onboard,
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ services:
- ALICE=http://alice:3001
- BOB=http://bob:3001
volumes:
- ../../controller:/usr/src/app/controller:z
- ../../acapy_controller:/usr/src/app/acapy_controller:z
- ./example.py:/usr/src/app/example.py:ro,z
command: python -m example
depends_on:
Expand Down
6 changes: 3 additions & 3 deletions examples/simple/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import asyncio
from os import getenv

from controller import Controller
from controller.logging import logging_to_stdout
from controller.protocols import connection, didexchange
from acapy_controller import Controller
from acapy_controller.logging import logging_to_stdout
from acapy_controller.protocols import connection, didexchange

ALICE = getenv("ALICE", "http://alice:3001")
BOB = getenv("BOB", "http://bob:3001")
Expand Down
8 changes: 4 additions & 4 deletions examples/tunnels/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from os import getenv
import time

from controller import Controller
from controller.logging import logging_to_stdout
from controller.models import V20PresExRecord, V20PresExRecordList
from controller.protocols import (
from acapy_controller import Controller
from acapy_controller.logging import logging_to_stdout
from acapy_controller.models import V20PresExRecord, V20PresExRecordList
from acapy_controller.protocols import (
didexchange,
indy_anoncred_credential_artifacts,
indy_anoncred_onboard,
Expand Down
Loading
Loading