Skip to content

Commit

Permalink
Merge pull request #126 from AlgebraicJulia/remove-acsets4j-submodule
Browse files Browse the repository at this point in the history
Don't require acsets4j submodule
  • Loading branch information
olynch authored Apr 9, 2024
2 parents 23a2e76 + d3b3988 commit b32967f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

25 changes: 17 additions & 8 deletions test/intertypes/InterTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ simpleast_schema = JSONSchema.Schema(read("simpleast_schema.json", String))

@test JSONSchema._validate(simpleast_schema, JSON.parse(s), "Term") === nothing

rm("simpleast_schema.json")

@intertypes "model.it" module model
import ..simpleast
end
Expand Down Expand Up @@ -87,6 +89,8 @@ wgraph_schema = JSONSchema.Schema(read("wgraph_schema.json", String))

@test JSONSchema._validate(wgraph_schema, JSON.parse(JSON3.write(g)), "EDWeightedGraph") === nothing

rm("wgraph_schema.json")

@intertypes "objects.it" module objects end

using .objects
Expand All @@ -104,6 +108,8 @@ objects_schema = JSONSchema.Schema(read("objects_schema.json", String))

@test JSONSchema._validate(objects_schema, JSON.parse(JSON3.write(md)), "Metadata") === nothing

rm("objects_schema.json")

@intertypes "optionals.it" module optionals end

using .optionals
Expand All @@ -127,6 +133,8 @@ optionals_schema = JSONSchema.Schema(read("optionals_schema.json", String))
@test JSONSchema._validate(optionals_schema, JSON.parse(JSON3.write(x)), "NullableInt") === nothing
@test JSONSchema._validate(optionals_schema, JSON.parse(JSON3.write(y)), "NullableInt") === nothing

rm("optionals_schema.json")

# Python Integration Tests

@static if !Sys.iswindows()
Expand Down Expand Up @@ -181,26 +189,27 @@ catch error
end

if hasgradle
java_dir = joinpath(@__DIR__, "java/lib/src/main/java")
cd(@__DIR__)

java_dir = "java/lib/src/main/java"
generate_module(simpleast, JacksonTarget, java_dir)
generate_module(model, JacksonTarget, java_dir)
generate_module(wgraph, JacksonTarget, java_dir)

cd(joinpath(@__DIR__, "acsets4j"))
run(`gradle build`)
cd("..")

mkpath("java/libs")

jar_source = "acsets4j/lib/build/libs/acsets4j-0.1.jar"
jar_dest = "java/lib/deps/acsets4j-0.1.jar"
jar_source = "https://github.com/AlgebraicJulia/acsets4j/files/14922802/acsets4j-0.1.zip"
if isfile(jar_dest)
rm(jar_dest)
end
mkpath("java/lib/deps")
cp(jar_source, jar_dest)

cd(joinpath(@__DIR__, "java"))
run(`curl -L $jar_source --output acsets4j-0.1.zip`)
run(`unzip acsets4j-0.1.zip -d java/lib/deps/`)
run(`rm acsets4j-0.1.zip`)

cd("java")
run(`gradle build`)
cd("..")

Expand Down
1 change: 0 additions & 1 deletion test/intertypes/acsets4j
Submodule acsets4j deleted from 360a2d

2 comments on commit b32967f

@olynch
Copy link
Member Author

@olynch olynch commented on b32967f Apr 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/104565

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.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

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:

git tag -a v0.2.16 -m "<description of version>" b32967fc402ff0980202ae816765f3ffb26b3aa4
git push origin v0.2.16

Please sign in to comment.