Skip to content

Commit

Permalink
Add Project.toml file, delete REQUIRE file, drop dependency on `Compa…
Browse files Browse the repository at this point in the history
…t.jl` (#3)

* Add Project.toml file, delete REQUIRE file, drop dependency on Compat

* Update appveyor.yml
  • Loading branch information
DilumAluthge authored and stevengj committed Dec 13, 2019
1 parent 1d79a2b commit 8010387
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ language: julia
os:
- linux
julia:
- 0.6
- 0.7
- 1.0
- 1.1
- 1.2
- "0.7"
- "1.0"
- "1.1"
- "1.2"
- "1.3"
- nightly
notifications:
email: false
12 changes: 12 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name = "VersionParsing"
uuid = "81def892-9a0e-5fdd-b105-ffc91e053289"
version = "1.2.0"

[compat]
julia = "0.7, 1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
2 changes: 0 additions & 2 deletions REQUIRE

This file was deleted.

1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
environment:
matrix:
- julia_version: 0.6
- julia_version: 0.7
- julia_version: 1.0
- julia_version: 1.1
Expand Down
3 changes: 1 addition & 2 deletions src/VersionParsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ handle version-number strings in a much wider range of formats
without throwing an exception.
"""
module VersionParsing
using Compat
export vparse

"""
Expand Down Expand Up @@ -45,7 +44,7 @@ function vparse(s_::String)
if occursin(r"^\d:\d+", s) # debian-style version number
s = replace(s, r"^\d:"=>"") # strip epoch
end
i = Compat.findfirst(isspace, s)
i = findfirst(isspace, s)
if i !== nothing
s = s[1:prevind(s,i)]
end
Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using VersionParsing, Compat
using Compat.Test
using VersionParsing
using Test

@test vparse("3.7.2a4") == v"3.7.2-a4" == vparse("version 3.7.2a4: the best version")
@test vparse("2.1.0-python3_5") == v"2.1.0-python35" # Plots.jl#1432
Expand Down

2 comments on commit 8010387

@stevengj
Copy link
Collaborator

Choose a reason for hiding this comment

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

@JuliaRegistrator register

@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/6640

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 Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.0 -m "<description of version>" 80103878cbcbe16aa9db2be830a8d1d58af78bd1
git push origin v1.2.0

Please sign in to comment.