Conan: Using artifacts.properties per package

Created on 3 Oct 2018  路  3Comments  路  Source: conan-io/conan

To help us debug your issue please explain:

Using conan v1.7.4 on Linux.

Conan should allow you to upload additional artifact properties for Artifactory while doing the upload process. I'm aware of the artifact.properties file, but this is at the global level ~/.conan/artifact.properties. I think it makes sense to be able to override this file when calling conan upload.

The use case we have in mind is putting some build metadata related to our system with the package that got uploaded.

  • [x] I've read the CONTRIBUTING guide.
  • [x] I've specified the Conan version, operating system version and any tool that can be relevant.
  • [x] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.
medium low queue look into

Most helpful comment

My first thought would be during the conan upload command you could add a parameter to pass in an properties file. Something like --artifacts=artifact.properties. That would essentially set the properties for anything getting uploaded. This would work well for packages that can generate the properties file outside of the build process.

Another use case might be to add an properties() method that can call something like a self.set_prop(key, value). And during the upload process that gets run for the packages being uploaded.

All 3 comments

There is some information about that in here: https://docs.conan.io/en/latest/howtos/generic_ci_artifactory.html

Note that although the information of the link talks about CI, it could be done manually too.

Yes, the current file artifact.properties is global and very limited.
What is your idea of adjusting the properties per package? Where these properties would come from? We need feedback to improve it. I'm thinking if a Conan plugin (to be released today in 1.8) could be a possibility to adjust the properties, maybe offering a better interface.

My first thought would be during the conan upload command you could add a parameter to pass in an properties file. Something like --artifacts=artifact.properties. That would essentially set the properties for anything getting uploaded. This would work well for packages that can generate the properties file outside of the build process.

Another use case might be to add an properties() method that can call something like a self.set_prop(key, value). And during the upload process that gets run for the packages being uploaded.

Was this page helpful?
0 / 5 - 0 ratings