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

Updates for Julia 0.7 #9

Merged
merged 4 commits into from
May 26, 2018
Merged

Updates for Julia 0.7 #9

merged 4 commits into from
May 26, 2018

Conversation

ararslan
Copy link
Contributor

Summary of changes:

  • Raise the Julia minimum version to 0.6 release
  • Add a dependency on Compat
  • Fix deprecation warnings on Julia 0.7
  • Minor refactoring to simplify code
  • Add 0.7 testing to Travis and AppVeyor

@codecov
Copy link

codecov bot commented May 19, 2018

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #9   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines         197    190    -7     
=====================================
- Hits          197    190    -7
Impacted Files Coverage Δ
src/dicts.jl 100% <100%> (ø) ⬆️
src/DeepDiffs.jl 100% <100%> (ø) ⬆️
src/strings.jl 100% <100%> (ø) ⬆️
src/arrays.jl 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 42631f9...caa0a75. Read the comment docs.

@ararslan
Copy link
Contributor Author

Interesting test failures on 0.7. Looks like the color isn't getting applied to the stream?

This raises the minimum required Julia version to 0.6 release, which is
required for any new tags in METADATA, and adds a dependency on Compat
to support Julia 0.7. It also fixes all deprecation warnings emitted on
Julia 0.7 and adds 0.7 testing to CI.
@ararslan
Copy link
Contributor Author

Okay this works locally for me now on 0.7. I've separated the work into 3 logically separate commits.

@ararslan
Copy link
Contributor Author

UGH now it doesn't work on 0.6.

@ararslan
Copy link
Contributor Author

Ah, the difference is in JuliaLang/julia#25067.

@ararslan ararslan force-pushed the aa/0.7 branch 2 times, most recently from cff845f to c709286 Compare May 19, 2018 19:15
In Julia 0.7, whether an IO object supports color is a property of its
context; Base.have_color refers only to whether Julia was launched with
--color=yes. In 0.6, controlling color requires manipulating that global
flag. Thus we'll hack around the difference with version checking.
test/runtests.jl Outdated
@testset DottedTestSet "DeepDiff Tests" begin
@includetests ARGS
# Capture the original state of the global flag
orig_color = Base.have_color
Copy link
Owner

Choose a reason for hiding this comment

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

Should this be wrapped in a version check? I think this variable is only used if we're running a version before color was moved into the IOContext, so it seems like this could be also. That way if Base.have_color disappears the tests will still run.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. I've pushed a commit that wraps it in isdefined.

@ssfrr ssfrr merged commit cb5550b into ssfrr:master May 26, 2018
@ssfrr
Copy link
Owner

ssfrr commented May 26, 2018

Merged and released as 1.1.0. Thanks!

@ararslan ararslan deleted the aa/0.7 branch May 26, 2018 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants