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

@@ -412,7 +412,7 @@ python::object SubstructLibrary_Serialize(const SubstructLibraryWrap &cat) {
return retval;
}
struct substructlibrary_pickle_suite : python::pickle_suite {
struct substructlibrary_pickle_suite : rdkit_pickle_suite {
static python::tuple getinitargs(const SubstructLibraryWrap &self) {
std::string res;
if (!SubstructLibraryCanSerialize()) {