From 60fef48b7f6e2c40e0b48be61218004eeefc5c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Mon, 9 Aug 2021 16:17:32 +0300 Subject: [PATCH 1/8] Add warning on empty `CITATION.bib` files --- src/citations.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/citations.jl b/src/citations.jl index 63658c9..41e28f3 100644 --- a/src/citations.jl +++ b/src/citations.jl @@ -17,7 +17,12 @@ function get_citation(pkg; badge=false) if !isnothing(bib_path) @debug "Reading CITATION.bib for $(pkg.name)" try - import_bibtex(bib_path) + bib = import_bibtex(bib_path) + if isempty(bib) + @warn "The CITATION.bib file for $(pkg.name) is empty." + end + + bib catch e @warn "There was an error reading the CITATION.bib file for $(pkg.name)" exception=e end From 4c8e6a7eea81cfc45078d5840e06c36773537ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Mon, 9 Aug 2021 16:18:23 +0300 Subject: [PATCH 2/8] Don't error if there is no citation for a package --- src/tool_report.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tool_report.jl b/src/tool_report.jl index 152f3d0..949f09f 100644 --- a/src/tool_report.jl +++ b/src/tool_report.jl @@ -1,4 +1,5 @@ function cite_package(name, bib; cite_commands) + isempty(bib) && return "" if length(bib) == 1 key = only(keys(bib)) cmd = get(cite_commands, name, DEFAULT_CITE) From 4825b93fce5a09a6c234e35bd68da892a722f823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Wed, 11 Aug 2021 11:15:10 +0300 Subject: [PATCH 3/8] Update Symbolics test env --- test/test_env/Manifest.toml | 192 +++++++++++++++--------------------- 1 file changed, 81 insertions(+), 111 deletions(-) diff --git a/test/test_env/Manifest.toml b/test/test_env/Manifest.toml index 6dcc0de..2eff419 100644 --- a/test/test_env/Manifest.toml +++ b/test/test_env/Manifest.toml @@ -1,11 +1,5 @@ # This file is machine-generated - editing it directly is not advised -[[AbstractAlgebra]] -deps = ["InteractiveUtils", "LinearAlgebra", "Markdown", "Random", "RandomExtensions", "SparseArrays", "Test"] -git-tree-sha1 = "452f5cdc30c10a372d87cf60da4ead7c8cfc4548" -uuid = "c3fe647b-3220-5bb0-a1ea-a7954cac585d" -version = "0.16.0" - [[AbstractTrees]] git-tree-sha1 = "03e0550477d86222521d254b741d470ba17ea0b5" uuid = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" @@ -16,9 +10,9 @@ uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f" [[ArrayInterface]] deps = ["IfElse", "LinearAlgebra", "Requires", "SparseArrays", "Static"] -git-tree-sha1 = "4e988d6883cf3935e267f93f53cfc34792e0700f" +git-tree-sha1 = "cdb00a6fb50762255021e5571cf95df3e1797a51" uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" -version = "3.1.15" +version = "3.1.23" [[Artifacts]] uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" @@ -28,15 +22,9 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" [[ChainRulesCore]] deps = ["Compat", "LinearAlgebra", "SparseArrays"] -git-tree-sha1 = "4b28f88cecf5d9a07c85b9ce5209a361ecaff34a" +git-tree-sha1 = "bdc0937269321858ab2a4f288486cb258b9a0af7" uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" -version = "0.9.45" - -[[CodecZlib]] -deps = ["TranscodingStreams", "Zlib_jll"] -git-tree-sha1 = "ded953804d019afa9a3f98981d99b33e3db7b6da" -uuid = "944b1d66-785c-5afd-91f1-9de20f533193" -version = "0.7.0" +version = "1.3.0" [[Combinatorics]] git-tree-sha1 = "08c8b6831dc00bfea825826be0bc8336fc369860" @@ -50,9 +38,9 @@ version = "0.2.0" [[Compat]] deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "SHA", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"] -git-tree-sha1 = "e4e2b39db08f967cc1360951f01e8a75ec441cab" +git-tree-sha1 = "344f143fa0ec67e47917848795ab19c6a455f32c" uuid = "34da2185-b29b-5c13-b0c7-acf172513d20" -version = "3.30.0" +version = "3.32.0" [[CompilerSupportLibraries_jll]] deps = ["Artifacts", "Libdl"] @@ -65,14 +53,14 @@ version = "0.1.2" [[ConstructionBase]] deps = ["LinearAlgebra"] -git-tree-sha1 = "1dc43957fb9a1574fa1b7a449e101bd1fd3a9fb7" +git-tree-sha1 = "f74e9d5388b8620b4cee35d4c5a618dd4dc547f4" uuid = "187b0558-2788-49d3-abe0-74a17ed4e7c9" -version = "1.2.1" +version = "1.3.0" [[DataAPI]] -git-tree-sha1 = "dfb3b7e89e395be1e25c2ad6d7690dc29cc53b1d" +git-tree-sha1 = "ee400abb2298bd13bfc3df1c412ed228061a2385" uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a" -version = "1.6.0" +version = "1.7.0" [[DataStructures]] deps = ["Compat", "InteractiveUtils", "OrderedCollections"] @@ -95,9 +83,9 @@ uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab" [[DiffRules]] deps = ["NaNMath", "Random", "SpecialFunctions"] -git-tree-sha1 = "214c3fcac57755cfda163d91c58893a8723f93e9" +git-tree-sha1 = "85d2d9e2524da988bffaf2a381864e20d2dae08d" uuid = "b552c78f-8df3-52c6-915a-8e097449b14b" -version = "1.0.2" +version = "1.2.1" [[Distributed]] deps = ["Random", "Serialization", "Sockets"] @@ -105,15 +93,15 @@ uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b" [[Distributions]] deps = ["FillArrays", "LinearAlgebra", "PDMats", "Printf", "QuadGK", "Random", "SparseArrays", "SpecialFunctions", "Statistics", "StatsBase", "StatsFuns"] -git-tree-sha1 = "64a3e756c44dcf33bd33e7f500113d9992a02e92" +git-tree-sha1 = "3889f646423ce91dd1055a76317e9a1d3a23fff1" uuid = "31c24e10-a181-5473-b8eb-7969acd0382f" -version = "0.25.2" +version = "0.25.11" [[DocStringExtensions]] -deps = ["LibGit2", "Markdown", "Pkg", "Test"] -git-tree-sha1 = "9d4f64f79012636741cf01133158a54b24924c32" +deps = ["LibGit2"] +git-tree-sha1 = "a32185f5428d3986f47c2ab78b1f216d5e6cc96f" uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" -version = "0.8.4" +version = "0.8.5" [[DomainSets]] deps = ["CompositeTypes", "IntervalSets", "LinearAlgebra", "StaticArrays", "Statistics", "Test"] @@ -125,6 +113,12 @@ version = "0.5.2" deps = ["ArgTools", "LibCURL", "NetworkOptions"] uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6" +[[DynamicPolynomials]] +deps = ["DataStructures", "Future", "LinearAlgebra", "MultivariatePolynomials", "MutableArithmetics", "Pkg", "Reexport", "Test"] +git-tree-sha1 = "e9d82a6f35d199d3821c069932115e19ca2a2b3d" +uuid = "7c1d4256-1411-5781-91ec-d7bc3513ac07" +version = "0.3.19" + [[EllipsisNotation]] deps = ["ArrayInterface"] git-tree-sha1 = "8041575f021cba5a099a456b4163c9a08b566a02" @@ -132,15 +126,15 @@ uuid = "da5c29d0-fa7d-589e-88eb-ea29b0a81949" version = "1.1.0" [[ExprTools]] -git-tree-sha1 = "10407a39b87f29d47ebaca8edbc75d7c302ff93e" +git-tree-sha1 = "b7e3d17636b348f005f11040025ae8c6f645fe92" uuid = "e2ba6199-217a-4e67-a87a-7c52f15ade04" -version = "0.1.3" +version = "0.1.6" [[FillArrays]] -deps = ["LinearAlgebra", "Random", "SparseArrays"] -git-tree-sha1 = "31939159aeb8ffad1d4d8ee44d07f8558273120a" +deps = ["LinearAlgebra", "Random", "SparseArrays", "Statistics"] +git-tree-sha1 = "8c8eac2af06ce35973c3eadb4ab3243076a408e7" uuid = "1a297f60-69ca-5386-bcde-b61e274b549b" -version = "0.11.7" +version = "0.12.1" [[Formatting]] deps = ["Printf"] @@ -185,9 +179,9 @@ version = "1.2.1" [[LabelledArrays]] deps = ["ArrayInterface", "LinearAlgebra", "MacroTools", "StaticArrays"] -git-tree-sha1 = "248a199fa42ec62922225334131c9330e1dd72f6" +git-tree-sha1 = "bdde43e002847c34c206735b1cf860bc3abd35e7" uuid = "2ee39098-c373-598a-b85f-a56591580800" -version = "1.6.1" +version = "1.6.4" [[Latexify]] deps = ["Formatting", "InteractiveUtils", "LaTeXStrings", "MacroTools", "Markdown", "Printf", "Requires"] @@ -214,36 +208,24 @@ uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8" [[Libdl]] uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb" -[[Libiconv_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "42b62845d70a619f063a7da093d995ec8e15e778" -uuid = "94ce4f54-9a6c-5748-9c1c-f9c7231a4531" -version = "1.16.1+1" - -[[LightXML]] -deps = ["Libdl", "XML2_jll"] -git-tree-sha1 = "e129d9391168c677cd4800f5c0abb1ed8cb3794f" -uuid = "9c8b4983-aa76-5018-a973-4c85ecc9e179" -version = "0.9.0" - [[LinearAlgebra]] deps = ["Libdl"] uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" [[LogExpFunctions]] deps = ["DocStringExtensions", "LinearAlgebra"] -git-tree-sha1 = "1ba664552f1ef15325e68dc4c05c3ef8c2d5d885" +git-tree-sha1 = "7bd5f6565d80b6bf753738d2bc40a5dfea072070" uuid = "2ab3a3ac-af41-5b50-aa03-7779005ae688" -version = "0.2.4" +version = "0.2.5" [[Logging]] uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" [[MacroTools]] deps = ["Markdown", "Random"] -git-tree-sha1 = "6a8a2a625ab0dea913aba95c11370589e0239ff0" +git-tree-sha1 = "0fb723cd8c45858c22169b2e42269e53271a6df7" uuid = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" -version = "0.5.6" +version = "0.5.7" [[Markdown]] deps = ["Base64"] @@ -265,6 +247,18 @@ uuid = "a63ad114-7e13-5084-954f-fe012c677804" [[MozillaCACerts_jll]] uuid = "14a3606d-f60d-562e-9121-12d972cd8159" +[[MultivariatePolynomials]] +deps = ["DataStructures", "LinearAlgebra", "MutableArithmetics"] +git-tree-sha1 = "45c9940cec79dedcdccc73cc6dd09ea8b8ab142c" +uuid = "102ac46a-7ee4-5c85-9060-abc95bfdeaa3" +version = "0.3.18" + +[[MutableArithmetics]] +deps = ["LinearAlgebra", "SparseArrays", "Test"] +git-tree-sha1 = "3927848ccebcc165952dc0d9ac9aa274a87bfe01" +uuid = "d8a4904e-b15c-11e9-3269-09a3773c0cb0" +version = "0.2.20" + [[NaNMath]] git-tree-sha1 = "bfe47e760d60b82b66b61d2d44128b62e3a369fb" uuid = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3" @@ -275,9 +269,9 @@ uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908" [[OpenSpecFun_jll]] deps = ["Artifacts", "CompilerSupportLibraries_jll", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "b9b8b8ed236998f91143938a760c2112dceeb2b4" +git-tree-sha1 = "13652491f6856acfd2db29360e1bbcd4565d04f1" uuid = "efe28fd5-8261-553b-a9e1-b2916fc3738e" -version = "0.5.4+0" +version = "0.5.5+0" [[OrderedCollections]] git-tree-sha1 = "85f8e6578bf1f9ee0d11e7bb1b1456435479d47c" @@ -286,9 +280,9 @@ version = "1.4.1" [[PDMats]] deps = ["LinearAlgebra", "SparseArrays", "SuiteSparse"] -git-tree-sha1 = "f82a0e71f222199de8e9eb9a09977bd0767d52a0" +git-tree-sha1 = "4dd403333bcf0909341cfe57ec115152f937d7d8" uuid = "90014a1f-27ba-587c-ab20-58faa44d9150" -version = "0.11.0" +version = "0.11.1" [[Pkg]] deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"] @@ -318,27 +312,21 @@ uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" deps = ["Serialization"] uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" -[[RandomExtensions]] -deps = ["Random", "SparseArrays"] -git-tree-sha1 = "062986376ce6d394b23d5d90f01d81426113a3c9" -uuid = "fb686558-2515-59ef-acaa-46db3789a887" -version = "0.4.3" - [[RecipesBase]] git-tree-sha1 = "b3fb709f3c97bfc6e948be68beeecb55a0b340ae" uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" version = "1.1.1" [[RecursiveArrayTools]] -deps = ["ArrayInterface", "DocStringExtensions", "LinearAlgebra", "RecipesBase", "Requires", "StaticArrays", "Statistics", "ZygoteRules"] -git-tree-sha1 = "b3f4e34548b3d3d00e5571fd7bc0a33980f01571" +deps = ["ArrayInterface", "ChainRulesCore", "DocStringExtensions", "LinearAlgebra", "RecipesBase", "Requires", "StaticArrays", "Statistics", "ZygoteRules"] +git-tree-sha1 = "6cf3169ab34096657b79ea7d26f64ad79b3a5ea7" uuid = "731186ca-8d62-57ce-b412-fbd966d074cd" -version = "2.11.4" +version = "2.17.0" [[Reexport]] -git-tree-sha1 = "57d8440b0c7d98fc4f889e478e80f268d534c9d5" +git-tree-sha1 = "5f6c21241f0f655da3952fd60aa18477cf96c220" uuid = "189a3867-3050-52da-a836-e630ba90ab69" -version = "1.0.0" +version = "1.1.0" [[Requires]] deps = ["UUIDs"] @@ -360,27 +348,27 @@ version = "0.3.0+0" [[RuntimeGeneratedFunctions]] deps = ["ExprTools", "SHA", "Serialization"] -git-tree-sha1 = "5975a4f824533fa4240f40d86f1060b9fc80d7cc" +git-tree-sha1 = "cdc1e4278e91a6ad530770ebb327f9ed83cf10c4" uuid = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47" -version = "0.5.2" +version = "0.5.3" [[SHA]] uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" [[SciMLBase]] deps = ["ArrayInterface", "CommonSolve", "ConstructionBase", "Distributed", "DocStringExtensions", "IteratorInterfaceExtensions", "LinearAlgebra", "Logging", "RecipesBase", "RecursiveArrayTools", "StaticArrays", "Statistics", "Tables", "TreeViews"] -git-tree-sha1 = "05aa1ee0b6f0c875b0d6572a77c57225e47b688f" +git-tree-sha1 = "f4bcc1bc78857e0602de2ec548b08ac73bf29acc" uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462" -version = "1.13.4" +version = "1.18.4" [[Serialization]] uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" [[Setfield]] deps = ["ConstructionBase", "Future", "MacroTools", "Requires"] -git-tree-sha1 = "d5640fc570fb1b6c54512f0bd3853866bd298b3e" +git-tree-sha1 = "fca29e68c5062722b5b4435594c3d1ba557072a3" uuid = "efcf1570-3423-57d1-acb7-fd33fddbac46" -version = "0.7.0" +version = "0.7.1" [[SharedArrays]] deps = ["Distributed", "Mmap", "Random", "Serialization"] @@ -391,9 +379,9 @@ uuid = "6462fe0b-24de-5631-8697-dd941f90decc" [[SortingAlgorithms]] deps = ["DataStructures"] -git-tree-sha1 = "2ec1962eba973f383239da22e75218565c390a96" +git-tree-sha1 = "b3363d7460f7d098ca0912c69b082f75625d7508" uuid = "a2af1166-a08f-5f64-846c-94a0d3cef48c" -version = "1.0.0" +version = "1.0.1" [[SparseArrays]] deps = ["LinearAlgebra", "Random"] @@ -401,21 +389,21 @@ uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" [[SpecialFunctions]] deps = ["ChainRulesCore", "LogExpFunctions", "OpenSpecFun_jll"] -git-tree-sha1 = "371204984184315ed7228bcc604d08e1bbc18f31" +git-tree-sha1 = "508822dca004bf62e210609148511ad03ce8f1d8" uuid = "276daf66-3868-5448-9aa4-cd146d93841b" -version = "1.4.2" +version = "1.6.0" [[Static]] deps = ["IfElse"] -git-tree-sha1 = "ddec5466a1d2d7e58adf9a427ba69763661aacf6" +git-tree-sha1 = "62701892d172a2fa41a1f829f66d2b0db94a9a63" uuid = "aedffcd0-7271-4cad-89d0-dc628f76c6d3" -version = "0.2.4" +version = "0.3.0" [[StaticArrays]] deps = ["LinearAlgebra", "Random", "Statistics"] -git-tree-sha1 = "42378d3bab8b4f57aa1ca443821b752850592668" +git-tree-sha1 = "3240808c6d463ac46f1c1cd7638375cd22abbccb" uuid = "90137ffa-7385-5640-81b9-e52037218182" -version = "1.2.2" +version = "1.2.12" [[Statistics]] deps = ["LinearAlgebra", "SparseArrays"] @@ -428,9 +416,9 @@ version = "1.0.0" [[StatsBase]] deps = ["DataAPI", "DataStructures", "LinearAlgebra", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics", "StatsAPI"] -git-tree-sha1 = "2f6792d523d7448bbe2fec99eca9218f06cc746d" +git-tree-sha1 = "fed1ec1e65749c4d96fc20dd13bea72b55457e62" uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" -version = "0.33.8" +version = "0.33.9" [[StatsFuns]] deps = ["LogExpFunctions", "Rmath", "SpecialFunctions"] @@ -443,16 +431,16 @@ deps = ["Libdl", "LinearAlgebra", "Serialization", "SparseArrays"] uuid = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9" [[SymbolicUtils]] -deps = ["AbstractAlgebra", "AbstractTrees", "ChainRulesCore", "Combinatorics", "ConstructionBase", "DataStructures", "IfElse", "LabelledArrays", "LinearAlgebra", "NaNMath", "Setfield", "SparseArrays", "SpecialFunctions", "StaticArrays", "TimerOutputs"] -git-tree-sha1 = "e024f71ab5d34fcb7e27740c304b65a64264f48f" +deps = ["AbstractTrees", "ChainRulesCore", "Combinatorics", "ConstructionBase", "DataStructures", "DocStringExtensions", "DynamicPolynomials", "IfElse", "LabelledArrays", "LinearAlgebra", "MultivariatePolynomials", "NaNMath", "Setfield", "SparseArrays", "SpecialFunctions", "StaticArrays", "TimerOutputs"] +git-tree-sha1 = "591440eabc9407917b1fedd1e929710dba5b0958" uuid = "d1185830-fcd6-423d-90d6-eec64667417b" -version = "0.11.2" +version = "0.13.3" [[Symbolics]] -deps = ["AbstractAlgebra", "DiffRules", "Distributions", "DocStringExtensions", "DomainSets", "IfElse", "Latexify", "Libdl", "LinearAlgebra", "MacroTools", "NaNMath", "RecipesBase", "Reexport", "RuntimeGeneratedFunctions", "SciMLBase", "Setfield", "SparseArrays", "SpecialFunctions", "SymbolicUtils", "TreeViews"] -git-tree-sha1 = "118066770a47fc4f38b6580478ac196114b7fb5c" +deps = ["ConstructionBase", "DiffRules", "Distributions", "DocStringExtensions", "DomainSets", "IfElse", "Latexify", "Libdl", "LinearAlgebra", "MacroTools", "NaNMath", "RecipesBase", "Reexport", "Requires", "RuntimeGeneratedFunctions", "SciMLBase", "Setfield", "SparseArrays", "SpecialFunctions", "StaticArrays", "SymbolicUtils", "TreeViews"] +git-tree-sha1 = "35ac67af1fb546fb663de1e3e53a28b76e305a85" uuid = "0c5d862f-8b57-4792-8d23-62f2024744c7" -version = "0.1.27" +version = "2.1.0" [[TOML]] deps = ["Dates"] @@ -466,9 +454,9 @@ version = "1.0.1" [[Tables]] deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "LinearAlgebra", "TableTraits", "Test"] -git-tree-sha1 = "aa30f8bb63f9ff3f8303a06c604c8500a69aa791" +git-tree-sha1 = "d0c690d37c73aeb5ca063056283fde5585a41710" uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" -version = "1.4.3" +version = "1.5.0" [[Tar]] deps = ["ArgTools", "SHA"] @@ -480,15 +468,9 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [[TimerOutputs]] deps = ["ExprTools", "Printf"] -git-tree-sha1 = "bf8aacc899a1bd16522d0350e1e2310510d77236" +git-tree-sha1 = "209a8326c4f955e2442c07b56029e88bb48299c7" uuid = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f" -version = "0.5.9" - -[[TranscodingStreams]] -deps = ["Random", "Test"] -git-tree-sha1 = "7c53c35547de1c5b9d46a4797cf6d8253807108c" -uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa" -version = "0.9.5" +version = "0.5.12" [[TreeViews]] deps = ["Test"] @@ -503,18 +485,6 @@ uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" [[Unicode]] uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" -[[WriteVTK]] -deps = ["Base64", "CodecZlib", "FillArrays", "LightXML", "Random", "TranscodingStreams"] -git-tree-sha1 = "2d559f58ff021c0f0f3d2394d2688a84a84257aa" -uuid = "64499a7a-5c06-52f2-abe2-ccb03c286192" -version = "1.9.2" - -[[XML2_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Libiconv_jll", "Pkg", "Zlib_jll"] -git-tree-sha1 = "1acf5bdf07aa0907e0a37d3718bb88d4b687b74a" -uuid = "02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a" -version = "2.9.12+0" - [[Zlib_jll]] deps = ["Libdl"] uuid = "83775a58-1f1d-513f-b197-d71354ab007a" From f9598c029912ecc4143f9f495e0d00cd1f436af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Wed, 11 Aug 2021 11:15:35 +0300 Subject: [PATCH 4/8] Update tests AbstractAlgebra dep removed --- test/cite_str.jl | 24 ++++++++++++------------ test/runtests.jl | 6 ++---- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/test/cite_str.jl b/test/cite_str.jl index 474d81d..8e93b83 100644 --- a/test/cite_str.jl +++ b/test/cite_str.jl @@ -2,19 +2,19 @@ const CITE_STR_JL = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the following packages: "* "LabelledArrays.jl\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* -"QuadGK.jl\\cite[QuadGK]{quadgk}, Symbolics.jl\\cite[Symbolics]{gowda2021high}, "* -"RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017}, "* -"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017} and "* -"AbstractAlgebra.jl\\cite[AbstractAlgebra]{AbstractAlgebra.jl-2017}." +"QuadGK.jl\\cite[QuadGK]{quadgk}, "* +"Symbolics.jl\\cite[Symbolics]{gowda2021high}, "* +"RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* +"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." const CITE_STR_JL_AUTO = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the following packages: "* "LabelledArrays.jl\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* -"QuadGK.jl\\cite[QuadGK]{quadgk}, Symbolics.jl\\cite[Symbolics]{gowda2021high}, "* -"RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017}, "* -"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017} and "* -"AbstractAlgebra.jl\\autocite[AbstractAlgebra]{AbstractAlgebra.jl-2017}." +"QuadGK.jl\\cite[QuadGK]{quadgk}, "* +"Symbolics.jl\\autocite[Symbolics]{gowda2021high}, "* +"RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* +"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." const CITE_STR_JL_SINGLE = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* @@ -29,10 +29,10 @@ const CITE_STR = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the following packages: "* "LabelledArrays\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* -"QuadGK\\cite[QuadGK]{quadgk}, Symbolics\\cite[Symbolics]{gowda2021high}, "* -"RecursiveArrayTools\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017}, "* -"ArrayInterface\\cite[ArrayInterface]{DifferentialEquations.jl-2017} and "* -"AbstractAlgebra\\cite[AbstractAlgebra]{AbstractAlgebra.jl-2017}." +"QuadGK\\cite[QuadGK]{quadgk}, "* +"Symbolics\\cite[Symbolics]{gowda2021high}, "* +"RecursiveArrayTools\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* +"ArrayInterface\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." const CITE_BADGE = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* diff --git a/test/runtests.jl b/test/runtests.jl index 34c400a..586fe13 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -26,7 +26,6 @@ include("cite_str.jl") @test "Symbolics" ∈ pkgs @test "RecursiveArrayTools" ∈ pkgs @test "ArrayInterface" ∈ pkgs - @test "AbstractAlgebra" ∈ pkgs # There is an error in the CITATION.bib for Distributions @test_broken haskey(citations, "Distributions") end @@ -35,7 +34,6 @@ include("cite_str.jl") bib = bibliography(citations) @test haskey(bib, "DifferentialEquations.jl-2017") @test haskey(bib, "quadgk") - @test haskey(bib, "AbstractAlgebra.jl-2017") @test haskey(bib, "gowda2021high") end @@ -48,7 +46,6 @@ include("cite_str.jl") @test haskey(bib, "DifferentialEquations.jl-2017") @test haskey(bib, "quadgk") - @test haskey(bib, "AbstractAlgebra.jl-2017") @test haskey(bib, "gowda2021high") end @@ -68,7 +65,7 @@ include("cite_str.jl") str = make_sentence(citations, jl=false) @test str == CITE_STR - str = make_sentence(citations, cite_commands=Dict{String,String}("AbstractAlgebra"=>"\\autocite")) + str = make_sentence(citations, cite_commands=Dict{String,String}("Symbolics"=>"\\autocite")) @test str == CITE_STR_JL_AUTO @testset "Clipboard" begin @@ -89,6 +86,7 @@ include("cite_str.jl") @test_broken clipboard() == CITE_STR end end + @testset "PkgCite using badge" begin zenodo_env = "badge_env" Pkg.activate(zenodo_env) From 9f40e4f68a2ac0c61e2af73969716a6dc6c2ef7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Wed, 11 Aug 2021 11:16:10 +0300 Subject: [PATCH 5/8] Fix line endings --- test/cite_str.jl | 80 ++++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/test/cite_str.jl b/test/cite_str.jl index 8e93b83..9bcbb0e 100644 --- a/test/cite_str.jl +++ b/test/cite_str.jl @@ -1,40 +1,40 @@ -const CITE_STR_JL = -"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* -"and made use of the following packages: "* -"LabelledArrays.jl\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* -"QuadGK.jl\\cite[QuadGK]{quadgk}, "* -"Symbolics.jl\\cite[Symbolics]{gowda2021high}, "* -"RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* -"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." - -const CITE_STR_JL_AUTO = -"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* -"and made use of the following packages: "* -"LabelledArrays.jl\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* -"QuadGK.jl\\cite[QuadGK]{quadgk}, "* -"Symbolics.jl\\autocite[Symbolics]{gowda2021high}, "* -"RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* -"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." - -const CITE_STR_JL_SINGLE = -"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* -"and made use of the Symbolics.jl\\cite[Symbolics]{gowda2021high} package." - -const CITE_STR_JL_SINGLE_TT = -"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* -"and made use of the \\texttt{Symbolics.jl}\\cite[Symbolics]{gowda2021high} package." - - -const CITE_STR = -"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* -"and made use of the following packages: "* -"LabelledArrays\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* -"QuadGK\\cite[QuadGK]{quadgk}, "* -"Symbolics\\cite[Symbolics]{gowda2021high}, "* -"RecursiveArrayTools\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* -"ArrayInterface\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." - -const CITE_BADGE = -"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* -"and made use of the Plots.jl\\cite[Plots]{https://doi.org/10.5281/zenodo.4725317} "* -"and WriteVTK.jl\\cite[WriteVTK]{https://doi.org/10.5281/zenodo.4692172} packages." +const CITE_STR_JL = +"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* +"and made use of the following packages: "* +"LabelledArrays.jl\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* +"QuadGK.jl\\cite[QuadGK]{quadgk}, "* +"Symbolics.jl\\cite[Symbolics]{gowda2021high}, "* +"RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* +"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." + +const CITE_STR_JL_AUTO = +"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* +"and made use of the following packages: "* +"LabelledArrays.jl\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* +"QuadGK.jl\\cite[QuadGK]{quadgk}, "* +"Symbolics.jl\\autocite[Symbolics]{gowda2021high}, "* +"RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* +"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." + +const CITE_STR_JL_SINGLE = +"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* +"and made use of the Symbolics.jl\\cite[Symbolics]{gowda2021high} package." + +const CITE_STR_JL_SINGLE_TT = +"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* +"and made use of the \\texttt{Symbolics.jl}\\cite[Symbolics]{gowda2021high} package." + + +const CITE_STR = +"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* +"and made use of the following packages: "* +"LabelledArrays\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* +"QuadGK\\cite[QuadGK]{quadgk}, "* +"Symbolics\\cite[Symbolics]{gowda2021high}, "* +"RecursiveArrayTools\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* +"ArrayInterface\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." + +const CITE_BADGE = +"This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* +"and made use of the Plots.jl\\cite[Plots]{https://doi.org/10.5281/zenodo.4725317} "* +"and WriteVTK.jl\\cite[WriteVTK]{https://doi.org/10.5281/zenodo.4692172} packages." From 04ace175921d75f754132171382ba5e5e83e5a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Wed, 11 Aug 2021 11:25:54 +0300 Subject: [PATCH 6/8] Update doi for WriteVTK --- test/cite_str.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/cite_str.jl b/test/cite_str.jl index 9bcbb0e..b68a9b6 100644 --- a/test/cite_str.jl +++ b/test/cite_str.jl @@ -24,7 +24,6 @@ const CITE_STR_JL_SINGLE_TT = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the \\texttt{Symbolics.jl}\\cite[Symbolics]{gowda2021high} package." - const CITE_STR = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the following packages: "* @@ -37,4 +36,4 @@ const CITE_STR = const CITE_BADGE = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the Plots.jl\\cite[Plots]{https://doi.org/10.5281/zenodo.4725317} "* -"and WriteVTK.jl\\cite[WriteVTK]{https://doi.org/10.5281/zenodo.4692172} packages." +"and WriteVTK.jl\\cite[WriteVTK]{https://doi.org/10.5281/zenodo.5068937} packages." From 9f8d9b3c27314f47ef436d3dd45c4c976a8c12b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Thu, 12 Aug 2021 10:19:37 +0300 Subject: [PATCH 7/8] Sort citations --- Project.toml | 2 +- src/citations.jl | 2 +- test/cite_str.jl | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Project.toml b/Project.toml index a549a01..c135744 100644 --- a/Project.toml +++ b/Project.toml @@ -12,8 +12,8 @@ InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" [compat] -Bibliography = "0.2" BibParser = "0.1" +Bibliography = "0.2" DataStructures = "0.18" HTTP = "0.9" julia = "1.6" diff --git a/src/citations.jl b/src/citations.jl index 41e28f3..3fad9e4 100644 --- a/src/citations.jl +++ b/src/citations.jl @@ -52,7 +52,7 @@ function collect_citations(only_direct::Bool; badge=false) end end - return pkg_citations + return sort(pkg_citations) end function bibliography(pkg_citations) diff --git a/test/cite_str.jl b/test/cite_str.jl index b68a9b6..99c1d36 100644 --- a/test/cite_str.jl +++ b/test/cite_str.jl @@ -1,20 +1,20 @@ const CITE_STR_JL = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the following packages: "* +"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}, "* "LabelledArrays.jl\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* "QuadGK.jl\\cite[QuadGK]{quadgk}, "* -"Symbolics.jl\\cite[Symbolics]{gowda2021high}, "* "RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* -"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." +"Symbolics.jl\\cite[Symbolics]{gowda2021high}." const CITE_STR_JL_AUTO = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the following packages: "* +"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}, "* "LabelledArrays.jl\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* "QuadGK.jl\\cite[QuadGK]{quadgk}, "* -"Symbolics.jl\\autocite[Symbolics]{gowda2021high}, "* "RecursiveArrayTools.jl\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* -"ArrayInterface.jl\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." +"Symbolics.jl\\autocite[Symbolics]{gowda2021high}." const CITE_STR_JL_SINGLE = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* @@ -27,11 +27,11 @@ const CITE_STR_JL_SINGLE_TT = const CITE_STR = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* "and made use of the following packages: "* +"ArrayInterface\\cite[ArrayInterface]{DifferentialEquations.jl-2017}, "* "LabelledArrays\\cite[LabelledArrays]{DifferentialEquations.jl-2017}, "* "QuadGK\\cite[QuadGK]{quadgk}, "* -"Symbolics\\cite[Symbolics]{gowda2021high}, "* "RecursiveArrayTools\\cite[RecursiveArrayTools]{DifferentialEquations.jl-2017} and "* -"ArrayInterface\\cite[ArrayInterface]{DifferentialEquations.jl-2017}." +"Symbolics\\cite[Symbolics]{gowda2021high}." const CITE_BADGE = "This work was done in \\cite[Julia v$VERSION]{Julia-2017} "* From b06a43d4ebb141942b5bbba76809efba40f1faf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Thu, 12 Aug 2021 11:01:31 +0300 Subject: [PATCH 8/8] Fix deprecation --- src/citations.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/citations.jl b/src/citations.jl index 3fad9e4..e093431 100644 --- a/src/citations.jl +++ b/src/citations.jl @@ -52,7 +52,7 @@ function collect_citations(only_direct::Bool; badge=false) end end - return sort(pkg_citations) + return sort!(DataStructures.OrderedDict(pkg_citations)) end function bibliography(pkg_citations)