mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 04:18:09 +00:00
Do not build wheels and use a single dist/ directory (#11)
Only sdists are used for deployment.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,7 +10,6 @@ __pycache__/
|
|||||||
# Distribution / packaging
|
# Distribution / packaging
|
||||||
.Python
|
.Python
|
||||||
build/
|
build/
|
||||||
doveauth/dist/
|
|
||||||
develop-eggs/
|
develop-eggs/
|
||||||
dist/
|
dist/
|
||||||
downloads/
|
downloads/
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ def _install_doveauth() -> None:
|
|||||||
"""Setup chatctl."""
|
"""Setup chatctl."""
|
||||||
doveauth_filename = "doveauth-0.1.tar.gz"
|
doveauth_filename = "doveauth-0.1.tar.gz"
|
||||||
doveauth_path = importlib.resources.files(__package__).joinpath(
|
doveauth_path = importlib.resources.files(__package__).joinpath(
|
||||||
f"../../../doveauth/dist/{doveauth_filename}"
|
f"../../../dist/{doveauth_filename}"
|
||||||
)
|
)
|
||||||
remote_path = f"/tmp/{doveauth_filename}"
|
remote_path = f"/tmp/{doveauth_filename}"
|
||||||
if Path(str(doveauth_path)).exists():
|
if Path(str(doveauth_path)).exists():
|
||||||
@@ -35,7 +35,7 @@ def _install_filtermail() -> None:
|
|||||||
"""Setup filtermail."""
|
"""Setup filtermail."""
|
||||||
filtermail_filename = "filtermail-0.1.tar.gz"
|
filtermail_filename = "filtermail-0.1.tar.gz"
|
||||||
filtermail_path = importlib.resources.files(__package__).joinpath(
|
filtermail_path = importlib.resources.files(__package__).joinpath(
|
||||||
f"../../../filtermail/dist/{filtermail_filename}"
|
f"../../../dist/{filtermail_filename}"
|
||||||
)
|
)
|
||||||
remote_path = f"/tmp/{filtermail_filename}"
|
remote_path = f"/tmp/{filtermail_filename}"
|
||||||
if Path(str(filtermail_path)).exists():
|
if Path(str(filtermail_path)).exists():
|
||||||
|
|||||||
@@ -2,15 +2,9 @@
|
|||||||
: ${CHATMAIL_DOMAIN:=c1.testrun.org}
|
: ${CHATMAIL_DOMAIN:=c1.testrun.org}
|
||||||
export CHATMAIL_DOMAIN
|
export CHATMAIL_DOMAIN
|
||||||
|
|
||||||
pushd doveauth
|
venv/bin/python3 -m build --sdist doveauth --outdir dist
|
||||||
venv/bin/python3 -m build
|
venv/bin/python3 -m build --sdist filtermail --outdir dist
|
||||||
popd
|
|
||||||
|
|
||||||
pushd filtermail
|
|
||||||
venv/bin/python3 -m build
|
|
||||||
popd
|
|
||||||
|
|
||||||
chatmail-pyinfra/venv/bin/pyinfra --ssh-user root "$CHATMAIL_DOMAIN" deploy.py
|
chatmail-pyinfra/venv/bin/pyinfra --ssh-user root "$CHATMAIL_DOMAIN" deploy.py
|
||||||
|
|
||||||
#rm -r doveauth/dist/
|
rm -r dist/
|
||||||
#rm -r filtermail/dist/
|
|
||||||
|
|||||||
@@ -5,12 +5,11 @@ chatmail-pyinfra/venv/bin/pip install -e chatmail-pyinfra
|
|||||||
chatmail-pyinfra/venv/bin/pip install -e doveauth
|
chatmail-pyinfra/venv/bin/pip install -e doveauth
|
||||||
|
|
||||||
python3 -m venv doveauth/venv
|
python3 -m venv doveauth/venv
|
||||||
doveauth/venv/bin/pip install pytest build
|
doveauth/venv/bin/pip install pytest
|
||||||
doveauth/venv/bin/pip install -e doveauth
|
doveauth/venv/bin/pip install -e doveauth
|
||||||
|
|
||||||
python3 -m venv online-tests/venv
|
python3 -m venv online-tests/venv
|
||||||
online-tests/venv/bin/pip install pytest pytest-timeout pdbpp deltachat
|
online-tests/venv/bin/pip install pytest pytest-timeout pdbpp deltachat
|
||||||
|
|
||||||
python3 -m venv filtermail/venv
|
python3 -m venv venv
|
||||||
filtermail/venv/bin/pip install build
|
venv/bin/pip install build
|
||||||
filtermail/venv/bin/pip install -e filtermail
|
|
||||||
|
|||||||
Reference in New Issue
Block a user