diff --git a/pkg.info b/pkg.info index 6a3710e..03ac314 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: python-charset-normalizer description: Encoding and language detection alternative to chardet -version: 3.4.5 +version: 3.4.6 revision: 1 url: https://github.com/jawah/charset_normalizer license: MIT @@ -13,10 +13,12 @@ depends: make_depends: - python-build - python-installer - - python-setuptools-scm + - python-setuptools - python-wheel +check_depends: + - python-pytest downloads: - url: https://github.com/jawah/charset_normalizer/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: ea8e9973373593f8226cb498177e9271e5108dfe8c4e655acc175f222ab41891 + checksum: 5bfb2fc7b4cb63254fc58302223cd3d654766cac56ae6aac29ca37911ba5b3ab diff --git a/source.sh b/source.sh index e4c7d33..3fd1fdf 100644 --- a/source.sh +++ b/source.sh @@ -2,16 +2,16 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -# The prepare function is executed in the root of the temp directory -# This function is used for putting downloaded files to the correct location or applying patches -prepare() { - echo "You may remove this function if you do not intend to use it" -} - # The build function is executed in the source directory # This function is used to compile the source code build() { - python3 -m build --wheel --no-isolation . + python3 -m build --wheel --skip-dependency-check --no-isolation . +} + +# The check function is executed in the source directory +# This function is used to run tests to verify the package has been compiled correctly +check() { + PYTHONPATH=src pytest } # The package function is executed in the source directory