From 6c2f1d232af13bf1a5407f8ebc1ab9d66429055b Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 24 Oct 2024 15:30:51 -0700 Subject: [PATCH] move DEBUG=True packages into pip-available pkgs --- pyproject.toml | 19 +++++++++++------- uv.lock | 52 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 63 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0435e314..f416b987 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,8 +98,15 @@ ldap = [ "python-ldap>=3.4.3", "django-auth-ldap>=4.1.0", ] +debug = [ + # packages needed for running with DEBUG=True + "django-debug-toolbar>=4.4.6", + "djdt_flamegraph>=0.2.13", + "ipdb>=0.13.13", + "requests-tracker>=0.3.3", +] all = [ - "archivebox[sonic,ldap]" + "archivebox[sonic,ldap,debug]" ] [tool.uv] @@ -109,20 +116,18 @@ dev-dependencies = [ "pip>=24.2", "setuptools>=75.1.0", "wheel>=0.44.0", - "homebrew-pypi-poet>=0.10.0", # for: generating archivebox.rb brewfile list of python packages + "bumpver>=2023.1129", + #"homebrew-pypi-poet>=0.10.0", # for: generating archivebox.rb brewfile list of python packages ### DOCS "recommonmark>=0.7.1", "sphinx", "sphinx-rtd-theme>=2.0.0", ### DEBUGGING - "django-debug-toolbar>=4.4.6", - "djdt_flamegraph>=0.2.13", - "ipdb>=0.13.13", - "requests-tracker>=0.3.3", + "archivebox[debug]", "logfire[django]>=0.51.0", "opentelemetry-instrumentation-django>=0.47b0", "opentelemetry-instrumentation-sqlite3>=0.47b0", - "viztracer", # usage: viztracer ../.venv/bin/archivebox manage check + "viztracer", # usage: viztracer ../.venv/bin/archivebox manage check # "snakeviz", # usage: python -m cProfile -o flamegraph.prof ../.venv/bin/archivebox manage check ### TESTING "pytest>=8.3.3", diff --git a/uv.lock b/uv.lock index f320d661..1436d2f1 100644 --- a/uv.lock +++ b/uv.lock @@ -41,7 +41,7 @@ wheels = [ [[package]] name = "archivebox" -version = "0.8.5rc50" +version = "0.8.5rc53" source = { editable = "." } dependencies = [ { name = "atomicwrites" }, @@ -79,6 +79,7 @@ dependencies = [ { name = "sonic-client" }, { name = "supervisor" }, { name = "typeid-python" }, + { name = "tzdata" }, { name = "ulid-py" }, { name = "w3lib" }, { name = "yt-dlp" }, @@ -97,6 +98,7 @@ ldap = [ [package.dev-dependencies] dev = [ { name = "bottle" }, + { name = "bumpver" }, { name = "django-autotyping" }, { name = "django-debug-toolbar" }, { name = "djdt-flamegraph" }, @@ -160,6 +162,7 @@ requires-dist = [ { name = "sonic-client", specifier = ">=1.0.0" }, { name = "supervisor", specifier = ">=4.2.5" }, { name = "typeid-python", specifier = ">=0.3.1" }, + { name = "tzdata", specifier = ">=2024.2" }, { name = "ulid-py", specifier = ">=1.1.0" }, { name = "w3lib", specifier = ">=2.2.1" }, { name = "yt-dlp", specifier = ">=2024.8.6" }, @@ -168,6 +171,7 @@ requires-dist = [ [package.metadata.requires-dev] dev = [ { name = "bottle", specifier = ">=0.13.1" }, + { name = "bumpver", specifier = ">=2023.1129" }, { name = "django-autotyping", specifier = ">=0.5.1" }, { name = "django-debug-toolbar", specifier = ">=4.4.6" }, { name = "djdt-flamegraph", specifier = ">=0.2.13" }, @@ -385,6 +389,22 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/72/a9/0971251c4427c14b2a827dba3d910d4d3330dabf23d4278bf6d06a978847/brotlicffi-1.1.0.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:ce01c7316aebc7fce59da734286148b1d1b9455f89cf2c8a4dfce7d41db55c2d", size = 361760 }, ] +[[package]] +name = "bumpver" +version = "2023.1129" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "colorama" }, + { name = "lexid" }, + { name = "looseversion" }, + { name = "toml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/7e/31/7087ec411432b395e04c449e9c5569b6ef677bbb506a900251fe91070eb5/bumpver-2023.1129.tar.gz", hash = "sha256:2a09813066d92ae2eabf882d4f9a88ebd60135e828c424bdf7800e1723e15010", size = 110275 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f0/ee/147b9a684a9af36e429f75b6dc76c06f8086b114483de4bd4ae3a303fda9/bumpver-2023.1129-py2.py3-none-any.whl", hash = "sha256:b2a55c0224215b6ca1c3a0c99827749927b7c61cbb5dfef75565dbda8e75f687", size = 61957 }, +] + [[package]] name = "bx-django-utils" version = "79" @@ -561,6 +581,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/bf/9b/08c0432272d77b04803958a4598a51e2a4b51c06640af8b8f0f908c18bf2/charset_normalizer-3.4.0-py3-none-any.whl", hash = "sha256:fe9f97feb71aa9896b81973a7bbada8c49501dc73e58a10fcef6663af95e5079", size = 49446 }, ] +[[package]] +name = "click" +version = "8.1.7" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "platform_system == 'Windows'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de", size = 336121 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", size = 97941 }, +] + [[package]] name = "colorama" version = "0.4.6" @@ -1194,6 +1226,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d", size = 133271 }, ] +[[package]] +name = "lexid" +version = "2021.1006" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/60/0b/28a3f9abc75abbf1fa996eb2dd77e1e33a5d1aac62566e3f60a8ec8b8a22/lexid-2021.1006.tar.gz", hash = "sha256:509a3a4cc926d3dbf22b203b18a4c66c25e6473fb7c0e0d30374533ac28bafe5", size = 11525 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cf/e3/35764404a4b7e2021be1f88f42264c2e92e0c4720273559a62461ce64a47/lexid-2021.1006-py2.py3-none-any.whl", hash = "sha256:5526bb5606fd74c7add23320da5f02805bddd7c77916f2dc1943e6bada8605ed", size = 7587 }, +] + [[package]] name = "libcst" version = "1.5.0" @@ -1253,6 +1294,15 @@ django = [ { name = "opentelemetry-instrumentation-django" }, ] +[[package]] +name = "looseversion" +version = "1.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/64/7e/f13dc08e0712cc2eac8e56c7909ce2ac280dbffef2ffd87bd5277ce9d58b/looseversion-1.3.0.tar.gz", hash = "sha256:ebde65f3f6bb9531a81016c6fef3eb95a61181adc47b7f949e9c0ea47911669e", size = 8799 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4e/74/d5405b9b3b12e9176dff223576d7090bc161092878f533fd0dc23dd6ae1d/looseversion-1.3.0-py2.py3-none-any.whl", hash = "sha256:781ef477b45946fc03dd4c84ea87734b21137ecda0e1e122bcb3c8d16d2a56e0", size = 8237 }, +] + [[package]] name = "mailchecker" version = "6.0.11"