Skip to content

Instantly share code, notes, and snippets.

--- stdlibs/py312.py 2024-05-06 13:52:22
+++ stdlibs/py313.py 2024-05-06 13:52:31
@@ -32,7 +32,6 @@
"_compat_pickle",
"_compression",
"_contextvars",
- "_crypt",
"_csv",
"_ctypes",
"_ctypes_test",
diff --git a/honesty/cache.py b/honesty/cache.py
index 2f0abd8..bdd1829 100644
--- a/honesty/cache.py
+++ b/honesty/cache.py
@@ -4,6 +4,7 @@ Cache-related stuff.
import asyncio
import os
+import sys
import posixpath
@thatch
thatch / gist:d8f98c08d344d2e766df38e080502008
Created September 26, 2022 01:25
top pypi name prefixes
djan 15418
odoo 13389
pyth 5165
free 3681
flas 2670
open 2513
data 1994
simp 1775
test 1690
pyte 1659
[tim@rygel tmp]$ unzip -l frozenlist-1.3.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Archive: frozenlist-1.3.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Length Date Time Name
--------- ---------- ----- ----
0 2022-08-02 21:15 frozenlist.libs/
0 2022-08-02 21:15 frozenlist/
0 2022-08-02 21:15 frozenlist-1.3.1.dist-info/
7 2022-08-02 21:15 frozenlist/py.typed
2983 2022-08-02 21:15 frozenlist/_frozenlist.pyx
1470 2022-08-02 21:15 frozenlist/__init__.pyi
(.venv) [tim@rygel dowsing]$ python -m dowsing.pep517 $(python -m honesty.cmdline extract frozenlist==1.3.1) | jq .
/usr/lib/python3.10/runpy.py:126: RuntimeWarning: 'dowsing.pep517' found in sys.modules after import of package 'dowsing', but prior to execution of 'dowsing.pep517'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
{
"get_requires_for_build_sdist": [
"setuptools >= 46.4.0",
"wheel >= 0.37.0",
"setuptools"
],
"get_requires_for_build_wheel": [
3492 [:python_version>="3.5.2"]
2191 [:python_version < "3.8"]
1990 [:python_version>="3.5"]
1709 [:python_version=="2.6"]
1345 [:python_version < "3.7"]
1064 [:python_version>="3.5.3"]
858 [:python_version < "3.4"]
702 [:python_version < "3.5"]
591 [:python_version == "2.7"]
588 [:python_version<'3.0']
13036 >=3.6
3556 >=3.7
2650 >=3.5
1344 >=3.8
1329 >=3
833 >=3.6.0
692 >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
574 >=3.4
470 >=2.7
425 >=3.6,<4
$ diff -u stdlibs_project_310.txt isort_310.txt
--- stdlibs_project_310.txt 2022-08-06 07:47:55.758156376 -0700
+++ isort_310.txt 2022-08-06 07:48:40.121487917 -0700
@@ -1,104 +1,7 @@
-__future__
-__hello__
-__phello__
-_abc
-_aix_support
_ast
└── 3.7.5> failed
['/home/tim/code/thx/.thx/venv/3.7.5/bin/pip', 'install', '-U', '-r', PosixPath('/home/tim/code/thx/requirements.txt'), '-r', PosixPath('/home/tim/code/thx/requirements-dev.txt')]
Collecting aioitertools==v0.10.0b1
Using cached aioitertools-0.10.0b1-py3-none-any.whl (23 kB)
Collecting click==8.1.3
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting packaging==21.3
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting rich==12.3.0
Using cached rich-12.3.0-py3-none-any.whl (232 kB)
from typing import Any
import sys
import zstandard
def find_optimum_blocksize(cctx: Any, past: bytes, data: bytes) -> int:
optimum_blocksize = None
optimum_total = None
blocksize = 128*1024