Conan

Latest version: v2.2.2

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

Scan your dependencies

Page 1 of 46

2.2.2

- Fix: Avoid issues with recipe ``print(..., file=fileobj)``. (https://github.com/conan-io/conan/pull/15934)
- Fix: Fix broken calls to `print(x, file=y)` with duplicate keyword arguments. (https://github.com/conan-io/conan/pull/15912)
- Bugfix: Fix handling of `tools.build:defines` for multiconfig CMake. (https://github.com/conan-io/conan/pull/15924)

2.2.1

- Fix: Add `copytree_compat` method for compatibility with Python>=3.12 after distutils removal. (https://github.com/conan-io/conan/pull/15906)

2.2.0

- Feature: Raise for toolchains different than CMakeToolchain if using universal binary syntax. (https://github.com/conan-io/conan/pull/15896)
- Feature: Warn on misplaced requirement function calls (https://github.com/conan-io/conan/pull/15888)
- Feature: Print options conflicts in the graph caused by different branches recipes defining options values. (https://github.com/conan-io/conan/pull/15876). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3643)
- Feature: Add macOS versions 14.2, 14.3, 14.4 to `settings.yml`. (https://github.com/conan-io/conan/pull/15859). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3628)
- Feature: New graph ``html``: more information, test-requires, hiding/showing different packages (build, test). (https://github.com/conan-io/conan/pull/15846). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3644)
- Feature: Add `--backup-sources` flag to `conan cache clean`. (https://github.com/conan-io/conan/pull/15845)
- Feature: Add `conan graph outdated` command that lists the dependencies that have newer versions in remotes (https://github.com/conan-io/conan/pull/15838). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3641)
- Feature: Set `CMAKE_VS_DEBUGGER_ENVIRONMENT` from CMakeToolchain to point to all binary directories when using Visual Studio. This negates the need to copy DLLs to launch executables from the Visual Studio IDE (requires CMake 3.27 or newer). (https://github.com/conan-io/conan/pull/15830). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3639)
- Feature: Add a parameter to `trim_conandata` to avoid raising an exception when conandata.yml file doesn't exist. (https://github.com/conan-io/conan/pull/15829). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3624)
- Feature: Added `build_context_folder ` to PkgConfigDeps. (https://github.com/conan-io/conan/pull/15813). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3640)
- Feature: Included `build.pkg_config_path ` in the built-in options section in the MesonToolchain template. (https://github.com/conan-io/conan/pull/15813). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3640)
- Feature: Update `_meson_cpu_family_map` to support `arm64ec`. (https://github.com/conan-io/conan/pull/15812)
- Feature: Added support for Clang 18. (https://github.com/conan-io/conan/pull/15806). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3637)
- Feature: Add basic support in CMakeToolchain for universal binaries. (https://github.com/conan-io/conan/pull/15775). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3642)
- Feature: New ``tools.cmake.cmake_layout:build_folder`` config that allows re-defining ``cmake_layout`` local build-folder. (https://github.com/conan-io/conan/pull/15767). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3646)
- Feature: New ``tools.cmake.cmake_layout:test_folder`` config that allows re-defining ``cmake_layout`` output build folder for ``test_package``, including a ``$TMP`` placeholder to create a temporary folder in system ``tmp``. (https://github.com/conan-io/conan/pull/15767). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3646)
- Feature: (Experimental) Add ``conan config install-pkg myconf/[*]`` new configuration inside Conan packages with new ``package_type = "configuration"``. (https://github.com/conan-io/conan/pull/15748). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3648)
- Feature: (Experimental) New ``core.package_id:config_mode`` that allows configuration package reference to affect the ``package_id`` of all packages built with that configuration. (https://github.com/conan-io/conan/pull/15748). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3648)
- Feature: Make `cppstd_flag` public to return the corresponding C++ standard flag based on the settings. (https://github.com/conan-io/conan/pull/15710). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3599)
- Feature: Allow ``self.name`` and ``self.version`` in ``build_folder_vars`` attribute and conf. (https://github.com/conan-io/conan/pull/15705). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3636)
- Feature: Add ``conan list --filter-xxx`` arguments to list package binaries that match settings+options. (https://github.com/conan-io/conan/pull/15697). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3647)
- Feature: Add `detect_libc` to the `detect_api` to get the name and version of the C library. (https://github.com/conan-io/conan/pull/15683). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3590)
- Feature: New ``CommandAPI`` subapi in the ``ConanAPI`` that allows calling other commands. (https://github.com/conan-io/conan/pull/15630). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3635)
- Fix: Avoid unnecessary build of ``tool_requires`` when ``--build=missing`` and repeated ``tool_requires``. (https://github.com/conan-io/conan/pull/15885)
- Fix: Fix ``CMakeDeps`` ``set_property(... APPEND`` argument order. (https://github.com/conan-io/conan/pull/15877)
- Fix: Raising an error when an infinite loop is found in the install graph (ill-formed dependency graph with loops). (https://github.com/conan-io/conan/pull/15835)
- Fix: Make sure `detect_default_compiler()` always returns a 3-tuple. (https://github.com/conan-io/conan/pull/15832)
- Fix: Print a clear message for ``conan graph explain`` when no binaries exist for one revision. (https://github.com/conan-io/conan/pull/15823)
- Fix: Add ``package_type="static-library"`` to the ``conan new msbuild_lib`` template. (https://github.com/conan-io/conan/pull/15807)
- Fix: Avoid ``platform_requires`` to fail when explicit options are being passed via ``requires(.., options={})``. (https://github.com/conan-io/conan/pull/15804)
- Fix: Make ``CMakeToolchain`` end with newline. (https://github.com/conan-io/conan/pull/15788)
- Fix: Do not allow ``conan list`` binary filters or package query if a binary pattern is not provided. (https://github.com/conan-io/conan/pull/15781)
- Fix: Avoid ``CMakeToolchain.preprocessor_definition`` definitions to ``"None"`` literal string when it has no value (Python ``None``). (https://github.com/conan-io/conan/pull/15756)
- Fix: Improved ``conan install <path> --deployer-package=*`` case that was crashing when using ``self.package_folder``. (https://github.com/conan-io/conan/pull/15737)
- Fix: Fix `conan graph info --format=html` for large dependency graphs. (https://github.com/conan-io/conan/pull/15724)
- Fix: Make all recipe and plugins python file ``print()`` to ``stderr``, so json outputs to ``stdout`` are not broken. (https://github.com/conan-io/conan/pull/15704)
- Fix: Fix getting the gnu triplet for Linux x86. (https://github.com/conan-io/conan/pull/15699)
- Bugfix: Solve backslash issues with ``conan_home_folder`` in ``global.conf`` when used in strings inside lists. (https://github.com/conan-io/conan/pull/15870)
- Bugfix: Fix ``CMakeDeps`` multi-config when there are conditional dependencies on the ``build_type``. (https://github.com/conan-io/conan/pull/15853)
- Bugfix: Move `get_backup_sources()` method to expected `CacheAPI` from `UploadAPI`. (https://github.com/conan-io/conan/pull/15845)
- Bugfix: Avoid TypeError when a version in conandata.yml lists no patches. (https://github.com/conan-io/conan/pull/15842)
- Bugfix: Solve ``package_type=build-scripts`` issue with lockfiles and ``conan create``. (https://github.com/conan-io/conan/pull/15802)
- Bugfix: Allow ``--channel`` command line argument if the recipe specifies ``user`` attribute. (https://github.com/conan-io/conan/pull/15794)
- Bugfix: Fix cross-compilation to Android from Windows when using ``MesonToolchain``. (https://github.com/conan-io/conan/pull/15790)
- Bugfix: Fix ``CMakeToolchain`` GENERATOR_TOOLSET when ``compiler.update`` is defined. (https://github.com/conan-io/conan/pull/15789)
- Bugfix: Solved evaluation of ``conf`` items when they matched a Python module (https://github.com/conan-io/conan/pull/15779)
- Bugfix: Fix ``PkgConfigDeps`` generating .pc files for its ``tool_requires`` when it is in the build context already. (https://github.com/conan-io/conan/pull/15763)
- Bugfix: Adding `VISIBILITY` flags to `CONAN_C_FLAGS` too. (https://github.com/conan-io/conan/pull/15762)
- Bugfix: Fix `conan profile show --format=json` for profiles with scoped confs. (https://github.com/conan-io/conan/pull/15747)
- Bugfix: Fix legacy usage of `update` argument in Conan API. (https://github.com/conan-io/conan/pull/15743)
- Bugfix: Solve broken profile ``[conf]`` when strings contains Windows backslash. (https://github.com/conan-io/conan/pull/15727)
- Bugfix: Fix version precendence for metadata version ranges. (https://github.com/conan-io/conan/pull/15653)

2.1.0

- Feature: Implement multi-config ``tools.build:xxxx`` flags in ``CMakeToolchain``. (https://github.com/conan-io/conan/pull/15654)
- Feature: Add ability to pass patterns to `--update` flag. (https://github.com/conan-io/conan/pull/15652). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3587)
- Feature: Add `--format=json` formatter to `conan build`. (https://github.com/conan-io/conan/pull/15651)
- Feature: Added `tools.build.cross_building:cross_build` to decide whether cross-building or not regardless of the internal Conan mechanism. (https://github.com/conan-io/conan/pull/15616)
- Feature: Add `--format=json` option to `conan cache path`. (https://github.com/conan-io/conan/pull/15613)
- Feature: Add the --order-by argument for conan graph build-order. (https://github.com/conan-io/conan/pull/15602). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3582)
- Feature: Provide a new ``graph build-order --reduce`` argument to reduce the order exclusively to packages that need to be built from source. (https://github.com/conan-io/conan/pull/15573). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3584)
- Feature: Add configuration to specify desired CUDA Toolkit in CMakeToolchain for Visual Studio CMake generators. (https://github.com/conan-io/conan/pull/15572). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3568)
- Feature: New "important" options values definition, with higher precedence over regular option value definitions. (https://github.com/conan-io/conan/pull/15571). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3585)
- Feature: Display message when calling `deactivate_conanvcvars`. (https://github.com/conan-io/conan/pull/15557)
- Feature: Add ``self.info`` information of ``package_id`` to serialized output in the graph, and forward it to package-lists. (https://github.com/conan-io/conan/pull/15553). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3553)
- Feature: Log Git tool commands when running in verbose mode. (https://github.com/conan-io/conan/pull/15514)
- Feature: Add verbose debug information (with ``-vvv``) for ``conan.tools.files.copy()`` calls. (https://github.com/conan-io/conan/pull/15513)
- Feature: Define ``python_requires = "tested_reference_str"`` for explicit ``test_package`` of ``python_requires``. (https://github.com/conan-io/conan/pull/15485). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3537)
- Feature: Adding `CMakeToolchain.presets_build/run_environment` to modify `CMakePresets` environment in `generate()` method. (https://github.com/conan-io/conan/pull/15470). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3547)
- Feature: Add `--allowed-packges` to remotes to limit what references a remote can supply. (https://github.com/conan-io/conan/pull/15464). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3534)
- Feature: Initial documentation to make ``RemotesAPI`` publicly available (experimental). (https://github.com/conan-io/conan/pull/15462)
- Feature: Add support for use of vcvars env variables when calling from powershell. (https://github.com/conan-io/conan/pull/15461). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3541)
- Feature: New ``Git(..., excluded=[])`` feature to avoid "dirty" errors in ``Git`` helper. (https://github.com/conan-io/conan/pull/15457). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3538)
- Feature: New ``core.scm:excluded`` feature to avoid "dirty" errors in ``Git`` helper and ``revision_mode = "scm"``. (https://github.com/conan-io/conan/pull/15457). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3538)
- Feature: Recipe ``python_package_id_mode`` for ``python_requires`` recipes, to define per-recipe effect on consumers ``package_id``. (https://github.com/conan-io/conan/pull/15453). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3542)
- Feature: Add cmakeExecutable to configure preset. (https://github.com/conan-io/conan/pull/15447). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3548)
- Feature: Add new ``--core-conf`` command line argument to allow passing `core.` confs via CLI. (https://github.com/conan-io/conan/pull/15441). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3515)
- Feature: Add ``detect_api.detect_msvc_update(version)`` helper to ``detect_api``. (https://github.com/conan-io/conan/pull/15435). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3535)
- Feature: ``CMakeToolchain`` defines ``jobs`` in generated ``CMakePresets.json`` buildPresets. (https://github.com/conan-io/conan/pull/15422)
- Feature: Allow nested "ANY" definitions in ``settings.yml``. (https://github.com/conan-io/conan/pull/15415). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3546)
- Feature: Helpers ``Git().coordinates_to_conandata()`` and ``Git().checkout_from_conandata_coordinates()`` to simplify scm based flows. (https://github.com/conan-io/conan/pull/15377)
- Feature: ``AutotoolsToolchain`` automatically inject ``-FS`` for VS. (https://github.com/conan-io/conan/pull/15375)
- Feature: New ``conan upload`` ``core.upload:parallel`` for faster parallel uploads. (https://github.com/conan-io/conan/pull/15360). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3540)
- Feature: Intel oneAPI compiler detection improvement. (https://github.com/conan-io/conan/pull/15358)
- Feature: Display progress for long ``conan list`` commands. (https://github.com/conan-io/conan/pull/15354)
- Feature: Add `extension_properties` attribute to pass information to extensions from recipes. (https://github.com/conan-io/conan/pull/15348). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3549)
- Feature: Implement `compatibility_cppstd` in `extension_properties` for the ``compatibility.py`` plugin to disable fallback to other cppstd for the recipe. (https://github.com/conan-io/conan/pull/15348). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3549)
- Feature: Add ``Git.get_commit(..., repository=True)`` to obtain the repository commit, not the folder commit. (https://github.com/conan-io/conan/pull/15304)
- Feature: Ensure ``--build=editable`` and ``--build=cascade`` works together. (https://github.com/conan-io/conan/pull/15300). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3550)
- Feature: New ``conan graph build-order --order=configuration`` to output a different order, sorted by package binaries/configurations, not grouped by recipe revisions. (https://github.com/conan-io/conan/pull/15270). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3552)
- Feature: Allow copy&paste of recipe revisions with timestamps from ``--format=compact`` into ``conan lock add``. (https://github.com/conan-io/conan/pull/15262). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3533)
- Fix: Guarantee order of `generators` attribute execution. (https://github.com/conan-io/conan/pull/15678)
- Fix: Solve issue with ``[platform_tool_requires]`` in the build profile and context. Discard ``[platform_requires]`` in build profile. (https://github.com/conan-io/conan/pull/15665)
- Fix: Fix gcc detection in conda environments. (https://github.com/conan-io/conan/pull/15664)
- Fix: Improve handling of `.dirty` download files when uploading backup sources. (https://github.com/conan-io/conan/pull/15601)
- Fix: Fix relativize paths in generated files. (https://github.com/conan-io/conan/pull/15592)
- Fix: Allow ``None`` values for ``CMakeToolchain.preprocessor_definitions`` that will map to definitions without values. (https://github.com/conan-io/conan/pull/15545). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3551)
- Fix: Fix `graph build-order --order=configuration` text format output. (https://github.com/conan-io/conan/pull/15538)
- Fix: Raise a helpful error when the remote is not reachable in case the user wants to work in offline mode. (https://github.com/conan-io/conan/pull/15516)
- Fix: Avoid missing file stacktrace when no metadata exists for a source backup. (https://github.com/conan-io/conan/pull/15501)
- Fix: Remove ``--lockfile-packages`` argument, it was not documented as it is was not intended for public usage. (https://github.com/conan-io/conan/pull/15499). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3536)
- Fix: Raise if `check_type=int` and conf value is set to `bool`. (https://github.com/conan-io/conan/pull/15378)
- Fix: Add `pkg-config` entry to machine file generated by MesonToolchain, due to `pkgconfig` entry being deprecated since Meson 1.3.0. (https://github.com/conan-io/conan/pull/15369)
- Fix: Fix `graph explain` not showing some differences in requirements if missing. (https://github.com/conan-io/conan/pull/15355)
- Fix: Fix `tools.info.package_id:confs` when pattern did not match any defined conf. (https://github.com/conan-io/conan/pull/15353)
- Fix: Fix ``upload_policy=skip`` with ``--build=missing`` issues. (https://github.com/conan-io/conan/pull/15336)
- Fix: Accept ``conan download/upload --list=.. --only-recipe`` to download only the recipes. (https://github.com/conan-io/conan/pull/15312)
- Fix: Allow ``cmake.build(build_type="Release")`` for recipes built with multi-config systems but without ``build_type`` setting. (https://github.com/conan-io/conan/pull/14780)
- Bugfix: Fix ``MSBuildDeps`` with components and skipped dependencies. (https://github.com/conan-io/conan/pull/15626)
- Bugfix: Avoid ``provides`` raising an error for packages that self ``tool_requires`` to themselves to cross-build. (https://github.com/conan-io/conan/pull/15575)
- Bugfix: Fix build scope OS detection in `tools.microsoft.visual.VCVars`. (https://github.com/conan-io/conan/pull/15568)
- Bugfix: Fix wrong propagation over ``visible=False`` when dependency is header-only. (https://github.com/conan-io/conan/pull/15564)
- Bugfix: Store the temporary cache folders inside ``core.cache:storage_path``, so ``conan cache clean`` also finds and clean them correctly. (https://github.com/conan-io/conan/pull/15505)
- Bugfix: The ``conan export-pkg --format=json`` output now returns ``recipe = "cache"`` status, as the recipe is in the cache after the command. (https://github.com/conan-io/conan/pull/15504)
- Bugfix: The ``conan export-pkg`` command stores the lockfile excluding the ``test_package``, following the same behavior as ``conan create``. (https://github.com/conan-io/conan/pull/15504)
- Bugfix: Avoid ``conan test`` failing for ``python_requires`` test-package. (https://github.com/conan-io/conan/pull/15485). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3537)
- Bugfix: MesonToolchain calculates a valid `apple_min_version_flag`. (https://github.com/conan-io/conan/pull/15465)
- Bugfix: Allow to limit ``os``, ``compiler`` and other settings with subsettings in ``build_id()`` and ``package_id()`` methods. (https://github.com/conan-io/conan/pull/15439)
- Bugfix: Fix getting environment variable CONAN_LOGIN_USERNAME_REMOTE. (https://github.com/conan-io/conan/pull/15388)
- Bugfix: Don't take `.` folder into consideration for `tools.files.copy()` `excludes` patterns. (https://github.com/conan-io/conan/pull/15349)
- Bugfix: Disable creating editables without name and version. (https://github.com/conan-io/conan/pull/15337)
- Bugfix: Fix `Git.get_url_and_commit` raising for some Git configs. (https://github.com/conan-io/conan/pull/15271)
- Bugfix: Direct dependencies in the "host" context of packages being built shouldn't be skipped. This allows for non C/C++ libraries artifacts, like images, in the "host" context, to be used as build-time resources. (https://github.com/conan-io/conan/pull/15128)

2.0.17

- Fix: Automatically create folder if ``conan cache save --file=subfolder/file.tgz`` subfolder doesn't exist. (https://github.com/conan-io/conan/pull/15409)
- Bugfix: Fix libcxx detection when using `CC/CXX` env vars. (https://github.com/conan-io/conan/pull/15418). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3509)
- Bugfix: Solve ``winsdk_version`` bug in ``CMakeToolchain`` generator for ``cmake_minimum_required(3.27)``. (https://github.com/conan-io/conan/pull/15373)
- Bugfix: Fix visible trait propagation with ``build=True`` trait. (https://github.com/conan-io/conan/pull/15357)
- Bugfix: Fix `package_id` calculation when including conf values thru `tools.info.package_id:confs`. (https://github.com/conan-io/conan/pull/15356)
- Bugfix: Order `conf` items when dumping them to allow reproducible `package_id` independent of the order the confs were declared. (https://github.com/conan-io/conan/pull/15356)

2.0.16

- Bugfix: Revert the default of ``source_buildenv``, make it ``False`` by default. (https://github.com/conan-io/conan/pull/15319). Docs: [:page_with_curl:](https://github.com/conan-io/docs/pull/3501)

Page 1 of 46

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.