[Bug 264178] net-im/py-matrix-synapse: Fails to start after 1.58.1 or 1.59.1 update: Error while finding module specification for 'synapse.app.homeserver' (ModuleNotFoundError: No module named 'synaps
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264178 Tomasz Sowa changed: What|Removed |Added CC||bugsfree...@ttmath.org --- Comment #6 from Tomasz Sowa --- I have got the same problem, downgraded to 1.57.1. -- You are receiving this mail because: You are on the CC list for the bug.
[Differential] D35513: [WIP] Adding devel/py-threadpoolctl
thierry updated this revision to Diff 107139. thierry added a comment. Taking koobs’s remarks into account: - set the range of Python versions; - build and run the tests (using the pytest helper), as an option since it requires more dependencies. Unfortunately, on my machine, I get "8 failed, 20 passed, 34 skipped". Some tests are normally skipped because we do not have MKL or some kind of OMP, but others are skipped because openblas or blis is not found, and I have not yet found why. Same for the 8 errors: to be investigated… Note: the pyc|pco objects are created during the installation. The reported error is not fixed, but at least the port is cleaner, and understanding the causes of the failures reported by `make test' could hopefully help. REPOSITORY R11 FreeBSD ports repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D35513?vs=107005&id=107139 CHANGES SINCE LAST ACTION https://reviews.freebsd.org/D35513/new/ REVISION DETAIL https://reviews.freebsd.org/D35513 AFFECTED FILES devel/Makefile devel/py-threadpoolctl/Makefile devel/py-threadpoolctl/distinfo devel/py-threadpoolctl/pkg-descr devel/py-threadpoolctl/pkg-plist EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: thierry, yuri, emaste_freebsdfoundation.org, wen Cc: koobs, freebsd-python-list, #python diff --git a/devel/py-threadpoolctl/pkg-plist b/devel/py-threadpoolctl/pkg-plist new file mode 100644 --- /dev/null +++ b/devel/py-threadpoolctl/pkg-plist @@ -0,0 +1,7 @@ +%%PYTHON_SITELIBDIR%%/__pycache__/threadpoolctl%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/__pycache__/threadpoolctl%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/threadpoolctl-3.1.0.dist-info/LICENSE +%%PYTHON_SITELIBDIR%%/threadpoolctl-3.1.0.dist-info/METADATA +%%PYTHON_SITELIBDIR%%/threadpoolctl-3.1.0.dist-info/RECORD +%%PYTHON_SITELIBDIR%%/threadpoolctl-3.1.0.dist-info/WHEEL +%%PYTHON_SITELIBDIR%%/threadpoolctl.py diff --git a/devel/py-threadpoolctl/pkg-descr b/devel/py-threadpoolctl/pkg-descr new file mode 100644 --- /dev/null +++ b/devel/py-threadpoolctl/pkg-descr @@ -0,0 +1,8 @@ +Python helpers to limit the number of threads used in the threadpool-backed of +common native libraries used for scientific computing and data science (e.g. +BLAS and OpenMP). + +Fine control of the underlying thread-pool size can be useful in workloads that +involve nested parallelism so as to mitigate oversubscription issues. + +WWW: https://github.com/joblib/threadpoolctl diff --git a/devel/py-threadpoolctl/distinfo b/devel/py-threadpoolctl/distinfo new file mode 100644 --- /dev/null +++ b/devel/py-threadpoolctl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1655408452 +SHA256 (threadpoolctl-3.1.0.tar.gz) = a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380 +SIZE (threadpoolctl-3.1.0.tar.gz) = 33651 diff --git a/devel/py-threadpoolctl/Makefile b/devel/py-threadpoolctl/Makefile new file mode 100644 --- /dev/null +++ b/devel/py-threadpoolctl/Makefile @@ -0,0 +1,50 @@ +# Created by: thie...@pompo.net + +PORTNAME= threadpoolctl +PORTVERSION= 3.1.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= thie...@freebsd.org +COMMENT= Thread-pool Controls for Python + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +#USE_GITHUB= yes +#GH_ACCOUNT= joblib + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}build>0:devel/py-build@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flit-core>0:devel/py-flit-core@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}installer>0:devel/py-installer@${PY_FLAVOR} + +OPTIONS_DEFINE= TEST + +USES= python:3.6-3.9 + +TEST_DEPENDS= ${PYNUMPY} \ + blis>0:math/blis \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} +TEST_USES= blaslapack:openblas pytest +TEST_USE= PYTHON=cython +TEST_VARS= PYTEST_ARGS="-vlrxXs --cov=threadpoolctl" \ + BLIS_ENABLE_THREADING=yes + +NO_ARCH= yes + +do-build: + (cd ${WRKSRC} && ${PYTHON_CMD} -m build --wheel --no-isolation) + +post-build-TEST-on: + (cd ${WRKSRC}/tests/_openmp_test_helper && \ + ${PYTHON_CMD} setup_inner.py build_ext -i && \ + ${PYTHON_CMD} setup_outer.py build_ext -i && \ + ${PYTHON_CMD} setup_nested_prange_blas.py build_ext -i) + +do-install: + ${MKDIR} ${STAGEDIE}${PYTHONPREFIX_SITELIBDIR} + (cd ${WRKSRC} && \ + ${PYTHON_CMD} -m installer --destdir="${STAGEDIR}" dist/*.whl) + +.include diff --git a/devel/Makefile b/devel/Makefile --- a/devel/Makefile +++ b/devel/Makefile @@ -5385,6 +5385,7 @@ SUBDIR += py-testscenarios SUBDIR += py-testtools SUBDIR += py-thefuzz +SUBDIR += py-threadpoolctl SUBDIR += py-threema-msgapi SUBDIR += py-thrift SUBDIR += py-thriftpy2
[Differential] D35513: [WIP] Adding devel/py-threadpoolctl
thierry marked 3 inline comments as done. REPOSITORY R11 FreeBSD ports repository CHANGES SINCE LAST ACTION https://reviews.freebsd.org/D35513/new/ REVISION DETAIL https://reviews.freebsd.org/D35513 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: thierry, yuri, emaste_freebsdfoundation.org, wen Cc: koobs, freebsd-python-list, #python
[Bug 263862] www/py-tvdb_api: Fails to run after www/py-requests-cache update: ImportError: cannot import name '_to_bytes' from 'requests_cache.backends.base
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263862 --- Comment #16 from huber.ge...@gmail.com --- Hi, sorry, for not responding earlier. Many thanks, but I should have removed py38-requests-cache and I have installed the 0.93 branch. pkg info py38-requests-2.27.1 Python HTTP for Humans py38-requests-cache93-0.9.3Transparent persistent cache for the requests library (0.9.3 branch) Unfortunately, I have no idea, what the error means. Thanks again, Georg -- You are receiving this mail because: You are on the CC list for the bug.
FreeBSD ports you maintain which are out of date
Dear port maintainer, The portscout new distfile checker has detected that one or more of your ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. If any ports have already been updated, you can safely ignore the entry. You will not be e-mailed again for any of the port/version combinations below. Full details can be found at the following URL: http://portscout.freebsd.org/pyt...@freebsd.org.html Port| Current version | New version +-+ devel/py-setuptools | 62.1.0 | 62.5.0 +-+ If any of the above results are invalid, please check the following page for details on how to improve portscout's detection and selection of distfiles on a per-port basis: http://portscout.freebsd.org/info/portscout-portconfig.txt Reported by:portscout!
[Differential] D35513: [WIP] Adding devel/py-threadpoolctl
sunpoet added inline comments. INLINE COMMENTS > koobs wrote in Makefile:32 > Upstream provides tests in their sources. If these are not packaged in the > PyPI sdist, feel free to `USE_GITHUB` in the meantime after asking upstream > to ship them there. > > Should be able to: > > do-test: > cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopt= It is outdated. Please use USE_PYTHON=pytest instead. See https://cgit.freebsd.org/ports/commit/Mk/Uses/python.mk?id=535f310d337c0b7de64a972bc0b855bba6c6f1f0 for details. > Makefile:15-21 > +#USE_GITHUB= yes > +#GH_ACCOUNT= joblib > + > +BUILD_DEPENDS= > ${PYTHON_PKGNAMEPREFIX}build>0:devel/py-build@${PY_FLAVOR} \ > + > ${PYTHON_PKGNAMEPREFIX}flit-core>0:devel/py-flit-core@${PY_FLAVOR} \ > + > ${PYTHON_PKGNAMEPREFIX}installer>0:devel/py-installer@${PY_FLAVOR} > + Right now, I'd like to generate a setup.py before we move to pyproject.toml. See https://gist.github.com/sunpoet/f9ee85a45f334f65afde2a3a257e1bb3 for the setup.py. I'll add a post-patch: to update the version. post-patch: @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py > Makefile:24 > + > +USES=python:3.6-3.9 > + This should be USES=python:3.6+ See https://github.com/joblib/threadpoolctl/blob/3.1.0/pyproject.toml#L11 REPOSITORY R11 FreeBSD ports repository CHANGES SINCE LAST ACTION https://reviews.freebsd.org/D35513/new/ REVISION DETAIL https://reviews.freebsd.org/D35513 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: thierry, yuri, emaste_freebsdfoundation.org, wen Cc: sunpoet, koobs, freebsd-python-list, #python
[Differential] D35513: [WIP] Adding devel/py-threadpoolctl
koobs added inline comments. INLINE COMMENTS > sunpoet wrote in Makefile:24 > This should be USES=python:3.6+ > > See https://github.com/joblib/threadpoolctl/blob/3.1.0/pyproject.toml#L11 Unless upstream tests with and the tests pass beyond the versions supported, should be capped. Incomplete version spec declarations (particularly leaving open max versions), causes problems for Python evolving default Python version. REPOSITORY R11 FreeBSD ports repository CHANGES SINCE LAST ACTION https://reviews.freebsd.org/D35513/new/ REVISION DETAIL https://reviews.freebsd.org/D35513 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: thierry, yuri, emaste_freebsdfoundation.org, wen Cc: sunpoet, koobs, freebsd-python-list, #python
[Differential] D35513: [WIP] Adding devel/py-threadpoolctl
koobs added inline comments. INLINE COMMENTS > sunpoet wrote in Makefile:32 > It is outdated. > Please use USE_PYTHON=pytest instead. > See > https://cgit.freebsd.org/ports/commit/Mk/Uses/python.mk?id=535f310d337c0b7de64a972bc0b855bba6c6f1f0 > for details. I posted a specific target because many packages do not work with a standard invocation. REPOSITORY R11 FreeBSD ports repository CHANGES SINCE LAST ACTION https://reviews.freebsd.org/D35513/new/ REVISION DETAIL https://reviews.freebsd.org/D35513 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: thierry, yuri, emaste_freebsdfoundation.org, wen Cc: sunpoet, koobs, freebsd-python-list, #python