djaploy 1.3.1__tar.gz → 1.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {djaploy-1.3.1 → djaploy-1.3.2}/PKG-INFO +1 -1
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/bin/django_pyinfra.py +17 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy.egg-info/PKG-INFO +1 -1
- {djaploy-1.3.1 → djaploy-1.3.2}/pyproject.toml +1 -1
- {djaploy-1.3.1 → djaploy-1.3.2}/LICENSE +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/README.md +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/app.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/borg/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/borg/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/borg/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/janitor/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/janitor/apps.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/janitor/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/janitor/infra/commands/createjanitoruser.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/janitor/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/nginx/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/nginx/apps.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/nginx/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/nginx/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/rclone/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/rclone/apps.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/rclone/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/rclone/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/sync_certs/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/sync_certs/apps.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/sync_certs/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/sync_certs/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/systemd/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/systemd/apps.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/systemd/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/systemd/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/tailscale/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/tailscale/apps.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/tailscale/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/tailscale/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/versioning/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/versioning/apps.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/versioning/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/apps/versioning/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/artifact.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/bin/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/bin/gunicornherder.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/builtin_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/certificates.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/changelog.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/_utils.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/activate.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/configure.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/deploy.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/restore.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/rollback.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/status.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/commands/sync_certs.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/config.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/deploy.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/discovery.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/infra/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/infra/bluegreen.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/infra/djaploy_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/infra/templates.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/infra/utils.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/management/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/management/commands/__init__.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/management/commands/djaploy.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/management/commands/restore_backup.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/management/commands/sync_certs.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/management/commands/update_certs.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/management/commands/verify.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/management/utils.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/notifications.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/utils.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/version.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy/versioning.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy.egg-info/SOURCES.txt +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy.egg-info/dependency_links.txt +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy.egg-info/entry_points.txt +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy.egg-info/requires.txt +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/djaploy.egg-info/top_level.txt +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/setup.cfg +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/tests/test_bluegreen.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/tests/test_borg.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/tests/test_config.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/tests/test_deploy_scripts.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/tests/test_discovery.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/tests/test_gunicornherder.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/tests/test_hooks.py +0 -0
- {djaploy-1.3.1 → djaploy-1.3.2}/tests/test_versioning.py +0 -0
|
@@ -7,6 +7,23 @@ This script sets up Django environment before running pyinfra,
|
|
|
7
7
|
allowing inventory files to use Django models and settings.
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
+
# Monkey-patch before anything else is imported. pyinfra_cli does this in its
|
|
11
|
+
# own __init__, but by then Django has been set up and ssl/threading are already
|
|
12
|
+
# imported — gevent warns about exactly that ("Monkey-patching ssl after ssl has
|
|
13
|
+
# already been imported ... may silently lead to incorrect behaviour"), which is
|
|
14
|
+
# not a warning to live with in a tool that exists to open SSH connections.
|
|
15
|
+
#
|
|
16
|
+
# It also breaks Django projects outright. Patching walks every live object and
|
|
17
|
+
# isinstance()-checks it; that resolves any LazyObject it touches. Django's
|
|
18
|
+
# `django.contrib.admin.sites.site` is one, and it exists whenever anything has
|
|
19
|
+
# imported `django.contrib.admin` — Wagtail does, via
|
|
20
|
+
# `wagtail/admin/admin_url_finder.py`. If the project doesn't have the admin app
|
|
21
|
+
# in INSTALLED_APPS, resolving it raises `LookupError: No installed app with
|
|
22
|
+
# label 'admin'` before pyinfra has connected to anything.
|
|
23
|
+
from gevent import monkey
|
|
24
|
+
|
|
25
|
+
monkey.patch_all()
|
|
26
|
+
|
|
10
27
|
import os
|
|
11
28
|
import sys
|
|
12
29
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|