Skip to content

Commit 3b6e4d1

Browse files
authored
Remove Requires.jl (#187)
* Remove Requires.jl * Update CI.yml
1 parent 59876a1 commit 3b6e4d1

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
version:
20-
- '1.6'
20+
- 'lts'
2121
- '1'
2222
os:
2323
- ubuntu-latest

Project.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name = "LossFunctions"
22
uuid = "30fc2ffe-d236-52d8-8643-a9d8f7c094a7"
3-
version = "1.0.2"
3+
version = "1.1.0"
44

55
[deps]
66
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
7-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
87
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
98

109
[weakdeps]
@@ -15,8 +14,7 @@ LossFunctionsCategoricalArraysExt = "CategoricalArrays"
1514

1615
[compat]
1716
CategoricalArrays = "0.10, 1.0"
18-
Requires = "1"
19-
julia = "1.6"
17+
julia = "1.9"
2018

2119
[extras]
2220
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"

src/LossFunctions.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ using Markdown
99
import Base: sum
1010
import Statistics: mean
1111

12-
if !isdefined(Base, :get_extension)
13-
import Requires: @require
14-
end
15-
1612
# trait functions
1713
include("traits.jl")
1814

@@ -22,15 +18,6 @@ include("losses.jl")
2218
# IO methods
2319
include("io.jl")
2420

25-
# Extensions
26-
@static if !isdefined(Base, :get_extension)
27-
function __init__()
28-
@require CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597" include(
29-
"../ext/LossFunctionsCategoricalArraysExt.jl"
30-
)
31-
end
32-
end
33-
3421
export
3522
# margin-based losses
3623
ZeroOneLoss,

0 commit comments

Comments
 (0)