forked from KeepCoolWithCoolidge/nimlibxlsxwriter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ThomasTJdev/prepped
- Loading branch information
Showing
67 changed files
with
17,092 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build XLSX | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
version: | ||
- stable | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: jiro4989/setup-nim-action@master | ||
with: | ||
nim-version: ${{ matrix.version }} | ||
|
||
- name: copy libxlsxwriter.so to /usr/lib | ||
run: | | ||
sudo cp nimlibxlsxwriter/include/libxlsxwriter.so /usr/lib/libxlsxwriter.so | ||
- name: Print Nim version | ||
run: nim -v | ||
|
||
- name: Print Nimble version | ||
run: nimble -v | ||
|
||
- name: Nimble Refresh | ||
run: nimble -y refresh | ||
|
||
- name: Nimble Install dependencies | ||
run: nimble -y install --depsOnly | ||
|
||
- name: Build binaries | ||
run: nimble test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
nimlibxlsxwriter/ | ||
tests/ | ||
!tests/*.nim | ||
tests/* | ||
|
||
!tests/*.nim | ||
!tests/config.nims |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Legacy notice | ||
|
||
`nimlibxlsxwriter` was originally developed by KeepCoolWithCoolidge using | ||
`nimgen`. Since then development of `nimgen` was deprecated and Github changed | ||
master branch name to `main`. | ||
|
||
`nimgen` had the external git repo branch hardcoded to `master`, which became | ||
a problem when the C-library `libxlsxwriter` changed its branch name to `main`. | ||
|
||
It has been a hassle to update but was partly resolved in https://github.com/ThomasTJdev/nimlibxlsxwriter/pull/4 | ||
and Genotrace was so kind to merge a pull request in `nimgen`: https://github.com/genotrance/nimgen/pull/50. | ||
|
||
|
||
# Reason | ||
|
||
Personally I have no need for using `nimlibxlsxwriter` on Windows, so I have | ||
decided to remove that support. That can be categorized as a breaking change... | ||
|
||
To give a fair notice I created the issue https://github.com/ThomasTJdev/nimlibxlsxwriter/issues/6 | ||
on the 26th og Juli 2021 with one month deadline before merging the Linux-only-PR. | ||
|
||
I have now waited for 6 months due to using the package locally with no problem. | ||
But *now* it's time! It's time because we have gotten another XLSX-package in | ||
the Nimble library! | ||
|
||
|
||
# What to do | ||
|
||
Well, if this gives you trouble place open an issue on the GitHub repo. If you | ||
want to use `nimgen`, then you have it right here! But no support from me. | ||
|
||
```bash | ||
$ nimgen nimlibxlsxwriter.cfg | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,4 +172,4 @@ export drawing | |
import chart | ||
export chart | ||
import queue | ||
export queue""" | ||
export queue""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include | ||
nimlibxlsxwriter/xlsxwriter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,37 @@ | ||
# Package | ||
|
||
version = "0.1.4" | ||
version = "0.3.0" | ||
author = "Original: KeepCoolWithCoolidge / Fork: ThomasTJdev" | ||
description = "libxslxwriter wrapper for Nim" | ||
license = "MIT" | ||
skipDirs = @["tests"] | ||
|
||
# Dependencies | ||
|
||
requires "nim >= 1.2.0" | ||
requires "nimgen >= 0.5.2" | ||
requires "c2nim >= 0.9.14" | ||
|
||
import distros | ||
|
||
var cmd = "" | ||
if detectOs(Windows): | ||
cmd = "cmd /c " | ||
|
||
task setup, "Checkout and generate": | ||
exec cmd & "nimgen nimlibxlsxwriter.cfg" | ||
|
||
before install: | ||
setupTask() | ||
task setup, "Check OS": | ||
if detectOs(Windows): | ||
quit("Cannot run on Windows. Checkout legacy/LEGACY.md for support") | ||
|
||
task test, "Run tests": | ||
withDir("tests"): | ||
exec "nim c -r anatomy.nim" | ||
exec "nim c -r array_formula.nim" | ||
exec "nim c -r autofilter.nim" | ||
exec "nim c -r chart_area.nim" | ||
exec "nim c -r chart_bar.nim" | ||
exec "nim c -r chart_clustered.nim" | ||
exec "nim c -r chart_column.nim" | ||
exec "nim c -r chart_data_table.nim" | ||
exec "nim c -r chart_data_tools.nim" | ||
exec "nim c -r chart_test.nim" | ||
exec "nim c -r date_and_times.nim" | ||
exec "nim c -r date_and_times_2.nim" | ||
exec "nim c -r date_and_times_3.nim" | ||
withDir("tests"): | ||
exec "nim c -r anatomy.nim" | ||
exec "nim c -r array_formula.nim" | ||
exec "nim c -r autofilter.nim" | ||
exec "nim c -r chart_area.nim" | ||
exec "nim c -r chart_bar.nim" | ||
exec "nim c -r chart_clustered.nim" | ||
exec "nim c -r chart_column.nim" | ||
exec "nim c -r chart_data_table.nim" | ||
exec "nim c -r chart_data_tools.nim" | ||
exec "nim c -r chart_test.nim" | ||
exec "nim c -r date_and_times.nim" | ||
exec "nim c -r date_and_times_2.nim" | ||
exec "nim c -r date_and_times_3.nim" | ||
|
||
before install: | ||
setupTask() |
Oops, something went wrong.