Description: Use system pint package instead of vendored copy The vendored pint directory is excluded from the Debian source tarball via Files-Excluded. This patch updates imports and dependencies to use the system python3-pint package. . Changes include: - Change imports from datasette.vendored.pint to system pint - Update setup.py to depend on pint>=0.24.3 - Remove vendored Pint dependencies (platformdirs, typing_extensions, etc) - Add .gitlab-ci.yml for Salsa CI Author: Mahangu Weerasinghe Bug-Debian: https://bugs.debian.org/1120835 Forwarded: not-needed --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,2 @@ +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml --- a/datasette/views/base.py +++ b/datasette/views/base.py @@ -8,7 +8,7 @@ from markupsafe import escape -from datasette.vendored import pint +import pint from datasette import __version__ from datasette.database import QueryInterrupted --- a/tests/plugins/my_plugin.py +++ b/tests/plugins/my_plugin.py @@ -5,7 +5,7 @@ from datasette.utils import path_with_added_args from datasette.utils.asgi import asgi_send_json, Response import base64 -from datasette.vendored import pint +import pint import json ureg = pint.UnitRegistry() --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ }, packages=find_packages(exclude=("tests",)), package_data={ - "datasette": ["templates/*.html", "vendored/**/*.txt"], + "datasette": ["templates/*.html"], }, include_package_data=True, python_requires=">=3.9", @@ -60,11 +60,7 @@ "itsdangerous>=1.1", "setuptools", "pip", - # Needed by our vendored Pint: - "platformdirs>=2.1.0", - "typing_extensions>=4.0.0", - "flexcache>=0.3", - "flexparser>=0.3", + "pint>=0.24.3", ], entry_points=""" [console_scripts]