Skip to content

Update version #502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set(CMAKE_PREFIX_PATH ${SymEngine_DIR} ${CMAKE_PREFIX_PATH})

include(GNUInstallDirs)

find_package(SymEngine 0.8.1 REQUIRED CONFIG
find_package(SymEngine 0.14.0 REQUIRED CONFIG
PATH_SUFFIXES lib/cmake/symengine cmake/symengine CMake/)
message("SymEngine_DIR : " ${SymEngine_DIR})
message("SymEngine Version : " ${SymEngine_VERSION})
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def finalize_options(self):
'''

setup(name="symengine",
version="0.13.0",
version="0.14.0",
description="Python library providing wrappers to SymEngine",
setup_requires=['cython>=0.29.24'],
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion symengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __getattr__(name):
raise AttributeError(f"module 'symengine' has no attribute '{name}'")


__version__ = "0.13.0"
__version__ = "0.14.0"


# To not expose internals
Expand Down
8 changes: 4 additions & 4 deletions symengine/lib/pywrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ PyObject* pickle_loads(const std::string &pickle_str) {
return obj;
}

RCP<const Basic> load_basic(cereal::PortableBinaryInputArchive &ar, RCP<const Symbol> &)
RCP<const Basic> load_basic(RCPBasicAwareInputArchive<cereal::PortableBinaryInputArchive> &ar, RCP<const Symbol> &)
{
bool is_pysymbol;
bool store_pickle;
Expand Down Expand Up @@ -324,7 +324,7 @@ std::string pickle_dumps(const PyObject * obj) {
return std::string(buffer, size);
}

void save_basic(cereal::PortableBinaryOutputArchive &ar, const Symbol &b)
void save_basic(RCPBasicAwareOutputArchive<cereal::PortableBinaryOutputArchive> &ar, const Symbol &b)
{
bool is_pysymbol = is_a_sub<PySymbol>(b);
ar(is_pysymbol);
Expand All @@ -344,7 +344,7 @@ std::string wrapper_dumps(const Basic &x)
std::ostringstream oss;
unsigned short major = SYMENGINE_MAJOR_VERSION;
unsigned short minor = SYMENGINE_MINOR_VERSION;
cereal::PortableBinaryOutputArchive{oss}(major, minor,
RCPBasicAwareOutputArchive<cereal::PortableBinaryOutputArchive>{oss}(major, minor,
x.rcp_from_this());
return oss.str();
}
Expand All @@ -354,7 +354,7 @@ RCP<const Basic> wrapper_loads(const std::string &serialized)
unsigned short major, minor;
RCP<const Basic> obj;
std::istringstream iss(serialized);
cereal::PortableBinaryInputArchive iarchive{iss};
RCPBasicAwareInputArchive<cereal::PortableBinaryInputArchive> iarchive{iss};
iarchive(major, minor);
if (major != SYMENGINE_MAJOR_VERSION or minor != SYMENGINE_MINOR_VERSION) {
throw SerializationError(StreamFmt()
Expand Down
2 changes: 1 addition & 1 deletion symengine_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.13.0
fac9314c78f2809570494017efc6603befeb4eda
Loading