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

[feature] Add description field to the output of conan info #6693

Closed
DoDoENT opened this issue Mar 16, 2020 · 0 comments · Fixed by #6724
Closed

[feature] Add description field to the output of conan info #6693

DoDoENT opened this issue Mar 16, 2020 · 0 comments · Fixed by #6724

Comments

@DoDoENT
Copy link
Contributor

DoDoENT commented Mar 16, 2020

I've just noticed that JSON output of conan info does not contain description field:

{
        "revision": "0",
        "reference": "range-v3/0.10.0@microblink/stable",
        "is_ref": true,
        "display_name": "range-v3/0.10.0@microblink/stable",
        "id": "5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9",
        "build_id": null,
        "remote": {
            "name": "microblink",
            "url": "http://artifactory.microblink.com/artifactory/api/conan/conan-local"
        },
        "url": "https://github.com/ericniebler/range-v3",
        "license": [
            "Boost Software License - Version 1.0 - August 17th, 2003"
        ],
        "recipe": "Cache",
        "binary": "Cache",
        "binary_remote": "microblink",
        "creation_date": "2019-12-07 00:36:31"
    }

yet, the recipe contains it:

class Rangev3Conan(ConanFile):
    name = "range-v3"
    version = "0.10.0"
    license = "Boost Software License - Version 1.0 - August 17th, 2003"
    url = "https://github.com/ericniebler/range-v3"
    description = """Experimental range library for C++11/14/17"""
    # No settings/options are necessary, this is header only
    exports_sources = "include*", "LICENSE.txt", "CMakeLists.txt", "cmake/*", "Version.cmake", "version.hpp.in"
    no_copy_source = True

    def package(self):
        cmake = CMake(self)
        cmake.definitions["RANGE_V3_TESTS"] = "OFF"
        cmake.definitions["RANGE_V3_EXAMPLES"] = "OFF"
        cmake.definitions["RANGE_V3_PERF"] = "OFF"
        cmake.definitions["RANGE_V3_DOCS"] = "OFF"
        cmake.definitions["RANGE_V3_HEADER_CHECKS"] = "OFF"
        cmake.configure()
        cmake.install()

        self.copy("LICENSE.txt", dst="licenses", ignore_case=True, keep_path=False)

I am working on a little script that will collect all OSS packages used by the product in our company and I would like it to output the name, version, URL, license and description of each of the OSS package. Currently I can get everything except the description.

I am using conan v1.23.0.

uilianries added a commit to uilianries/conan that referenced this issue Mar 24, 2020
Signed-off-by: Uilian Ries <uilianries@gmail.com>
uilianries added a commit to uilianries/conan that referenced this issue Mar 24, 2020
Signed-off-by: Uilian Ries <uilianries@gmail.com>
uilianries added a commit to uilianries/conan that referenced this issue Mar 24, 2020
Signed-off-by: Uilian Ries <uilianries@gmail.com>
jgsogo added a commit that referenced this issue Mar 25, 2020
* #6693 Check for description in JSON output

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* #6693 Show description for conan info

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* #6693 Use multiline description for tests

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* #6349 Remove duplicated line

Co-Authored-By: Javier G. Sogo <jgsogo@gmail.com>

Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants