Skip to content

Commit

Permalink
switch to Project file (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietro Vertechi authored Feb 17, 2020
1 parent 1bc6c71 commit f690370
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Manifest.toml
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ os:
- osx

julia:
- 0.7
- 1.0
- 1.3
- 1.4
- nightly

notifications:
email: false

script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("FreqTables"); Pkg.test("FreqTables"; coverage=true)';
# script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("FreqTables"); Pkg.test("FreqTables"; coverage=true)';

after_success:
- julia -e 'using Pkg; cd(Pkg.dir("FreqTables")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
21 changes: 21 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name = "FreqTables"
uuid = "da1fdf0e-e0ff-5433-a45f-9bb5ff651cb1"
version = "0.3.2"

[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
NamedArrays = "86f7a689-2022-50b4-a561-43c23ac3c673"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
CategoricalArrays = "0.3, 0.4, 0.5, 0.6, 0.7"
NamedArrays = "0.9.1"
Tables = "1"
julia = "1"

[extras]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "DataFrames"]
4 changes: 0 additions & 4 deletions REQUIRE

This file was deleted.

2 changes: 1 addition & 1 deletion src/freqtable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ freqtable(x::AbstractCategoricalVector...; skipmissing::Bool = false,

function freqtable(t, cols::Symbol...; args...)
all_cols = Tables.columns(t)
a = freqtable((getproperty(all_cols, y) for y in cols)...; args...)
a = freqtable((Tables.getcolumn(all_cols, y) for y in cols)...; args...)
setdimnames!(a, cols)
a
end
Expand Down
1 change: 0 additions & 1 deletion test/REQUIRE

This file was deleted.

2 changes: 1 addition & 1 deletion test/freqtable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@ tab = proptable(df, :x, :y, margins=(1,2))

@test_throws ArgumentError proptable(df)
@test_throws ArgumentError proptable(nothing, :x, :y)
@test_throws MethodError proptable(df, :x, :y, 1, 2)
@test_throws MethodError proptable(df, :x, :y, 1, 2)

2 comments on commit f690370

@nalimilan
Copy link
Owner

Choose a reason for hiding this comment

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

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

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 v0.3.2 -m "<description of version>" f690370742df822eacf6fb4c50de2147e47461d1
git push origin v0.3.2

Please sign in to comment.