Skip to content

Commit

Permalink
Merge pull request #6 from queryverse/julia-0.7
Browse files Browse the repository at this point in the history
Julia 0.7
  • Loading branch information
davidanthoff authored Aug 25, 2018
2 parents 283f543 + bdeadc2 commit 86e4954
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 35 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
## Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- osx
julia:
- 0.7
- 1.0
- nightly
notifications:
email: false
git:
depth: 99999999

branches:
only:
- master
- /release-.*/
- /v(\d+)\.(\d+)\.(\d+)/
matrix:
allow_failures:
- julia: nightly
after_success:
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("FeatherFiles")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# FeatherFiles.jl v0.5.1
* Fix remaining julia 0.7/1.0 compat issues

# FeatherFiles.jl v0.5.0
* Drop julia 0.6 support, add julia 0.7 support

Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# FeatherFiles

[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![Build Status](https://travis-ci.org/davidanthoff/FeatherFiles.jl.svg?branch=master)](https://travis-ci.org/davidanthoff/FeatherFiles.jl)
[![Build status](https://ci.appveyor.com/api/projects/status/7ungvvmt6q7d9q9p/branch/master?svg=true)](https://ci.appveyor.com/project/davidanthoff/featherfiles-jl/branch/master)
[![Build Status](https://travis-ci.org/queryverse/FeatherFiles.jl.svg?branch=master)](https://travis-ci.org/queryverse/FeatherFiles.jl)
[![Build status](https://ci.appveyor.com/api/projects/status/8dbkg1vnew2pihtr/branch/master?svg=true)](https://ci.appveyor.com/project/queryverse/featherfiles-jl/branch/master)
[![FeatherFiles](http://pkg.julialang.org/badges/FeatherFiles_0.6.svg)](http://pkg.julialang.org/?pkg=FeatherFiles)
[![codecov.io](http://codecov.io/github/davidanthoff/FeatherFiles.jl/coverage.svg?branch=master)](http://codecov.io/github/davidanthoff/FeatherFiles.jl?branch=master)
[![codecov.io](http://codecov.io/github/queryverse/FeatherFiles.jl/coverage.svg?branch=master)](http://codecov.io/github/queryverse/FeatherFiles.jl?branch=master)

## Overview

This package provides load and save support for [Feather files](https://github.com/wesm/feather)
under the [FileIO.jl](https://github.com/JuliaIO/FileIO.jl) package.
This package provides load and save support for [Feather files](https://github.com/wesm/feather) under the [FileIO.jl](https://github.com/JuliaIO/FileIO.jl) package.

## Installation

Expand All @@ -27,7 +26,7 @@ using FeatherFiles, DataFrames
df = DataFrame(load("data.feather"))
````

The call to ``load`` returns a ``struct`` that is an [IterableTable.jl](https://github.com/davidanthoff/IterableTables.jl), so it can be passed to any function that can handle iterable tables, i.e. all the sinks in [IterableTable.jl](https://github.com/davidanthoff/IterableTables.jl). Here are some examples of materializing a feather file into data structures that are not a ``DataFrame``:
The call to ``load`` returns a ``struct`` that is an [IterableTable.jl](https://github.com/queryverse/IterableTables.jl), so it can be passed to any function that can handle iterable tables, i.e. all the sinks in [IterableTable.jl](https://github.com/queryverse/IterableTables.jl). Here are some examples of materializing a feather file into data structures that are not a ``DataFrame``:

````julia
using FeatherFiles, DataTables, IndexedTables, TimeSeries, Temporal, Gadfly
Expand Down Expand Up @@ -56,7 +55,7 @@ using FeatherFiles

save("output.feather", it)
````
This will work as long as ``it`` is any of the types supported as sources in [IterableTables.jl](https://github.com/davidanthoff/IterableTables.jl).
This will work as long as ``it`` is any of the types supported as sources in [IterableTables.jl](https://github.com/queryverse/IterableTables.jl).

### Using the pipe syntax

Expand All @@ -78,4 +77,4 @@ df = # Aquire a DataFrame somehow
df |> save("output.feather")
````

The pipe syntax is especially useful when combining it with [Query.jl](https://github.com/davidanthoff/Query.jl) queries, for example one can easily load a feather file, pipe it into a query, then pipe it to the ``save`` function to store the results in a new file.
The pipe syntax is especially useful when combining it with [Query.jl](https://github.com/queryverse/Query.jl) queries, for example one can easily load a feather file, pipe it into a query, then pipe it to the ``save`` function to store the results in a new file.
20 changes: 10 additions & 10 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
julia 0.7-
IteratorInterfaceExtensions 0.1.0
TableTraits 0.3.0
IterableTables 0.8.0
DataValues 0.4.1
FileIO
TableTraitsUtils 0.2.0
FeatherLib 0.1.0
Arrow 0.1.1
TableShowUtils 0.1.0
julia 0.7
IteratorInterfaceExtensions 0.1.1
TableTraits 0.3.1
IterableTables 0.8.3
DataValues 0.4.4
FileIO 1.0.1
TableTraitsUtils 0.2.1
FeatherLib 0.1.1
Arrow 0.2.1
TableShowUtils 0.1.1
28 changes: 17 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
environment:
matrix:
- julia_version: 0.7
- julia_version: latest
- julia_version: 1
- julia_version: nightly

platform:
- x86
- x64
- x86 # 32-bit
- x64 # 64-bit

## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
#matrix:
# allow_failures:
# - julia_version: latest
matrix:
allow_failures:
- julia_version: latest

branches:
only:
- master
- /release-.*/
- /v(\d+)\.(\d+)\.(\d+)/

notifications:
- provider: Email
Expand All @@ -25,12 +25,18 @@ notifications:
on_build_status_changed: false

install:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/master/bin/install.ps1'))
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))

build_script:
- echo "%JL_BUILD_SCRIPT%"
- julia -e "%JL_BUILD_SCRIPT%"
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"

test_script:
- echo "%JL_TEST_SCRIPT%"
- julia -e "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

# # Uncomment to support code coverage upload. Should only be enabled for packages
# # which would have coverage gaps without running on Windows
# on_success:
# - echo "%JL_CODECOV_SCRIPT%"
# - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"
2 changes: 1 addition & 1 deletion src/FeatherFiles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Base.show(io::IO, ::MIME"text/html", source::FeatherFile)
TableShowUtils.printHTMLtable(io, getiterator(source))
end

Base.Multimedia.mimewritable(::MIME"text/html", source::FeatherFile) = true
Base.Multimedia.showable(::MIME"text/html", source::FeatherFile) = true


function fileio_load(f::FileIO.File{FileIO.format"Feather"})
Expand Down

0 comments on commit 86e4954

Please sign in to comment.