Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loguru/2.1.0 recipe #14543

Merged
merged 15 commits into from
Jul 3, 2023
Merged

Conversation

antekone
Copy link
Contributor

@antekone antekone commented Dec 2, 2022

Loguru: a lightweight and flexible C++ logging library.

Website: https://emilk.github.io/loguru/index.html Source code: https://github.com/emilk/loguru

Closes #14542

Specify library name and version: loguru/2.1.0

Loguru is a nice lightweight logging library. It has lots of stars on GitHub, and I think it should be supported by Conan. This is my first package so I'm sorry for any oversights!


@CLAassistant
Copy link

CLAassistant commented Dec 2, 2022

CLA assistant check
All committers have signed the CLA.

@conan-center-bot

This comment has been minimized.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, please, take a look on my review, there are some points which should be updated.

@@ -0,0 +1,63 @@
cmake_minimum_required(VERSION 3.25)
Copy link
Member

Choose a reason for hiding this comment

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

please, submit this cmake script to the upstream first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upstream already has a PR related to adding full CMake build: emilk/loguru#215, but it's not merged since April.

I can use the CMake script from this un-merged PR. But in the meantime I've decided to use a minimal own CMake script only for Conan package, and migrate to the "official" CMake build once upstream's PR-215 will be merged.

recipes/loguru/all/LICENSE.md Outdated Show resolved Hide resolved
recipes/loguru/all/conanfile.py Outdated Show resolved Hide resolved
recipes/loguru/all/conanfile.py Outdated Show resolved Hide resolved
recipes/loguru/all/conanfile.py Outdated Show resolved Hide resolved
recipes/loguru/all/conanfile.py Outdated Show resolved Hide resolved
Comment on lines 62 to 63
def build_requirements(self):
self.tool_requires("cmake/3.25.0")

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def build_requirements(self):
self.tool_requires("cmake/3.25.0")

it does not need cmake 3.25 for a very simple library.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean I should remove the cmake build requirement altogether? Or to downgrade its version?

I mean, it currently uses CMake to build itself. Can I still remove cmake build dependency?

recipes/loguru/all/conanfile.py Outdated Show resolved Hide resolved
recipes/loguru/all/conanfile.py Outdated Show resolved Hide resolved
Loguru: a lightweight and flexible C++ logging library.

Website: https://emilk.github.io/loguru/index.html
Source code: https://github.com/emilk/loguru

Closes conan-io#14542
@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Jan 16, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 16, 2023
@antekone
Copy link
Contributor Author

antekone commented Jan 16, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I want to fix issues in this PR, but I'm waiting for feedback from the Conan team. Is there some kind "waiting for feedback" label that can be requested?

@stale stale bot removed the stale label Jan 16, 2023
Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

@antekone Please, consider antekone#1

I added some improvements over your original cmake file 😄

@stale
Copy link

stale bot commented Feb 18, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 18, 2023
Simplifications and Conan v2 fixes
@conan-center-bot

This comment has been minimized.

@antekone
Copy link
Contributor Author

antekone commented Mar 1, 2023

@uilianries Merged your suggestions, thanks, will tidy up the latest comments from the linter bot (warnings regarding Conan v2) when I find some time for it.

@uilianries
Copy link
Member

@antekone Thank you! Currently we are under maintenance due Conan v2 migration. Please, follow https://status.conan.io to get more information! Happy March!

@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented May 1, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 1, 2023
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@czoido czoido self-assigned this Jun 29, 2023
@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 9bdf511
loguru/cci.20230406
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libloguru.so' links to system library 'm' but it is not in cpp_info.system_libs.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 18 (6c7c48b6f0c360d1ff5cd8368d174d77af0b6b43):

  • loguru/cci.20230406@:
    All packages built successfully! (All logs)

Conan v2 pipeline ✔️

Note: Conan v2 builds may be required once they are on the v2 ready list

All green in build 18 (6c7c48b6f0c360d1ff5cd8368d174d77af0b6b43):

  • loguru/cci.20230406@:
    All packages built successfully! (All logs)

@czoido
Copy link
Contributor

czoido commented Jul 3, 2023

Hi @antekone,
Looks like after some changes the recipe is almost there. Could you please sign the CLA so it can be merged after the last reviews?

@antekone
Copy link
Contributor Author

antekone commented Jul 3, 2023

@czoido CLA signed. I'm sorry for not participating in updates, and thank you for your help.

@czoido
Copy link
Contributor

czoido commented Jul 3, 2023

@czoido CLA signed. I'm sorry for not participating in updates, and thank you for your help.

No problem! Thanks a lot for the contribution! I hope the recipe can be merged soon

@conan-center-bot conan-center-bot merged commit 31f8c57 into conan-io:master Jul 3, 2023
tannerbitz pushed a commit to tannerbitz/conan-center-index that referenced this pull request Jul 8, 2023
* Add `loguru/2.1.0` recipe

Loguru: a lightweight and flexible C++ logging library.

Website: https://emilk.github.io/loguru/index.html
Source code: https://github.com/emilk/loguru

Closes conan-io#14542

* Simplify CMake and native features usage (conan-io#1)

Simplifications and Conan v2 fixes

* Update recipes/loguru/all/conanfile.py

* Update recipes/loguru/all/conanfile.py

* Update recipes/loguru/all/conanfile.py

* loguru: use latest commit with CMake support

* fixup: missing comma

* fixup: typo

* chore: rm config files

* fixup: clean up defines

* add includedirs, simplify test_package

* add suffix

* add m

* fix windows shared

* remove pdbs

---------

Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: czoido <mrgalleta@gmail.com>
pezy pushed a commit to pezy/conan-center-index that referenced this pull request Jul 15, 2023
* Add `loguru/2.1.0` recipe

Loguru: a lightweight and flexible C++ logging library.

Website: https://emilk.github.io/loguru/index.html
Source code: https://github.com/emilk/loguru

Closes conan-io#14542

* Simplify CMake and native features usage (conan-io#1)

Simplifications and Conan v2 fixes

* Update recipes/loguru/all/conanfile.py

* Update recipes/loguru/all/conanfile.py

* Update recipes/loguru/all/conanfile.py

* loguru: use latest commit with CMake support

* fixup: missing comma

* fixup: typo

* chore: rm config files

* fixup: clean up defines

* add includedirs, simplify test_package

* add suffix

* add m

* fix windows shared

* remove pdbs

---------

Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: czoido <mrgalleta@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[request] loguru/2.1.0
6 participants