Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to only supporting LTS+ #330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.0' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- 'lts' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
- 'nightly'
os:
Expand Down
4 changes: 1 addition & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[weakdeps]
Expand All @@ -35,10 +34,9 @@ MacroTools = "^0.5"
Measurements = "2.8"
OrderedCollections = "1.4"
Parameters = "^0.12"
Requires = "0.5, 1.0"
StatsBase = "0.33, 0.34"
Tables = "1"
julia = "1"
julia = "1.10"

[extras]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Expand Down
2 changes: 1 addition & 1 deletion ext/ColorsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module ColorsExt

import PGFPlotsX

PGFPlotsX.EXTENSIONS_SUPPORTED ? (using Colors) : (using ..Colors)
using Colors

function _rgb_for_printing(c::Colors.Colorant)
rgb = convert(Colors.RGB{Float64}, c)
Expand Down
2 changes: 1 addition & 1 deletion ext/ContourExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module ContourExt

import PGFPlotsX

PGFPlotsX.EXTENSIONS_SUPPORTED ? (using Contour) : (using ..Contour)
using Contour

function PGFPlotsX.TableData(c::Contour.ContourCollection; kwargs...)
colx = Any[]
Expand Down
2 changes: 1 addition & 1 deletion ext/MeasurementsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module MeasurementsExt

import PGFPlotsX

PGFPlotsX.EXTENSIONS_SUPPORTED ? (using Measurements) : (using ..Measurements)
using Measurements

function PGFPlotsX.Coordinates(x::AbstractVector{T}, y::AbstractVector;
kwargs...) where T <: Measurements.Measurement{<:Real}
Expand Down
2 changes: 1 addition & 1 deletion ext/StatsBaseExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module StatsBaseExt

import PGFPlotsX

PGFPlotsX.EXTENSIONS_SUPPORTED ? (using StatsBase) : (using ..StatsBase)
using StatsBase

function PGFPlotsX.TableData(h::StatsBase.Histogram{T, 1};
kwargs...) where T
Expand Down
14 changes: 0 additions & 14 deletions src/PGFPlotsX.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@ include("build.jl")
include("precompile_PGFPlotsX.jl")
_precompile_()

# TODO: Replace with proper version
const EXTENSIONS_SUPPORTED = isdefined(Base, :get_extension)

if !EXTENSIONS_SUPPORTED
using Requires: @require
end

function __init__()
pushdisplay(PGFPlotsXDisplay())
atreplinit(i -> begin
Expand All @@ -136,13 +129,6 @@ function __init__()
end
pushdisplay(PGFPlotsXDisplay())
end)

@static if !EXTENSIONS_SUPPORTED
@require Colors="5ae59095-9a9b-59fe-a467-6f913c188581" include("../ext/ColorsExt.jl")
@require Contour="d38c429a-6771-53c6-b99e-75d170b6e991" include("../ext/ContourExt.jl")
@require StatsBase="2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" include("../ext/StatsBaseExt.jl")
@require Measurements="eff96d63-e80a-5855-80a2-b1b0885c5ab7" include("../ext/MeasurementsExt.jl")
end
end

end # module
Loading