-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add package extension for SymPyPythonCall.jl (#212)
* add package extension for SymPyPythonCall.jl * fix for Julia v1.6 * format * use SymPyPythonCall in docs instead of SymPy * try to fix CI issue caused by loadong PyCall and PythonCall * trying to fix CI * bump compat for SymPy to v2 * fix docs * format * fix tests * fix * fix SymPy * skip tests
- Loading branch information
Showing
14 changed files
with
295 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "BSeries" | ||
uuid = "ebb8d67c-85b4-416c-b05f-5f409e808f32" | ||
authors = ["Hendrik Ranocha <[email protected]> and contributors"] | ||
version = "0.1.59" | ||
version = "0.1.60" | ||
|
||
[deps] | ||
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" | ||
|
@@ -17,12 +17,14 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | |
[weakdeps] | ||
SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8" | ||
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6" | ||
SymPyPythonCall = "bc8888f7-b21e-4b7c-a06a-5d9c9496438c" | ||
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" | ||
|
||
[extensions] | ||
SymEngineExt = "SymEngine" | ||
SymPyExt = "SymPy" | ||
SymbolicsExt = "Symbolics" | ||
BSeriesSymEngineExt = "SymEngine" | ||
BSeriesSymPyExt = "SymPy" | ||
BSeriesSymPyPythonCallExt = "SymPyPythonCall" | ||
BSeriesSymbolicsExt = "Symbolics" | ||
|
||
[compat] | ||
Combinatorics = "1" | ||
|
@@ -35,11 +37,13 @@ Requires = "1" | |
RootedTrees = "2.16" | ||
SparseArrays = "1" | ||
SymEngine = "0.8, 0.9.1, 0.10, 0.11" | ||
SymPy = "1" | ||
SymPy = "2" | ||
SymPyPythonCall = "0.3" | ||
Symbolics = "4, 5" | ||
julia = "1.6" | ||
|
||
[extras] | ||
SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8" | ||
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6" | ||
SymPyPythonCall = "bc8888f7-b21e-4b7c-a06a-5d9c9496438c" | ||
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module SymEngineExt | ||
module BSeriesSymEngineExt | ||
|
||
if isdefined(Base, :get_extension) | ||
using SymEngine: SymEngine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module BSeriesSymPyExt | ||
|
||
if isdefined(Base, :get_extension) | ||
using SymPy: SymPy | ||
else | ||
using ..SymPy: SymPy | ||
end | ||
|
||
using BSeries: BSeries | ||
|
||
function BSeries.compute_derivative(expression::SymPy.Sym{SymPy.PyCall.PyObject}, | ||
variable::SymPy.Sym{SymPy.PyCall.PyObject}) | ||
SymPy.diff(expression, variable) | ||
end | ||
|
||
function BSeries.latexify_default_dt(::Type{SymPy.Sym{SymPy.PyCall.PyObject}}) | ||
SymPy.symbols("h", real = true) | ||
end | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module BSeriesSymPyPythonCallExt | ||
|
||
if isdefined(Base, :get_extension) | ||
using SymPyPythonCall: SymPyPythonCall | ||
else | ||
using ..SymPyPythonCall: SymPyPythonCall | ||
end | ||
|
||
using BSeries: BSeries | ||
|
||
function BSeries.compute_derivative(expression::SymPyPythonCall.Sym{SymPyPythonCall.PythonCall.Core.Py}, | ||
variable::SymPyPythonCall.Sym{SymPyPythonCall.PythonCall.Core.Py}) | ||
SymPyPythonCall.diff(expression, variable) | ||
end | ||
|
||
function BSeries.latexify_default_dt(::Type{SymPyPythonCall.Sym{SymPyPythonCall.PythonCall.Core.Py}}) | ||
SymPyPythonCall.symbols("h", real = true) | ||
end | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module SymbolicsExt | ||
module BSeriesSymbolicsExt | ||
|
||
if isdefined(Base, :get_extension) | ||
using Symbolics: Symbolics | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
[deps] | ||
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" | ||
SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8" | ||
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6" | ||
SymPyPythonCall = "bc8888f7-b21e-4b7c-a06a-5d9c9496438c" | ||
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[compat] | ||
Aqua = "0.8" | ||
StaticArrays = "1" | ||
SymEngine = "0.8, 0.9.1, 0.10, 0.11" | ||
SymPy = "1" | ||
SymPy = "2" | ||
SymPyPythonCall = "0.3" | ||
Symbolics = "4, 5" |
Oops, something went wrong.
7195ea3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
7195ea3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/108706
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: