Skip to content

Commit

Permalink
🚧 test aries-askar with TestPyPI package
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Aug 20, 2024
1 parent af13400 commit 90cd53c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ ARG acapy_name="aries-cloudagent"
ARG acapy_version
ARG acapy_reqs=[askar,didcommv2]

ENV HOME="/home/$user" \
APP_ROOT="$HOME" \
ENV HOME="/home/$user"
ENV APP_ROOT="$HOME" \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8 \
PIP_NO_CACHE_DIR=off \
Expand Down Expand Up @@ -96,7 +96,9 @@ USER $user
COPY --from=build /src/dist/aries_cloudagent*.whl .
RUN aries_cloudagent_package=$(find ./ -name "aries_cloudagent*.whl" | head -n 1) && \
echo "Installing ${aries_cloudagent_package} ..." && \
pip install --no-cache-dir --find-links=. ${aries_cloudagent_package}${acapy_reqs} && \
pip install --no-cache-dir --find-links=. \
--extra-index-url https://test.pypi.org/simple/ \
${aries_cloudagent_package}${acapy_reqs} && \
rm aries_cloudagent*.whl && \
chmod +rx $(python -m site --user-site) $HOME/.local

Expand Down
28 changes: 15 additions & 13 deletions poetry.lock

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

9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ did-peer-4 = "^0.1.4"
uuid_utils = "^0.9.0"

# askar
aries-askar= { git = "https://github.com/ff137/aries-askar.git", branch = "test/order-by-scan", subdirectory = "wrappers/python", optional = true }
aries-askar-ff137 = {version = "^0.3.3b0", source = "testpypi", optional = true}
indy-credx= { version = "~1.1.1", optional = true }
indy-vdr= { version = "~0.4.0", optional = true }
anoncreds= { version = "0.2.0", optional = true }
Expand Down Expand Up @@ -82,7 +82,7 @@ pytest-ruff = "^0.4.1"

[tool.poetry.extras]
askar = [
"aries-askar",
"aries-askar-ff137",
"indy-credx",
"indy-vdr",
"anoncreds"
Expand All @@ -97,6 +97,11 @@ didcommv2 = [
[tool.poetry.scripts]
aca-py = "aries_cloudagent.__main__:script_main"

[[tool.poetry.source]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
priority = "supplemental"

[tool.ruff]
lint.select = ["B006", "C", "D", "E", "F"]

Expand Down

0 comments on commit 90cd53c

Please sign in to comment.