Skip to content

Commit 4a3ed96

Browse files
authored
Merge pull request #28 from CarloLucibello/update
add Project.toml and related updates
2 parents 11301f8 + 8487b7e commit 4a3ed96

File tree

7 files changed

+57
-39
lines changed

7 files changed

+57
-39
lines changed

.travis.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ os:
33
- linux
44
- osx
55
julia:
6-
- 0.7
76
- 1.0
7+
- 1.2
88
- nightly
99
notifications:
1010
email: false
@@ -19,21 +19,17 @@ addons:
1919
apt: # apt-get for linux
2020
packages:
2121
- hdf5-tools
22-
22+
2323
jobs:
2424
include:
25-
- stage: deploy
26-
julia: 0.7
25+
- stage: "Documentation"
26+
julia: 1.0
2727
os: linux
2828
script:
29-
- julia -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("MLDatasets")'
30-
- julia -e 'import Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)'
31-
- julia -e 'import MLDatasets; ENV["DOCUMENTER_DEBUG"] = "true"; include(joinpath("docs","make.jl"))'
32-
33-
## uncomment the following lines to override the default test script
34-
#script:
35-
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
36-
# - julia --check-bounds=yes --color=yes -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("MLDatasets"); Pkg.test("MLDatasets"; coverage=true)';
29+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
30+
Pkg.instantiate()'
31+
- julia --project=docs/ docs/make.jl
32+
after_success: skip
3733

3834
after_success:
39-
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
35+
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'

Project.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name = "MLDatasets"
2+
uuid = "eb30cadb-4394-5ae3-aed4-317e484a6458"
3+
version = "0.4.0"
4+
5+
[deps]
6+
BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
7+
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
8+
DataDeps = "124859b0-ceae-595e-8997-d05f6a7a8dfe"
9+
FixedPointNumbers = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
10+
GZip = "92fee26a-97fe-5a0c-ad85-20a5f3185b63"
11+
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
12+
13+
[compat]
14+
ColorTypes = "≥ 0.4.0"
15+
DataDeps = "≥ 0.3.0"
16+
FixedPointNumbers = "≥ 0.3.0"
17+
ImageCore = "≥ 0.1.2"
18+
julia = "≥ 1.0.0"
19+
20+
[extras]
21+
ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
22+
MAT = "23992714-dd62-5051-b70f-ba57cb901cac"
23+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
24+
25+
[targets]
26+
test = ["Test", "MAT", "ImageCore"]

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ accessing benchmark dataset. Functionality for the purpose of
88
data processing or visualization is only provided to a degree
99
that is special to some dataset._
1010

