Conan

Latest version: v2.9.3

Safety actively analyzes 681912 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 18 of 49

1.40.1

Not secure
- Feature: Change default `cmake_layout()` source folder from 'src' to '.' (https://github.com/conan-io/conan/pull/9596). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2225)
- Feature: Recovered `base_path` argument for `conan.tools.files.patch` and `conan.tools.files.apply_conandata_patches` to be able to specify a relative folder from the `conanfile.source_folder` directory (that follows the layout() method). (https://github.com/conan-io/conan/pull/9593). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2222)
- Fix: Allow user definition of `CMAKE_XXX_INIT` variables in user toolchains when using `CMakeToolchain`. (https://github.com/conan-io/conan/pull/9576)
- Fix: Upgrade minimum ``requests>=2.25`` in requirements.txt to make it compatible with latest upgrade of ``urllib3`` to 1.26.6 (https://github.com/conan-io/conan/pull/9562)
- Bugfix: Aggregate `[conf]` from `build_requires` earlier so it is available for generators declared as `generators`. attribute. Close https://github.com/conan-io/conan/issues/9571 (https://github.com/conan-io/conan/pull/9573)
- Bugfix: The qmake generator now assigns `QMAKE_LFLAGS_SHLIB` and `QMAKE_LFLAGS_APP` variables instead of the incorrect `QMAKE_LFLAGS` following the official docs. (https://github.com/conan-io/conan/pull/9568). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2224)

1.40.0

Not secure
- Feature: Update ``conan new`` modern templates ``--template=cmake_lib`` and ``--template=cmake_exe``. (https://github.com/conan-io/conan/pull/9516). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2211)
- Feature: Introduced a new cpp_info property `cmake_target_namespace` to declare the target namespace for the `CMakeDeps` generator. This feature allows declaring a global target with a different namespace like `Foo::Bar`. (https://github.com/conan-io/conan/pull/9513). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2209)
- Feature: Detect Visual Studio 2022 as `msvc`. (https://github.com/conan-io/conan/pull/9504)
- Feature: Add Clang 13 support. (https://github.com/conan-io/conan/pull/9502). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2204)
- Feature: Testing support for Windows CMake + Clang (independent LLVM, not VS) + Ninja/MinGW builds, and CMake + Clang (Visual Studio 16 internal LLVM 11 via ClangCL toolset). (https://github.com/conan-io/conan/pull/9477)
- Feature: Provide new ``[conf]`` ``core:default_build_profile`` to enable the usage of the build profile as default, and to allow definition of the host profile default in new ``[conf]`` ``core:default_profile``. (https://github.com/conan-io/conan/pull/9468). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2213)
- Feature: **CMakeToolchain** new member `find_builddirs` defaulted to `True` to add the `cpp_info.builddirs` from the requirements to the `CMAKE_PREFIX_PATH/CMAKE_MODULE_PATH`. That would allow finding the config files packaged and to be able to `include()` them from the consumer `CMakeLists.txt`. (https://github.com/conan-io/conan/pull/9455). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2209)
- Feature: **CMakeDeps**. Added a new property `cmake_find_mode` with possible values to `config`(default), `module`, `both` or `none` to control the files to be generated from a package itself. The `none` replaces the current `skip_deps_file` property. (https://github.com/conan-io/conan/pull/9455). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2209)
- Feature: **CMakeDeps**: Added two new properties `cmake_module_file_name` and `cmake_module_target_name`, analog to `cmake_file_name` and `cmake_target_name`, but to configure the name of `FindXXX.cmake` file and the target declared inside. (https://github.com/conan-io/conan/pull/9455). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2209)
- Feature: Remove `conan-center` (https://conan.bintray.com) default remote. (https://github.com/conan-io/conan/pull/9401). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2212)
- Feature: Implement round trip new profile ``[buildenv]`` section, necessary for lockfiles, and specially stdout printing. (https://github.com/conan-io/conan/pull/9320)
- Feature: Allow ``-o &:option=value`` wildcard for consumer, too, same it was done for settings in 1.39 (https://github.com/conan-io/conan/pull/9316). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2214)
- Fix: Adding management of private dependencies, via new ``visible`` trait compatible with 2.0 for new ``CMakeDeps`` and ``MSBuildDeps``. (https://github.com/conan-io/conan/pull/9517)
- Fix: Remove unused ``deprecation`` pip dependency (https://github.com/conan-io/conan/pull/9478)
- Fix: Upgrade ``distro`` dependency to allow 1.6.0 (https://github.com/conan-io/conan/pull/9462)
- Fix: Make `conan remove` accept package reference syntax. (https://github.com/conan-io/conan/pull/9459). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2198)
- Fix: Fixed old CMake build helper to cross-build to iOS when two profiles are specified. (https://github.com/conan-io/conan/pull/9437)
- Fix: Fix `conan export` typo in help message. (https://github.com/conan-io/conan/pull/9408). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2187)
- Fix: Relax python six dependency to allow 1.16 (https://github.com/conan-io/conan/pull/9407)
- Fix: Bump urllib3 version to 1.26.6 (https://github.com/conan-io/conan/pull/9405)
- Fix: The new `Autotools` build helper accepts a `build_script_folder ` argument in the `configure()` method to specify are subfolder where the configure script is. (https://github.com/conan-io/conan/pull/9393). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2208)
- Fix: Use `frameworks` in Premake generator. (https://github.com/conan-io/conan/pull/9371). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2210)
- Fix: The tool `conan.tools.files.apply_conandata_patches` will use the root source folder to find the patch file and the tool `conan.tools.files.patch` will take the current source folder declared in the `layout()` method to know where is the source to apply the patches. (https://github.com/conan-io/conan/pull/9361). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2207)
- Fix: Avoid checking other remotes when ``-r=remote`` is defined and revisions are activated and binary is not found in the defined remote. (https://github.com/conan-io/conan/pull/9355)
- Bugfix: Setting the `CMAKE_OSX_DEPLOYMENT_TARGET` variable as a cache entry. (https://github.com/conan-io/conan/pull/9498)
- BugFix: Use topological ordering to define `VirtualBuildEnv` composition and precedence of appending variables. (https://github.com/conan-io/conan/pull/9491)
- Bugfix: Bazel build files have an extra `]` if there are no dependencies. (https://github.com/conan-io/conan/pull/9480)
- Bugfix: Add AlmaLinux to `with_yum`. (https://github.com/conan-io/conan/pull/9463)
- Bugfix: **CMakeToolchain**. Fixed a bugfix whereby a variable declared at the `.variables` containing a boolean ended at CMake with a quoted `"True"` or `"False"` values, instead of `ON` / `OFF` (https://github.com/conan-io/conan/pull/9455). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2209)
- Bugfix: Fixed bug whereby Conan failed when using `compiler=gcc` with `compiler.version=5` (without specifying a minor version) and `compiler.cppstd=17`. (https://github.com/conan-io/conan/pull/9431)
- Bugfix: No verbose traceback was been printed for `conanfile.layout()` method. (https://github.com/conan-io/conan/pull/9384)
- Bugfix: Fix Bazel `cc_library`: `deps` and `linkopts`. (https://github.com/conan-io/conan/pull/9381)
- Bugfix: Fixed bug whereby using new `layout()` method together with `cppinfo.components` in the `package_info` method caused an exception. (https://github.com/conan-io/conan/pull/9360)
- Bugfix: Fix `PkgConfigDeps` that was failing in the case of components with requirements. (https://github.com/conan-io/conan/pull/9341)

1.39.0

Not secure
- Feature: Use `CMAKE_OSX_DEPLOYMENT_TARGET` to get `-version-min` set in _CMakeToolchain_. (https://github.com/conan-io/conan/pull/9301)
- Feature: Display ``python_requires`` information in the ``conan info`` output. (https://github.com/conan-io/conan/pull/9290)
- Feature: Now it is possible to define settings for a downstream consumer using `-s &:setting=value` or the same syntax in the profile even if the consumer is a `conanfile.txt` or a `conanfile.py` not declaring a name. e.g: Building a Debug application with Release dependencies: `-s build_type=Release -s &:build_type=Debug` (https://github.com/conan-io/conan/pull/9267). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2160)
- Feature: The `AutotoolsDeps` allows to alter the generated environment corresponding to the information read from the dependencies before calling the `generate()` method. (https://github.com/conan-io/conan/pull/9256). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2155)
- Feature: new `remove` and `items` methods for the `Environment` objects. (https://github.com/conan-io/conan/pull/9256). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2155)
- Feature: New `VCVars` generator that generates a `conanvcvars.bat` that activates the Visual Studio Developer Command Prompt. (https://github.com/conan-io/conan/pull/9230). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2153)
- Feature: Skip build helper test and using [conf]. (https://github.com/conan-io/conan/pull/9218). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2154)
- Feature: Implement a new ``requires = "pkg/(alias)"`` syntax to be able to dissambiguate alias requirements and resolve them earlier in the flow, solving some limitations of the previous alias definition. This approach is intended to be the one in Conan 2.0 (issue backported from https://github.com/conan-io/tribe/pull/25). (https://github.com/conan-io/conan/pull/9217). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2169)
- Feature: Introduce the ``-require-override`` argument to define dependency overrides directly on command line. (https://github.com/conan-io/conan/pull/9195). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2170)
- Feature: New `self.win_bash` mechanism to enable running commands in a bash shell in Windows. It works only with the new environment definition from the dependencies (`env_buildinfo` and `run_buildinfo`) as long as the new `AutotoolsToolchain`, `AutotoolsDeps` and `Autotools` build helper. It supports automatic conversion of the environment variables values declared as "path" according to the declared subsystem in the conf `tools.win.bash:subsystem`, that is not being auto-detected anymore. (https://github.com/conan-io/conan/pull/9194). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2152)
- Feature: A unique environment launcher (`conanenv.bat/sh`) is generated to aggregate all the environment generators (`VirtualRunEnv`, `VirtualBuildEnv`, `AutotoolsToolchain` and `AutotoolsDeps`) that had been generated so the user can easily activate all of them with one command. (https://github.com/conan-io/conan/pull/9161). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2151)
- Feature: Use _CMake_ File API. (https://github.com/conan-io/conan/pull/9005)
- Fix: Add ``bindirs`` definition to ``cmake_layout()``. (https://github.com/conan-io/conan/pull/9276)
- Fix: Improve error message when ``conan search <ref>`` a package in editable mode. (https://github.com/conan-io/conan/pull/9262)
- Fix: Add ``options`` to ``conanfile.dependencies`` model. (https://github.com/conan-io/conan/pull/9258)
- Fix: Fix _CMake_ rejecting library name with special characters. (https://github.com/conan-io/conan/pull/9245)
- Fix: Use filename `[PKG-NAME]-[COMP-NAME]` for `PkgConfigDeps`. (https://github.com/conan-io/conan/pull/9228). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2148)
- Fix: Saving all the toolchain args information into `conanbuild.conf` instead of json file. (https://github.com/conan-io/conan/pull/9225). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2156)
- Fix: Added warning in the new toolchains (the used in the generate() method) if no build profile is being used. (https://github.com/conan-io/conan/pull/9206). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2173)
- Fix: Implemented check that will raise an error in the `CMakeDeps` generator when using the `build_context_activated`, `build_context_suffix` or `build_context_build_modules` attributes if no build profile is being used. (https://github.com/conan-io/conan/pull/9206). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2173)
- Fix: The`CMakeDeps` generator will check if the targets specified in the `find_package(foo components x y z)` exist instead of checking against an internal variable. Also, this check will be done at the end of the `xxx-config.cmake` so any included `build_module` can declare the needed targets. (https://github.com/conan-io/conan/pull/9206). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2173)
- Fix: Consistent help message for conan profile (sub-command part). (https://github.com/conan-io/conan/pull/9204). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2171)
- Fix: Consistently put short arguments (-a) before long ones (--args). (https://github.com/conan-io/conan/pull/9199)
- Fix: `CC=clang` `--gcc-toolchain` is now identified as _clang_. (https://github.com/conan-io/conan/pull/9198)
- Fix: The new `VirtualEnv` generator has been split into `VirtualRunEnv` and `VirtualBuildEnv`. Both are automatically generated as before but only `VirtualBuildEnv` will be activated by default. (https://github.com/conan-io/conan/pull/9161). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2151)
- Bugfix: Fixing ``workspace install`` when conanfile has ``imports()``. (https://github.com/conan-io/conan/pull/9281)
- Bugfix: Fix QbsProfile toolchain ``qbs.architecture`` KeyError. (https://github.com/conan-io/conan/pull/9192)
- Bugfix: Do not define CMAKE_GENERATOR_TOOLSET in CMakeToolchain for Ninja generator, and define it in ``vcvars_ver`` instead. (https://github.com/conan-io/conan/pull/9187)
- BugFix: ``build_requires`` in host context, like gtest, are being propagated downstream by generators in the ``dependencies`` model. (https://github.com/conan-io/conan/pull/9171). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2172)
- Bugfix: Fix that overridden requirements _"cannot be found in lockfile"_. (https://github.com/conan-io/conan/pull/8907)

1.38.0

Not secure
- Feature: New ``PkgConfigDeps`` generator. (https://github.com/conan-io/conan/pull/9152). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2133)
- Feature: Proposal of jinja2 templates for profiles. (https://github.com/conan-io/conan/pull/9147). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2138)
- Feature: Add support for `CMAKE_CXX_STANDARD_REQUIRED` in _CMakeToolchain_. (https://github.com/conan-io/conan/pull/9144)
- Feature: Add ``context`` information to ``conan info`` output both to stdout and json outputs. (https://github.com/conan-io/conan/pull/9137). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2142)
- Feature: Improved the new `AutotoolsToolchain`, `AutotoolsDeps` and `Autotools` build helper. (https://github.com/conan-io/conan/pull/9131). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2135)
- Feature: Initial cross-build support in ``CMakeToolchain`` with definition of ``CMAKE_SYSTEM_NAME``, ``CMAKE_SYSTEM_PROCESSOR`` and ``CMAKE_SYSTEM_VERSION``, deduced from ``self.settings_build`` (only using the 2 profiles) and from new ``[conf]`` items. (https://github.com/conan-io/conan/pull/9115). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2140)
- Feature: Easier access to modify or update context values in ``CMakeToolchain`` blocks. (https://github.com/conan-io/conan/pull/9109). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2140)
- Feature: Provide `[conf]` command line support. (https://github.com/conan-io/conan/pull/9103). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2124)
- Feature: Added support for using server config from a custom location, setting `CONAN_SERVER_HOME` env variable or using `-d` or `--server_dir` flag when launching the server with `conan_server` command. (https://github.com/conan-io/conan/pull/9099). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2125)
- Feature: Support for `CMakeDeps` generator of a new property `"skip_deps_file"` to be declared in the `cpp_info` of a package to skip creating `xxx-config.cmake` files for it, allowing to create "system wrapper" recipes easily. (https://github.com/conan-io/conan/pull/9087). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2121)
- Feature: New ``conanfile.dependencies`` model, using a dict {requirement: ConanFileInterface} to prepare for Conan 2.0. (https://github.com/conan-io/conan/pull/9062). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2134)
- Feature: Allow a explicit ``requires = "pkg..recipe_revision"`` to update cache revision without ``--update``. (https://github.com/conan-io/conan/pull/9058). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2143)
- Feature: New ``cmake_layout()`` layout helper to define a multi-platform CMake layout that will work for different generators (ninja, xcode, visual, unix), and is multi-config. (https://github.com/conan-io/conan/pull/9057). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2141)
- Feature: The `conan_toolchain.cmake` now includes `xxx_DIR` variables for the dependencies to ease the `find_package` mechanism to locate them. The declaration of these directories is a must when cross-building in OSX where CMake ignores `CMAKE_PREFIX_PATH` and `CMAKE_MODULE_PATH` to look only at the system framework directories. (https://github.com/conan-io/conan/pull/9032). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2108)
- Feature: Provide access in the recipes to the environment declared with the [new environment system](https://docs.conan.io/en/latest/reference/conanfile/tools/env.html). (https://github.com/conan-io/conan/pull/9030). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2136)
- Fix: Fix Bazel build string defines. (https://github.com/conan-io/conan/pull/9139)
- Fix: Fixed behavior in the `self.folders` feature whereby the sources saved or downloaded inside the `source(self)` were saved at the `self.folders.source` folder. But `self.folders.source` is intended to describe where the sources are instead of forcing where the sources are saved. (https://github.com/conan-io/conan/pull/9124). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2127)
- Fix: Properly generate qbs profile for msvc. (https://github.com/conan-io/conan/pull/9122)
- Fix: Configuration general.user_home_short works with "None" value. (https://github.com/conan-io/conan/pull/9118)
- Fix: Avoid ``CMakeToolchain`` to generate OSX and Apple config for non Apple builds. (https://github.com/conan-io/conan/pull/9107)
- Fix: The new `MesonToolchain` now takes the declared environment variables (`CC`, `CXX`...) from build-requires and profiles to set the variables `c`, `cpp`, `c_ld`, `cpp_ld` etc, into the `conan_meson_native.ini` (https://github.com/conan-io/conan/pull/8353). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2139)
- Fix: Added new `preprocessor_definitions` to new Meson build helper. (https://github.com/conan-io/conan/pull/8353). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2139)
- Fix: The new `MesonToolchain` now allows adjusting any variable before generating the `conan_meson_native.ini` file. (https://github.com/conan-io/conan/pull/8353). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2139)
- Bugfix: Disabled remotes shouldn't fail if not used at all (https://github.com/conan-io/conan/pull/9184)
- BugFix: ``ConanFileDependencies.build["dep"]`` was retrieving the ``host`` dependency if existing, or failing otherwise, because the default requires was hardcoded to fetch the host (build=False) dependency. (https://github.com/conan-io/conan/pull/9148). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2134)
- Bugfix: Now, `conan profile {show, update, get, remove}` is working fine with new experimental `[conf]` section. (https://github.com/conan-io/conan/pull/9114)

1.37.2

Not secure
- Bugfix: Avoid crash when using ``--lockfile`` with the ``conan test`` command. (https://github.com/conan-io/conan/pull/9089)
- Bugfix: The `CMakeDeps` generator variables were named wrongly when a component had the same name as the package. (https://github.com/conan-io/conan/pull/9073)

1.37.1

Not secure
- Fix: Update the experimental ``conan new ... -m=v2_cmake`` template to start using the new ``layout()`` basic info. (https://github.com/conan-io/conan/pull/9053)
- Fix: Do not fail in ``CMakeDeps`` when there are ``build_requires`` with same name as host requires, unless ``build_context_activated`` is enabled for those and a different suffix has not been defined. (https://github.com/conan-io/conan/pull/9046)
- Fix: When using the new `self.folders.source` (at `layout(self)` method) the sources (from `export`, `export_sources` and `scm`) are copied to the base source folder and not to the `self.folders.source` that is intended to describe where the sources are after fetching them. (https://github.com/conan-io/conan/pull/9043). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/2117)
- BugFix: Do not quote all values and allow integer and macro referencing in ``MSBuildToolchain.preprocessor_definitions`` (https://github.com/conan-io/conan/pull/9056)
- Bugfix: The new generators like `CMakeDeps` and `CMakeToolchain`write the generated files defaulting to the `install folder` if no `self.folders.generators` is specified in the `layout()` method. (https://github.com/conan-io/conan/pull/9050)
- Bugfix: The `CMakeToolchain` generator now manages correctly a recipe without `arch` declared in an Apple system. (https://github.com/conan-io/conan/pull/9045)

Page 18 of 49

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.