Fix: Dependencies

This commit is contained in:
sinergia 2024-06-12 10:06:59 -05:00
parent 6e5d358c73
commit dde24b9739
3 changed files with 6 additions and 6 deletions

View File

@ -9,8 +9,8 @@ RUN apt install software-properties-common -y \
RUN apt-get install -y --no-install-recommends \
python3.9 python3.9-distutils python3.9-dev \
python3.10 python3.10-distutils python3.10-dev \
python3.11 python3.10-distutils python3.10-dev \
python3.12 python3.10-distutils python3.10-dev \
python3.11 python3.11-distutils python3.11-dev \
python3.12 python3-setuptools python3.12-dev \
wget \
ca-certificates

View File

@ -15,7 +15,7 @@ dev-shell:
docker run --rm -ti -v "$(PWD):/app" -w /app --name facho-cli facho bash
test:
docker run -t -v $(PWD):/app -w /app facho sh -c 'cd /app; python3.11 setup.py test'
docker run -t -v $(PWD):/app -w /app facho sh -c 'cd /app; python3.12 setup.py test'
tox:
docker run -it -v $(PWD)/:/app -w /app facho tox

View File

@ -5,15 +5,15 @@
from datetime import datetime
import pytest
from facho import fe
from facho import fe
import helpers
def test_xmlsigned_build(monkeypatch):
#openssl req -x509 -sha256 -nodes -subj "/CN=test" -days 1 -newkey rsa:2048 -keyout example.key -out example.pem
#openssl pkcs12 -export -out example.p12 -inkey example.key -in example.pem
# openssl req -x509 -sha256 -nodes -subj "/CN=test" -days 1 -newkey rsa:2048 -keyout example.key -out example.pem
# openssl pkcs12 -export -out example.p12 -inkey example.key -in example.pem
signer = fe.DianXMLExtensionSigner('./tests/example.p12')
xml = fe.FeXML('Invoice',