11-
| **Package Status** | **Package Evaluator** | **Build Status** |
12-
|:------------------:|:---------------------:|:-----------------:|
13-
| [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md) [![Docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaML.github.io/MLDatasets.jl/stable) | [![Julia 0.6 Status](http://pkg.julialang.org/badges/MLDatasets_0.6.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=0.6) [![Julia 0.7 Status](http://pkg.julialang.org/badges/MLDatasets_0.7.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=0.7) [![Julia 1.0 Status](http://pkg.julialang.org/badges/MLDatasets_1.0.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=1.0) | [![Build Status](https://travis-ci.org/JuliaML/MLDatasets.jl.svg?branch=master)](https://travis-ci.org/JuliaML/MLDatasets.jl)|
14-
11+
| **Package Status** | **Build Status** |
12+
|:------------------:|:-----------------:|
13+
| [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md) [![Docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaML.github.io/MLDatasets.jl/stable) | [![Build Status](https://travis-ci.org/JuliaML/MLDatasets.jl.svg?branch=master)](https://travis-ci.org/JuliaML/MLDatasets.jl)|
1514

1615
This package is a part of the
1716
[`JuliaML`](https://github.com/JuliaML) ecosystem. Its

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

docs/make.jl

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ using Documenter, MLDatasets
33
makedocs(
44
modules = [MLDatasets],
55
clean = false,
6-
format = :html,
7-
assets = [
8-
joinpath("assets", "favicon.ico"),
9-
],
6+
format = Documenter.HTML(
7+
prettyurls = haskey(ENV, "CI"),
8+
assets = [joinpath("assets", "favicon.ico")]
9+
),
1010
sitename = "MLDatasets.jl",
1111
authors = "Hiroyuki Shindo, Christof Stocker",
1212
linkcheck = !("skiplinks" in ARGS),
@@ -23,14 +23,7 @@ makedocs(
2323
],
2424
hide("Indices" => "indices.md"),
2525
"LICENSE.md",
26-
],
27-
html_prettyurls = !("local" in ARGS),
26+
]
2827
)
2928

30-
deploydocs(
31-
repo = "github.com/JuliaML/MLDatasets.jl.git",
32-
target = "build",
33-
julia = "0.7",
34-
deps = nothing,
35-
make = nothing,
36-
)
29+
deploydocs(repo = "github.com/JuliaML/MLDatasets.jl.git")

docs/src/datasets/FashionMNIST.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ the Fashion-MNIST dataset in Julia more convenient.
5656

5757
Function | Description
5858
---------|-------------
59-
[`convert2features(array)`](@ref FashionMNIST.convert2features) | Convert the Fashion-MNIST tensor to a flat feature matrix
60-
[`convert2image(array)`](@ref FashionMNIST.convert2image) | Convert the Fashion-MNIST tensor/matrix to a colorant array
59+
[`convert2features(array)`](@ref MNIST.convert2features) | Convert the Fashion-MNIST tensor to a flat feature matrix
60+
[`convert2image(array)`](@ref MNIST.convert2image) | Convert the Fashion-MNIST tensor/matrix to a colorant array
6161

6262
You can use the function
63-
[`convert2features`](@ref FashionMNIST.convert2features) to
63+
[`convert2features`](@ref MNIST.convert2features) to
6464
convert the given Fashion-MNIST tensor to a feature matrix (or
6565
feature vector in the case of a single image). The purpose of
6666
this function is to drop the spatial dimensions such that
@@ -73,7 +73,7 @@ julia> FashionMNIST.convert2features(FashionMNIST.traintensor()) # full training
7373
```
7474

7575
To visualize an image or a prediction we provide the function
76-
[`convert2image`](@ref FashionMNIST.convert2image) to convert the
76+
[`convert2image`](@ref MNIST.convert2image) to convert the
7777
given Fashion-MNIST horizontal-major tensor (or feature matrix)
7878
to a vertical-major `Colorant` array. The values are also color
7979
corrected according to the website's description, which means
@@ -109,14 +109,14 @@ FashionMNIST.testdata
109109

110110
### Utilities
111111

112-
See [`MNIST.convert2features`](@ref) and
113-
[`MNIST.convert2image`](@ref)
114-
115112
```@docs
116113
FashionMNIST.download
117114
FashionMNIST.classnames
118115
```
119116

117+
Also, the `FashionMNIST` module is re-exporting [`convert2features`](@ref MNIST.convert2features)
118+
and [`convert2image`](@ref MNIST.convert2image) from the [`MNIST`](@ref) module.
119+
120120
## References
121121

122122
- **Authors**: Han Xiao, Kashif Rasul, Roland Vollgraf

src/FashionMNIST/FashionMNIST.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ replacement for MNIST.
2020
## Utilities
2121
2222
- [`FashionMNIST.download`](@ref)
23-
- [`MNIST.convert2features`](@ref)
24-
- [`MNIST.convert2image`](@ref)
23+
24+
Also, the `FashionMNIST` module is re-exporting [`convert2features`](@ref MNIST.convert2features)
25+
and [`convert2image`](@ref MNIST.convert2image) from the [`MNIST`](@ref) module.
2526
"""
2627
module FashionMNIST
2728
using DataDeps
2829
using FixedPointNumbers
2930
using ..MLDatasets: bytes_to_type, datafile, download_dep, download_docstring
31+
import ..MNIST
3032
using ..MNIST: convert2image, convert2features
3133
using ..MNIST.Reader
3234

0 commit comments

Comments
 (0)