Skip to content

Commit

Permalink
High-level definition Compat fix (#170)
Browse files Browse the repository at this point in the history
* Compat fix for high-level service definitions

* Regenerated definitions with Compat fix

* Apply suggestions from code review

Co-authored-by: Curtis Vogt <[email protected]>

* Use UUIDs properly

* Regenerated API definitions to use UUIDs properly

* Update src/AWSMetadata.jl

Co-authored-by: Curtis Vogt <[email protected]>

* Created sub-package to test for compat warnings

* Special case Julia versions for TravisCI

* Use Suppressor.jl to capture out/err

Co-authored-by: Curtis Vogt <[email protected]>
  • Loading branch information
mattBrzezinski and omus authored Sep 3, 2020
1 parent f55efaa commit f8f7f76
Show file tree
Hide file tree
Showing 237 changed files with 737 additions and 694 deletions.
7 changes: 5 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "AWS"
uuid = "fbe9abb3-538b-5e4e-ba9e-bc94f4f92ebc"
license = "MIT"
version = "1.1.0"
version = "1.1.1"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Expand All @@ -15,6 +15,8 @@ Mocking = "78c3b35d-d492-501b-9361-3d52fe80e533"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Retry = "20febd7b-183b-5ae2-ac4a-720e7ce64774"
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
XMLDict = "228000da-037f-5747-90a9-8195ccbf91a5"

[compat]
Expand All @@ -30,8 +32,9 @@ XMLDict = "0.3, 0.4"
julia = "1"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

[targets]
test = ["Test", "UUIDs"]
test = ["Pkg", "Test", "UUIDs"]
12 changes: 6 additions & 6 deletions deps/metadata.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/AWS.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module AWS

using Compat: Compat
using Base64
using Dates
using HTTP
Expand All @@ -8,6 +9,7 @@ using Mocking
using OrderedCollections: LittleDict, OrderedDict
using Retry
using Sockets
using UUIDs: UUIDs
using XMLDict

export @service
Expand Down
6 changes: 3 additions & 3 deletions src/AWSMetadata.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ function _generate_high_level_wrapper(services::AbstractArray{<:OrderedDict})
open(service_path, "w") do f
println(f, "# This file is auto-generated by AWSMetadata.jl")
println(f, "using AWS")
println(f, "using AWS.AWSServices: $service_name\n")
println(f, "using Compat")
println(f, "using UUIDs")
println(f, "using AWS.AWSServices: $service_name")
println(f, "using AWS.Compat")
println(f, "using AWS.UUIDs")
join(f, operations, "\n")
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/services/accessanalyzer.jl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/services/acm.jl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/services/acm_pca.jl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/services/alexa_for_business.jl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/services/amplify.jl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/services/api_gateway.jl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/services/apigatewaymanagementapi.jl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

2 comments on commit f8f7f76

@mattBrzezinski
Copy link
Member Author

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 created: JuliaRegistries/General/20783

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 v1.1.1 -m "<description of version>" f8f7f761d1d2576b3005127f2d3d52768345d195
git push origin v1.1.1

Please sign in to comment.