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

Widen version compat #24

Merged
merged 4 commits into from
Jun 9, 2021

Conversation

MichaelHatherly
Copy link
Contributor

Fixes #22. It seems all that was needed was to check for existence of active_project since it was returning an invalid path for Julia 1.0-1.2, not sure why though. Locally all tests were passing, but we'll see what travis thinks...

Bit of a hack to handle the io keyword for Julia below 1.4, alternative suggestions welcome.

@codecov
Copy link

codecov bot commented Jun 9, 2021

Codecov Report

Merging #24 (7cb0686) into master (2b527ef) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 7cb0686 differs from pull request most recent head 8d2b378. Consider uploading reports for the commit 8d2b378 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   84.44%   84.44%           
=======================================
  Files           1        1           
  Lines          90       90           
=======================================
  Hits           76       76           
  Misses         14       14           
Impacted Files Coverage Δ
src/Scratch.jl 84.44% <100.00%> (ø)

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 2b527ef...8d2b378. Read the comment docs.

@MichaelHatherly
Copy link
Contributor Author

The failures on 1.7 for win and mac don't appear related and are present for me locally on 1.7 with both win and mac.

MichaelHatherly added a commit to MichaelHatherly/TimeZones.jl that referenced this pull request Jun 9, 2021
Fixes JuliaTime#338. At module init runs the current `build` to generate
the cached data, and stores it in a scratchspace instead of the
deps folder. Associated globals that were defined at top-level are
now set in `__init__` (and `_init` for submodules) to allow for
`PackageCompiler` support. Scratchspace is linked to the Julia and
package version so should rebuild when those change for users.

The `deps/build.jl` now just imports the package which triggers
a build of the cache if needed so this shouldn't really impact
`using TimeZones` much as far as I could tell.

A required PR for `Scratch` to expand it's version support is at
JuliaPackaging/Scratch.jl#24. I've enabled
support going back to 1.0 for that package to match what `TimeZones`
says it supports, but it turns out `EzXML` is bounded at `1.3` so
I couldn't test down to 1.0-1.2.
We used to ensure the orphanage was empty by asserting the file does not
exist.  We are now content if the file is empty as well
@staticfloat staticfloat merged commit bad7603 into JuliaPackaging:master Jun 9, 2021
@MichaelHatherly MichaelHatherly deleted the mh/julia-compat branch June 9, 2021 17:09
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.

Support earlier Julia versions?
2 participants