We are renaming files in the pythonic API to make it look less like it is somehow part of z3 (but still acknowledge that we took code from z3Py properly). This PR follows the change in cvc5/cvc5_pythonic_api#80.
include(ExternalProject)
-set(CVC5PythonicAPI_VERSION "57d8c9d67e030a13296a94cf6ad7241f59192574")
+set(CVC5PythonicAPI_VERSION "a35b49ef3cd121e3dbc9496848019f7850f8f17d")
ExternalProject_Add(
CVC5PythonicAPI
${COMMON_EP_CONFIG}
URL https://github.com/cvc5/cvc5_pythonic_api/archive/${CVC5PythonicAPI_VERSION}.zip
- URL_HASH SHA1=ebf2799dd202819645dab357b20ebd6efc1750bb
+ URL_HASH SHA1=232b589148c0a19783cfca22c8628af4516a6eec
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
In addition to using cvc5 :doc:`as a binary <../binary/binary>`, cvc5 features APIs
for several different programming languages.
While the :doc:`C++ API <cpp/cpp>` is considered the primary interface to cvc5, both the :doc:`Java API <java/java>` and the :doc:`base Python API <python/base/python>` implement a thin wrapper around it.
-Additionally, a more pythonic Python API is available at https://github.com/cvc5/cvc5_z3py_compat
+Additionally, a more pythonic Python API is available at https://github.com/cvc5/cvc5_pythonic_api
and documented :doc:`here <python/pythonic/pythonic>`.
.. toctree::
.. api-examples::
<examples>/api/cpp/quickstart.cpp
<examples>/api/java/QuickStart.java
- <z3pycompat>/test/pgms/example_quickstart.py
+ <pythonicapi>/test/pgms/example_quickstart.py
<examples>/api/python/quickstart.py
<examples>/api/smtlib/quickstart.smt2
.. api-examples::
<examples>/api/java/QuickStart.java
<examples>/api/cpp/quickstart.cpp
- <z3pycompat>/test/pgms/example_quickstart.py
+ <pythonicapi>/test/pgms/example_quickstart.py
<examples>/api/python/quickstart.py
<examples>/api/smtlib/quickstart.smt2
<examples>/api/python/quickstart.py
<examples>/api/cpp/quickstart.cpp
<examples>/api/java/QuickStart.java
- <z3pycompat>/test/pgms/example_quickstart.py
+ <pythonicapi>/test/pgms/example_quickstart.py
<examples>/api/smtlib/quickstart.smt2
<examples>/api/smtlib/quickstart.smt2
<examples>/api/cpp/quickstart.cpp
<examples>/api/java/QuickStart.java
- <z3pycompat>/test/pgms/example_quickstart.py
+ <pythonicapi>/test/pgms/example_quickstart.py
<examples>/api/python/quickstart.py
'lang': 'python',
'group': 'py-regular'
},
- '^<z3pycompat>.*\.py$': {
+ '^<pythonicapi>.*\.py$': {
'title': 'Python (pythonic)',
'lang': 'python',
- 'group': 'py-z3pycompat'
+ 'group': 'py-pythonicapi'
},
'\.smt2$': {
'title': 'SMT-LIBv2',
'url': 'https://github.com/cvc5/cvc5/tree/main/examples{}',
'urlname': 'examples{}',
},
- '<z3pycompat>(.*)': {
+ '<pythonicapi>(.*)': {
'local': '/' + os.path.relpath('${CMAKE_BINARY_DIR}/deps/src/CVC5PythonicAPI', '${CMAKE_CURRENT_SOURCE_DIR}') + '{}',
- 'url': 'https://github.com/cvc5/cvc5_z3py_compat/tree/main{}',
- 'urlname': 'cvc5_z3py_compat:{}',
+ 'url': 'https://github.com/cvc5/cvc5_pythonic_api/tree/main{}',
+ 'urlname': 'cvc5_pythonic_api:{}',
}
}
.. api-examples::
<examples>/api/cpp/bitvectors.cpp
<examples>/api/java/BitVectors.java
- <z3pycompat>/test/pgms/example_bitvectors.py
+ <pythonicapi>/test/pgms/example_bitvectors.py
<examples>/api/python/bitvectors.py
<examples>/api/smtlib/bitvectors.smt2
.. api-examples::
<examples>/api/cpp/bitvectors_and_arrays.cpp
<examples>/api/java/BitVectorsAndArrays.java
- <z3pycompat>/test/pgms/example_bitvectors_and_arrays.py
+ <pythonicapi>/test/pgms/example_bitvectors_and_arrays.py
<examples>/api/python/bitvectors_and_arrays.py
<examples>/api/smtlib/bitvectors_and_arrays.smt2
.. api-examples::
<examples>/api/cpp/combination.cpp
<examples>/api/java/Combination.java
- <z3pycompat>/test/pgms/example_combination.py
+ <pythonicapi>/test/pgms/example_combination.py
<examples>/api/python/combination.py
<examples>/api/smtlib/combination.smt2
.. api-examples::
<examples>/api/cpp/datatypes.cpp
<examples>/api/java/Datatypes.java
- <z3pycompat>/test/pgms/example_datatypes.py
+ <pythonicapi>/test/pgms/example_datatypes.py
<examples>/api/python/datatypes.py
<examples>/api/smtlib/datatypes.smt2
.. api-examples::
<examples>/api/cpp/extract.cpp
<examples>/api/java/Extract.java
- <z3pycompat>/test/pgms/example_extract.py
+ <pythonicapi>/test/pgms/example_extract.py
<examples>/api/python/extract.py
<examples>/api/smtlib/extract.smt2
.. api-examples::
<examples>/api/cpp/floating_point_arith.cpp
<examples>/api/java/FloatingPointArith.java
- <z3pycompat>/test/pgms/example_floating_point.py
+ <pythonicapi>/test/pgms/example_floating_point.py
<examples>/api/python/floating_point.py
.. api-examples::
<examples>/api/cpp/helloworld.cpp
<examples>/api/java/HelloWorld.java
- <z3pycompat>/test/pgms/example_helloworld.py
+ <pythonicapi>/test/pgms/example_helloworld.py
<examples>/api/python/helloworld.py
<examples>/api/smtlib/helloworld.smt2
.. api-examples::
<examples>/api/cpp/linear_arith.cpp
<examples>/api/java/LinearArith.java
- <z3pycompat>/test/pgms/example_linear_arith.py
+ <pythonicapi>/test/pgms/example_linear_arith.py
<examples>/api/python/linear_arith.py
<examples>/api/smtlib/linear_arith.smt2
.. api-examples::
<examples>/api/cpp/quickstart.cpp
<examples>/api/java/QuickStart.java
- <z3pycompat>/test/pgms/example_quickstart.py
+ <pythonicapi>/test/pgms/example_quickstart.py
<examples>/api/python/quickstart.py
<examples>/api/smtlib/quickstart.smt2
.. api-examples::
<examples>/api/cpp/sets.cpp
<examples>/api/java/Sets.java
- <z3pycompat>/test/pgms/example_sets.py
+ <pythonicapi>/test/pgms/example_sets.py
<examples>/api/python/sets.py
<examples>/api/smtlib/sets.smt2
cvc5_python_api
COMMAND
${CMAKE_COMMAND} -E copy_directory
- "${CVC5PythonicAPI_BASEDIR}/cvc5_z3py_compat"
+ "${CVC5PythonicAPI_BASEDIR}/cvc5_pythonic_api"
"${CMAKE_CURRENT_BINARY_DIR}/cvc5/pythonic"
DEPENDS cvc5_python_base CVC5PythonicAPI
)