Support Python 3.11 (#5994)

* remove some more deprecated numpy stuff

* workaround for changes to random.shuffle in python 3.11

* fix pickling of rdkit mols in python 3.11

* add py311 build to CI

* update py311 CI

* remove qt for py311 for the moment

* only use the new code with pyversion >=3.11

* use the new logic for all pickle_suites

* need to work with older py too
This commit is contained in:
Greg Landrum
2023-01-24 18:16:26 +01:00
committed by greg landrum
parent 34489181da
commit 9214d4becb
32 changed files with 208 additions and 54 deletions

View File

@@ -31,7 +31,7 @@ python::object SIVToBinaryText(const SparseIntVect<IndexType> &siv) {
} // namespace
template <typename IndexType>
struct siv_pickle_suite : python::pickle_suite {
struct siv_pickle_suite : rdkit_pickle_suite {
static python::tuple getinitargs(const SparseIntVect<IndexType> &self) {
return python::make_tuple(SIVToBinaryText(self));
};