Граф коммитов

27 Коммитов

Автор SHA1 Сообщение Дата
vnherdeiro 989361555b
[ci] fix some shellcheck warnings in package-building scripts (#6641)
* Shellcheck compliance improvement (commit squashing)

* rolledback some sh files to address PR review

* Addressing comments on PR review

* Update docs/build-docs.sh

* checking gh login

* fixing cmakelint

* another fix to failing ci

* fixing linting ignoring files

* Fixing shellcheck issues on build-python and build-cran-package scripts

* Update build-cran-package.sh

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Update build-cran-package.sh

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Update build-cran-package.sh

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Adressing PR comments

* fixing CI

* Update build-python.sh

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Update build-python.sh

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Update build-python.sh

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Update build-python.sh

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Update build-python.sh

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* fixing quotemark typo

* fix CI

* fix CI

* triggering new CI (scikit-learn dev has changed)

* adressing PR comments

* ignore warnings about BUILD_ARGS and PIP_INSTALL_ARGS

---------

Co-authored-by: vnherdeiro <vnherdeiro@github.com>
Co-authored-by: James Lamb <jaylamb20@gmail.com>
2024-10-17 23:07:21 +03:00
Nikita Titov e8a68f2e22
[docs] use consistent naming for R-package and Python-package across the repo (#6655) 2024-10-06 21:49:20 -05:00
James Lamb 3d386be29b
[ci] [R-package] use --no-xattrs when re-tarring CRAN-style package (#6540) 2024-07-14 09:52:10 -07:00
James Lamb 6e78e697f8
[c++] remove uses of '..' in headers (#6409) 2024-05-03 22:37:27 -05:00
James Lamb da9bb5fd72
[R-package] always name the shared library 'lightgbm', not 'lib_lightgbm' (#6432) 2024-05-01 12:55:33 -05:00
James Lamb c906cfde85
[cmake] [c++] use .dylib extension unconditionally on macOS (#6418) 2024-04-22 23:15:32 -05:00
James Lamb 52441c478f
[ci] make shell scripts stricter (#6266) 2024-04-22 19:28:51 -05:00
James Lamb 631e0a2a7b
[ci] prevent trailing whitespace, ensure files end with newline (#6373) 2024-03-18 23:24:14 -05:00
James Lamb cc733f8595
[ci] ensure shell script exit codes are in range 0-255 (#6305) 2024-02-09 22:42:00 -06:00
James Lamb 1548b42bac
[R-package] [c++] add tighter multithreading control, avoid global OpenMP side effects (fixes #4705, fixes #5102) (#6226) 2023-12-07 17:03:16 -06:00
James Lamb b7418dc8c9
[ci] fix sh-compatibility issue in build-cran-package.sh (#6118) 2023-09-29 11:00:25 -05:00
James Lamb 98c1db7794
[R-package] use C++17 in the CRAN package (#5690) 2023-03-06 21:57:18 -06:00
James Lamb 8b105ceb68
[R-package] [ci] restore R 3.6 Windows cran CI job (fixes #5036) (#5479) 2022-09-11 23:20:12 -07:00
James Lamb f54e32f772
[R-package] fix `--no-build-vignettes` option for `build-cran-package.sh` (#4848) 2021-12-04 02:29:00 +03:00
James Lamb 5fa887bb79
[R-package] [docs] add intro vignette (#3946) (#4775)
* [R-package] [docs] add intro vignette (#3946)

* add 10 test vignettes

* Revert "add 10 test vignettes"

This reverts commit 40fb2e2f19.

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Michael Mayer <mayermichael79@gmail.com>
Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-11-17 22:15:32 -06:00
James Lamb 08ccd4a3fd
[R-package] allow use of custom R executable when building CRAN package (#4754)
* [R-package] allow use of custom R executable building CRAN package

* Update build-cran-package.sh

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-10-30 22:31:35 -05:00
James Lamb 75e486a6fa
[R-package] quote path variables in build-cran-package.sh (#4499) 2021-08-02 20:43:41 +03:00
Nikita Titov a9d9b1199c
store all CMake files in one place (#4087) 2021-03-21 16:36:03 +03:00
Nikita Titov 6bb6164e3c
Move compute and eigen libraries to external_libs folder (#3809)
* move all submodules to external_libs folder

* Update .Rbuildignore

* Update MANIFEST.in

* Update .appveyor.yml

* Update CMakeLists.txt

* Update build_r.R

* Update test.sh

* Update setup.py

* Update CMakeLists.txt

* Update test.sh

* Update setup.py

* Update conf.py

* Update MANIFEST.in

* Update LightGBM.vcxproj

* continue

* test

* test

* Update setup.py

* hotfix

* revert CI tests
2021-01-22 17:45:43 +03:00
James Lamb ed651e8672
[R-package] enable use of trees with linear models at leaves (fixes #3319) (#3699)
* [R-package] enable use of trees with linear models at leaves (fixes #3319)

* remove problematic pragmas

* fix tests

* try to fix build scripts

* try fixing pragma check

* more pragma checks

* ok fix pragma stuff for real

* empty commit

* regenerate documentation

* try skipping test

* uncomment CI

* add note on missing value types for R

* add tests on saving and re-loading booster
2021-01-18 15:44:38 +03:00
Alberto Ferreira 792c930305
Fix model locale issue and improve model R/W performance. (#3405)
* Fix LightGBM models locale sensitivity and improve R/W performance.

When Java is used, the default C++ locale is broken. This is true for
Java providers that use the C API or even Python models that require JEP.

This patch solves that issue making the model reads/writes insensitive
to such settings.
To achieve it, within the model read/write codebase:
 - C++ streams are imbued with the classic locale
 - Calls to functions that are dependent on the locale are replaced
 - The default locale is not changed!

This approach means:
 - The user's locale is never tampered with, avoiding issues such as
    https://github.com/microsoft/LightGBM/issues/2979 with the previous
    approach https://github.com/microsoft/LightGBM/pull/2891
 - Datasets can still be read according the user's locale
 - The model file has a single format independent of locale

Changes:
 - Add CommonC namespace which provides faster locale-independent versions of Common's methods
 - Model code makes conversions through CommonC
 - Cleanup unused Common methods
 - Performance improvements. Use fast libraries for locale-agnostic conversion:
   - value->string: https://github.com/fmtlib/fmt
   - string->double: https://github.com/lemire/fast_double_parser (10x
      faster double parsing according to their benchmark)

Bugfixes:
 - https://github.com/microsoft/LightGBM/issues/2500
 - https://github.com/microsoft/LightGBM/issues/2890
 - https://github.com/ninia/jep/issues/205 (as it is related to LGBM as well)

* Align CommonC namespace

* Add new external_libs/ to python setup

* Try fast_double_parser fix #1

Testing commit e09e5aad828bcb16bea7ed0ed8322e019112fdbe

If it works it should fix more LGBM builds

* CMake: Attempt to link fmt without explicit PUBLIC tag

* Exclude external_libs from linting

* Add exernal_libs to MANIFEST.in

* Set dynamic linking option for fmt.

* linting issues

* Try to fix lint includes

* Try to pass fPIC with static fmt lib

* Try CMake P_I_C option with fmt library

* [R-package] Add CMake support for R and CRAN

* Cleanup CMakeLists

* Try fmt hack to remove stdout

* Switch to header-only mode

* Add PRIVATE argument to target_link_libraries

* use fmt in header-only mode

* Remove CMakeLists comment

* Change OpenMP to PUBLIC linking in Mac

* Update fmt submodule to 7.1.2

* Use fmt in header-only-mode

* Remove fmt from CMakeLists.txt

* Upgrade fast_double_parser to v0.2.0

* Revert "Add PRIVATE argument to target_link_libraries"

This reverts commit 3dd45dde7b92531b2530ab54522bb843c56227a7.

* Address James Lamb's comments

* Update R-package/.Rbuildignore

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Upgrade to fast_double_parser v0.3.0 - Solaris support

* Use legacy code only in Solaris

* Fix lint issues

* Fix comment

* Address StrikerRUS's comments (solaris ifdef).

* Change header guards

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2020-12-08 21:36:24 +08:00
James Lamb 1c5930bf1d
[R-package] Remove CLI-only objects (#3566)
* [R-package] Remove CLI-only objects

* more guards

* more guards

* variable not string

* simplify fix

* revert build_r.R changes

* move define of global_timer

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-11-21 18:06:01 +03:00
Josh Maxwell 2e1b39ba8c
[R-package] Suppresses unknown pragma warnings during CRAN build (#3460)
* Modified script to also remove pragma warnings.

This also includes modifying the scope of the pragma removal.
Previously this script only searched inside the ./src/include/LightGMB directory.
This was not inclusive enough to remove the warnings in files shown in the ticket.

* Adds CI test that exits if unknown pragma warnings are present.

* Expanding pragma removal to cpp and hpp files.

* Update .ci/test_r_package.sh

Removing unneeded conditions since this script will only run on Linux and Mac builds anyway.

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Update .ci/test_r_package.sh

Fixes typo

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* replacing double quotes with single quotes

* Using a more portable find syntax so it works on macOS and Linux

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2020-10-16 14:03:06 -05:00
James Lamb 5538eb8d81
[R-package] [ci] Reduce manual effort for version updates (#3335)
* [R-package] [ci] Reduce manual effort for version updates

* fix configure

* remove useless comment

* Update build_r.R

Co-authored-by: Guolin Ke <guolin.ke@outlook.com>

* fix recreate-configure check in CI

Co-authored-by: Guolin Ke <guolin.ke@outlook.com>
2020-08-25 14:36:37 -05:00
James Lamb 1804fd12ea
[R-package] DESCRIPTION changes to address CRAN feedback (#3298)
* [R-package] DESCRIPTION changes to address CRAN feedback

* CRAN likes single quotes

* the regex rules for Rbuildignore are weird

* ugh Rbuildignore

* how does this wooork

* just remove cran-comments.md in script

* adding Biarch back

* Update R-package/cran-comments.md

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* add submission 3 notes

* Update R-package/cran-comments.md

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-08-12 20:17:38 -05:00
Guolin Ke 63c8287928
v3.0.0rc1 (#3071)
* Update VERSION.txt

* Update VERSION.txt

* Update setup.py

* Update VERSION.txt

* Update setup.py

* Update VERSION.txt

* Update .appveyor.yml

* Update DESCRIPTION

* Apply suggestions from code review

* Apply suggestions from code review

* Update DESCRIPTION

* Apply suggestions from code review

* Create VERSION.txt

* Apply suggestions from code review

* Update .gitignore

* Update recreate-configure.sh

* Update test_r_package.sh

* Update build-cran-package.sh

* Delete VERSION.txt

* Create VERSION.txt

* Update main.yml

* Update test_r_package_windows.ps1

* Update configure

* Update test_r_package_windows.ps1

* Update test_r_package.sh

* Delete VERSION.txt

* Apply suggestions from code review

* update configure.ac

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2020-08-07 08:11:12 +08:00
James Lamb aa933eb427
[R-package] make package installable with CRAN toolchain (fixes #2960) (#3188)
* [R-package] make package installable with CRAN toolchain (fixes #2960)

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* remove GPU stuff

* use wildcard to find objects to build

* use -lomp

* build configure before moving files

* using wildcard for objects

* Update .github/workflows/main.yml

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* add explicit objects back

* reduce allowed R CMD check NOTEs and catch stderr from build-cran-package on Windows

* fixing things

* pin autoconf version

* show diff

* add automake back

* run less checks

* command was in the wrong place

* fix autoconf version

* change strategy for handling configure

* fix Rbuildignore

* fix NOTEs

* fix notes about unrecognized files

* fixing extra files

* remove USE_R35

* add OpenMP check for Mac CRAN build

* run all checks

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* suggestions from code review

* undo indenting

* remove 03 from Makevars.win.in

* update language about OpenMP in configure script

* checking if configure.ac check works

* add autoconf back

* remove testing code in configure.ac

* more fixes for CI on configure script

* print git diff

* add VERSION.txt when checking configure

* fix relative paths

* remove git diff

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-07-28 21:05:59 -05:00