!pip install 'django-weasyprint==0.5.2'
Collecting django-weasyprint==0.5.2
Downloading django_weasyprint-0.5.2-py2.py3-none-any.whl (6.9 kB)
Collecting WeasyPrint
Downloading weasyprint-53.4-py3-none-any.whl (242 kB)
|████████████████████████████████| 242 kB 6.3 MB/s
Collecting Django>=1.8
Downloading Django-3.2.9-py3-none-any.whl (7.9 MB)
|████████████████████████████████| 7.9 MB 27.1 MB/s
Collecting cssselect2>=0.1
Downloading cssselect2-0.4.1-py3-none-any.whl (13 kB)
Collecting pydyf>=0.0.3
Downloading pydyf-0.1.2-py3-none-any.whl (6.4 kB)
Requirement already satisfied: cffi>=0.6 in /shared-libs/python3.7/py-core/lib/python3.7/site-packages (from WeasyPrint->django-weasyprint==0.5.2) (1.15.0)
Collecting fonttools[woff]>=4.0.0
Downloading fonttools-4.28.2-py3-none-any.whl (880 kB)
|████████████████████████████████| 880 kB 12.2 MB/s
Collecting html5lib>=1.0.1
Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
|████████████████████████████████| 112 kB 46.9 MB/s
Requirement already satisfied: Pillow>=4.0.0 in /shared-libs/python3.7/py/lib/python3.7/site-packages (from WeasyPrint->django-weasyprint==0.5.2) (8.4.0)
Collecting Pyphen>=0.9.1
Downloading pyphen-0.11.0-py3-none-any.whl (2.0 MB)
|████████████████████████████████| 2.0 MB 23.0 MB/s
Collecting tinycss2>=1.0.0
Downloading tinycss2-1.1.1-py3-none-any.whl (21 kB)
Requirement already satisfied: pytz in /shared-libs/python3.7/py/lib/python3.7/site-packages (from Django>=1.8->django-weasyprint==0.5.2) (2021.3)
Collecting asgiref<4,>=3.3.2
Downloading asgiref-3.4.1-py3-none-any.whl (25 kB)
Requirement already satisfied: sqlparse>=0.2.2 in /shared-libs/python3.7/py/lib/python3.7/site-packages (from Django>=1.8->django-weasyprint==0.5.2) (0.4.2)
Requirement already satisfied: webencodings in /shared-libs/python3.7/py-core/lib/python3.7/site-packages (from cssselect2>=0.1->WeasyPrint->django-weasyprint==0.5.2) (0.5.1)
Requirement already satisfied: pycparser in /shared-libs/python3.7/py-core/lib/python3.7/site-packages (from cffi>=0.6->WeasyPrint->django-weasyprint==0.5.2) (2.21)
Collecting brotli>=1.0.1; platform_python_implementation == "CPython" and extra == "woff"
Downloading Brotli-1.0.9-cp37-cp37m-manylinux1_x86_64.whl (357 kB)
|████████████████████████████████| 357 kB 43.7 MB/s
Collecting zopfli>=0.1.4; extra == "woff"
Downloading zopfli-0.1.9-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (113 kB)
|████████████████████████████████| 113 kB 49.4 MB/s
Requirement already satisfied: six>=1.9 in /shared-libs/python3.7/py-core/lib/python3.7/site-packages (from html5lib>=1.0.1->WeasyPrint->django-weasyprint==0.5.2) (1.16.0)
Requirement already satisfied: typing-extensions; python_version < "3.8" in /shared-libs/python3.7/py-core/lib/python3.7/site-packages (from asgiref<4,>=3.3.2->Django>=1.8->django-weasyprint==0.5.2) (3.10.0.2)
Installing collected packages: tinycss2, cssselect2, pydyf, brotli, zopfli, fonttools, html5lib, Pyphen, WeasyPrint, asgiref, Django, django-weasyprint
Successfully installed Django-3.2.9 Pyphen-0.11.0 WeasyPrint-53.4 asgiref-3.4.1 brotli-1.0.9 cssselect2-0.4.1 django-weasyprint-0.5.2 fonttools-4.28.2 html5lib-1.1 pydyf-0.1.2 tinycss2-1.1.1 zopfli-0.1.9
WARNING: You are using pip version 20.1.1; however, version 21.3.1 is available.
You should consider upgrading via the '/root/venv/bin/python -m pip install --upgrade pip' command.
import pkg_resources
pkg_resources.get_distribution("django_weasyprint").version