Name python-charset-normalizer
Description
Version
Package Base
Homepage
Maintainers ['Debian Python Team <team+python@tracker.debian.org>']
Contributors ['Dominik George <natureshadow@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/python-charset-normalizer/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/python-charset-normalizer/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/python-charset-normalizer/plain/debian/patches/docs-Prevent-possible-privacy-issue-to-a-linked-image.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/python-charset-normalizer/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/python-charset-normalizer/plain/debian/watch?h=ubuntu/noble']
Dependencies []
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'dh-sequence-python3', 'pybuild-plugin-pyproject', 'python3-all', 'python3-pytest <!nocheck>', 'python3-pytest-cov <!nocheck>', 'python3-setuptools', 'python3-sphinx', 'furo <!nodoc>']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk

BUILD_DATE  = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
SPHINXOPTS := -N -D html_last_updated_fmt="$(BUILD_DATE)"

export PYBUILD_NAME=charset_normalizer
export PYBUILD_BEFORE_TEST=cp -r {dir}/data {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.coverage {build_dir}/data/

%:
	dh $@ --with=sphinxdoc --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html $(SPHINXOPTS) docs/ $(CURDIR)/debian/python-charset-normalizer-doc/usr/share/doc/python-charset-normalizer-doc/html
	rm $(CURDIR)/debian/python-charset-normalizer-doc/usr/share/doc/python-charset-normalizer-doc/html/.nojekyll
	dh_sphinxdoc
endif