instance_id
stringlengths
10
57
file_changes
listlengths
1
15
repo
stringlengths
7
53
base_commit
stringlengths
40
40
problem_statement
stringlengths
11
52.5k
patch
stringlengths
251
7.06M
coin-or__pulp-746
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pulp/mps_lp.py:readMPSSetBounds" ], "edited_modules": [ "pulp/mps_lp.py:readMPSSetBounds" ] }, "file": "pulp/mps_lp.py" } ]
coin-or/pulp
cfb8a0f637965aeb4ae9d3a21dd9b386140e94e4
PuLP does not recognize PL bound type in .mps files **System:** MacBook (INTEL CPU), Ventura 13.2, Python 3.8 PuLP 2.7.0 From Wikipedia : [https://en.wikipedia.org/wiki/MPS_(format)](url) `The optional BOUNDS section specifies lower and upper bounds on individual variables, if they are not given by rows in the ...
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 1d7795e..4bb1240 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -10,6 +10,11 @@ jobs: matrix: python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] ...
coleifer__peewee-790
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "peewee.py:UUIDField.db_value" ], "edited_modules": [ "peewee.py:UUIDField", "peewee.py:MySQLDatabase" ] }, "file": "peewee.py" } ]
coleifer/peewee
f424cd64352ecc799c3c2d60aafe17dbb30f58ef
Better support for UUIDField As an extension from #780, databases which don't support UUID natively may encounter consistency problems. Postgres will correctly handle multiple input variants [\[1\]][1], such as `a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11` and `a0eebc999c0b4ef8bb6d6bb9bd380a11`. However SQLite, which ...
diff --git a/.gitignore b/.gitignore index 6e0d4e46..b348417c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ playhouse/_speedups.so playhouse/tests/peewee_test.db .idea/ MANIFEST +peewee_test.db diff --git a/peewee.py b/peewee.py index 827d0896..c910682d 100644 --- a/peewee.py +++ b/peewee.py @@ -1038,7 +1...
colinfike__easy-ptvsd-2
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "easy_ptvsd.py:wait_and_break.__call__" ], "edited_modules": [ "easy_ptvsd.py:wait_and_break" ] }, "file": "easy_ptvsd.py" }, { "changes": { "added_entitie...
colinfike/easy-ptvsd
6ec7940a227939039464fb4e9beb48819470d8b4
Strange functionality when used with @classmethod decorator I'm seeing return values not being returned when using `wait_and_break` with `@classmethod` decorator. Actually this is issue is definitely that I don't return the value the decorated function returns.
diff --git a/.gitignore b/.gitignore index cb1663a..473dc19 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ __pycache__ *.egg-info dist +*.pyc diff --git a/easy_ptvsd.py b/easy_ptvsd.py index 6af5619..538747f 100644 --- a/easy_ptvsd.py +++ b/easy_ptvsd.py @@ -30,9 +30,11 @@ class wait_and_break: def ...
collective__icalendar-185
[ { "changes": { "added_entities": [ "src/icalendar/cal.py:Component.is_broken" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/icalendar/cal.py:Component" ] }, "file": "src/icalendar/cal.py" } ]
collective/icalendar
6888bbe02042cd65b12a6d855b527a964a4b823b
incompatible changes in 3.9.2 With 70a7b5a16748afbf0d48ca180c2b7613fdd7e7d0 we introduced some backwards incompatible changes: * `Component.is_broken` got replaced with `Component.errors` * events with a `RDATE;VALUE=PERIOD:19970101T180000Z/19970102T070000Z,19970109T180000Z/PT5H30M` component still had an `RDATE...
diff --git a/CHANGES.rst b/CHANGES.rst index 5fbf217..405ebcb 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,7 @@ New: Fixes: - Fix testsuite for use with ``dateutil>=2.5``. Refs #195. +- Reintroduce cal.Component.is_broken that was removed with 3.9.2 [geier] 3.9.2 (2016-02-05) diff --git a/src/icalen...
collective__icalendar-235
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/icalendar/prop.py:vUTCOffset.from_ical" ], "edited_modules": [ "src/icalendar/prop.py:vUTCOffset" ] }, "file": "src/icalendar/prop.py" } ]
collective/icalendar
34fda85e994738da788d6ae826c5f97375c2ac72
Offsets larger than 24h? At https://github.com/geier/khal/issues/140 there is a user whose offset values are not accepted by icalendar. I have no idea what is going on in that iCalendar file. Anybody got any ideas?
diff --git a/CHANGES.rst b/CHANGES.rst index 5119c87..dc581d9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,7 +10,8 @@ Breaking changes: New features: -- *add item here* +- added vUTCOffset.ignore_exceptions to allow surpressing of failed TZOFFSET + parsing (for now this ignores the check for offsets > 24h) [...
collective__icalendar-391
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": [ "src/icalendar/prop.py:vDDDTypes.__eq__" ], "added_modules": null, "ed...
collective/icalendar
5669f494586d7d78e8236926a973d29e90519824
Missing equivalence member function for icalendar.prop.vDDDTypes While comparing two vevents, I have to check if RECURRENCE-ID are the same in addition to UID. However, `vevent1["RECURRENCE-ID"]==vevent2["RECURRENCE-ID"] `always returns false, as only the object ids are compared and not the content. It would be hel...
diff --git a/CHANGES.rst b/CHANGES.rst index 027d4e2..86588af 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,7 +11,7 @@ Minor changes: Breaking changes: -- Require Python 3.7 as minimum Python version. [maurits] [niccokunzmann] +- Require Python 3.8 as minimum Python version. [maurits] - icalenar now takes a...
collective__icalendar-492
[ { "changes": { "added_entities": [ "src/icalendar/prop.py:vDDDTypes.__hash__" ], "added_modules": null, "edited_entities": [ "src/icalendar/prop.py:vDDDTypes.__eq__" ], "edited_modules": [ "src/icalendar/prop.py:vDDDTypes" ] }, "file": "s...
collective/icalendar
9be5f7c9f282876c942f2a8fa8369e3fc70e1efa
[REGRESSION] DDDType not hashable in icalendar 5 Compare this: ``` >>> import icalendar >>> import datetime >>> icalendar.__version__ '4.0.9' >>> icalendar.vDDDTypes(datetime(2022,10,10)).__hash__() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'module' object is not cal...
diff --git a/CHANGES.rst b/CHANGES.rst index b46dae7..d0682ba 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,11 +14,11 @@ Breaking changes: New features: -- ... +- vDDDTypes is hashable #487 #492 [niccokunzmann] Bug fixes: -- ... +- vDDDTypes' equality also checks the dt attribute #497 #492 [niccokunzmann]...
collective__icalendar-559
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/icalendar/cal.py:Component._encode" ], "edited_modules": [ "src/icalendar/cal.py:Component" ] }, "file": "src/icalendar/cal.py" } ]
collective/icalendar
4d6aacb1c9416165b5d3c38df00fa5414222700b
[BUG] Component._encode ignores parameters if value is native <!-- This template is there to guide you and help us. If you can not complete everything here, that is fine. --> ## Describe the bug <!-- A clear and concise description of what the bug is. --> `Component._encode` ignores the given parameters if the value...
diff --git a/CHANGES.rst b/CHANGES.rst index 2d81830..0ae1673 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,6 +18,9 @@ New features: Bug fixes: +- Component._encode stops ignoring parameters argument on native values, now merges them + Fixes: #557 + [zocker1999net] - ... 5.0.9 (2023-09-24) diff --git a/d...
collective__zpretty-132
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "zpretty/prettifier.py:ZPrettifier._prepare_text" ], "edited_modules": [ "zpretty/prettifier.py:ZPrettifier" ] }, "file": "zpretty/prettifier.py" } ]
collective/zpretty
f1b639eebbf350aae4494c1f16edde450b41295c
problem in combination of "&" and ";" in attributes. Affects: zpretty 3.1.0a1 ## problem 1 Running `zpretty` without any options on this input: ``` <a href="a=b&c=d"></a> <div tal:define="var view/attr;"></div> ``` Produces this output: ``` <a href="a=b&c=d"></a> <div tal:define="var view/attr;"></a> `...
diff --git a/HISTORY.md b/HISTORY.md index c475ebf..64da5b9 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,15 +2,15 @@ ## 3.1.0a2 (unreleased) - -- Nothing changed yet. - +- Improve the regular expression that matches the entities + (Fixes #130) + [ale-rt] ## 3.1.0a1 (2023-05-04) - Add command line paramet...
collective__zpretty-36
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "zpretty/prettifier.py:ZPrettifier.__init__" ], "edited_modules": [ "zpretty/prettifier.py:ZPrettifier" ] }, "file": "zpretty/prettifier.py" } ]
collective/zpretty
78402172b55d68f4d9ee4df341a0652891c83264
empty lines in tag lead to invalid attributes when test.html is ``` <select id="workflow_action" name="workflow_action" ></select> ``` then ``$ zpretty test.html`` produces this output: ``` <select id="workflow_action" ="" name="workflow_action" ></select> ``` Or general...
diff --git a/HISTORY.md b/HISTORY.md index b796720..b7935f6 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,7 @@ 2.1.0 (unreleased) ------------------ +- Do not render a spurious `=""` when new lines appear inside a tag (Refs. #35) [ale-rt] - The attributes renderer knows about the element indentation and f...
colour-science__colour-1167
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "colour/phenomena/rayleigh.py:air_refraction_index_Bodhaine1999", "colour/phenomena/rayleigh.py:F_air_Bodhaine1999" ], "edited_modules": [ "colour/phenomena/rayleigh.py:air_re...
colour-science/colour
284f5864c1763525238b1cb1566cf42983d1590a
Investigate discrepancies in "Scattering Cross Section" computations compared to ground truth. I noticed some discrepancies between the output of "colour.scattering_cross_section" definition and Bodhaine, Wood, Dutton and Slusser (1999) ground truth data that need to be investigated.
diff --git a/colour/phenomena/rayleigh.py b/colour/phenomena/rayleigh.py index 181b6d37d..020b37451 100644 --- a/colour/phenomena/rayleigh.py +++ b/colour/phenomena/rayleigh.py @@ -61,6 +61,7 @@ __all__ = [ "scattering_cross_section", "rayleigh_optical_depth", "rayleigh_scattering", + "sd_rayleigh_sca...
colour-science__colour-213
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "colour/algebra/__init__.py" }, { "changes": { "added_entities": [ "colour/algebra/interpolation.py:CubicSplineInterpolator.__init__" ...
colour-science/colour
d09934a0cf3d851ce15b3a7556ec24673a9ddb35
Implement support for spectral data "Piecewise Cubic Hermite Interpolation".
diff --git a/colour/algebra/__init__.py b/colour/algebra/__init__.py index f46d14502..77bfc6f5e 100644 --- a/colour/algebra/__init__.py +++ b/colour/algebra/__init__.py @@ -6,17 +6,19 @@ from __future__ import absolute_import from .coordinates import * # noqa from . import coordinates from .extrapolation import Ext...
colour-science__colour-314
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "colour/models/rgb/transfer_functions/bt_1886.py:oetf_BT1886", "colour/models/rgb/transfer_functions/bt_1886.py:eotf_BT1886" ], "edited_modules": [ "colour/models/rgb/transfer...
colour-science/colour
c8d6d39746fc04f65306acfabe636d81229965cd
Change "L_B" and "L_W" default argument values for "BT.1886" eotf. Current default values are 64 and 940, i.e. 10-bit black and white code values. L_B and L_W should be screen luminance in cd/m^2 if the function is to return absolute luminance, or e.g. 0 and 1 to return normalised values.
diff --git a/colour/models/rgb/transfer_functions/bt_1886.py b/colour/models/rgb/transfer_functions/bt_1886.py index 73fb873e9..a366685f9 100644 --- a/colour/models/rgb/transfer_functions/bt_1886.py +++ b/colour/models/rgb/transfer_functions/bt_1886.py @@ -41,7 +41,7 @@ __all__ = ['oetf_BT1886', 'eotf_BT188...
colour-science__colour-367
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "colour/colorimetry/__init__.py" }, { "changes": { "added_entities": [ "colour/colorimetry/lightness.py:lightness_Fairchild2011" ],...
colour-science/colour
3e8087c925f28dd07b6468751f603b34d14760a4
Implement support for "hdr-CIELab" and "hdr-IPT" (2011) colourspaces. References --- - Fairchild, M. D., & Chen, P. (2011). Brightness , Lightness , and Specifying Color in High-Dynamic-Range Scenes and Images. doi:10.1117/12.872075 - #347 - #321
diff --git a/colour/colorimetry/__init__.py b/colour/colorimetry/__init__.py index edeadca44..c14274bca 100644 --- a/colour/colorimetry/__init__.py +++ b/colour/colorimetry/__init__.py @@ -21,11 +21,13 @@ from .lefs import (mesopic_luminous_efficiency_function, from .lightness import LIGHTNESS_METHODS from .lightness...
colour-science__colour-368
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "colour/colorimetry/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "colou...
colour-science/colour
8c77aa68c2347583ad23adf678ae1eb3821f854e
Improve "Canon Log" and "Panasonic V-Log" implementations and consistency Following on from #336 and the changes implemented in PR #338 for "Sony S-Log", it would improve consistency if the same things were done for "Canon Log" and "Panasonic V-Log". Like the Sony documentation, both Canon and Panasonic show tables ...
diff --git a/colour/colorimetry/__init__.py b/colour/colorimetry/__init__.py index c14274bca..edeadca44 100644 --- a/colour/colorimetry/__init__.py +++ b/colour/colorimetry/__init__.py @@ -21,13 +21,11 @@ from .lefs import (mesopic_luminous_efficiency_function, from .lightness import LIGHTNESS_METHODS from .lightness...
colour-science__flask-compress-14
[ { "changes": { "added_entities": [ "flask_compress.py:Compress.compressed" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "flask_compress.py:Compress" ] }, "file": "flask_compress.py" } ]
colour-science/flask-compress
262c401e4a5d8652e30e807cd391857426c8a59a
Enable compression per view Hello, It would be fantastic if this design only allows compression to be enabled for selected views. This could be done with a decorator. https://github.com/apache/airflow/blob/master/airflow/www/decorators.py#L67 This will allow this library to be used in my project - Apache Airflow. ...
diff --git a/README.md b/README.md index 270ab6a..f8560c2 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,8 @@ $ easy_install flask-compress ## Using Flask-Compress +### Globally + Flask-Compress is incredibly simple to use. In order to start compressing your Flask application's assets, the first thing to do ...
colour-science__flask-compress-36
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "flask_compress/flask_compress.py:Compress.init_app", "flask_compress/flask_compress.py:Compress.after_request" ], "edited_modules": [ "flask_compress/flask_compress.py:Compre...
colour-science/flask-compress
8bc891203c611b14fffbfec155df226c9955d954
gzip not work with v1.12 I am not sure what happened. The gzip compress of my website works fine in `v1.11`. However, in `v1.12` all files are uncompressed. My usecase is basic as follows, where my static files locate in `/web` directory. ``` app = Flask(__name__, static_folder='web', static_url_path='') app....
diff --git a/.gitignore b/.gitignore index a57a25f..715ed9a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.sw[klmnop] # python *.py[co~] +.python-version # Ignoring build dir /build /dist diff --git a/README.md b/README.md index 842b52e..4265ceb 100644 --- a/README.md +++ b/README.md @@ -114,3 +114,4 ...
commitizen-tools__commitizen-489
[ { "changes": { "added_entities": [ "commitizen/cli.py:parse_no_raise" ], "added_modules": [ "commitizen/cli.py:parse_no_raise" ], "edited_entities": [ "commitizen/cli.py:commitizen_excepthook", "commitizen/cli.py:main" ], "edited_modules"...
commitizen-tools/commitizen
605b1252c2b9bb4ce82d14e1fde26a8139ad5e23
enable skiping certain errors like no commit found ## Description enable skiping certain errors like no commit found ## Possible Solution in short ``` cz [ops] --no-raise [error type] ``` detailed on [473](https://github.com/commitizen-tools/commitizen/pull/473#issuecomment-1022930540) ## Additional con...
diff --git a/commitizen/cli.py b/commitizen/cli.py index 839e6cf5..bf751b44 100644 --- a/commitizen/cli.py +++ b/commitizen/cli.py @@ -2,12 +2,18 @@ import argparse import logging import sys from functools import partial +from typing import List import argcomplete from decli import cli -from commitizen import ...
commitizen-tools__commitizen-511
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "commitizen/changelog.py:incremental_build" ], "edited_modules": [ "commitizen/changelog.py:incremental_build" ] }, "file": "commitizen/changelog.py" } ]
commitizen-tools/commitizen
354f9ea687b1aee0e69ad2976dc23b1d6121ae3b
Ensure At Least One Blank Line Above When Updating Changelog ### Description If you initialize the changelog with some additional documentation (e.g., "This changelog is auto-generated by the Python-based [Commitizen](https://commitizen-tools.github.io/commitizen)."), then the first time you release, the auto-gener...
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d0d5eba1..14bee6b4 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -10,7 +10,7 @@ Please fill in the following content to let us know better about this change. ## Checklist - [ ] Add test c...
commitizen-tools__commitizen-512
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "commitizen/cli.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "commitizen/command...
commitizen-tools/commitizen
713ce195afbfd449eb67c2fcd792b68e0b6048b4
Aborted Commit Considered to Fail Validation When Run As commit-msg Hook ## Description Git interprets an empty commit message to mean that a commit should be aborted, but calls all commit-msg hooks anyways. This causes pre-commit hooks that run as commit-msg hooks but don't guard against empty commit messages to sp...
diff --git a/commitizen/cli.py b/commitizen/cli.py index bf751b44..d9f1025b 100644 --- a/commitizen/cli.py +++ b/commitizen/cli.py @@ -240,6 +240,12 @@ data = { "help": "commit message that needs to be checked", "exclusive_group": "group1", }, + ...
commitizen-tools__commitizen-539
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "commitizen/commands/bump.py:Bump.__call__" ], "edited_modules": [ "commitizen/commands/bump.py:Bump" ] }, "file": "commitizen/commands/bump.py" } ]
commitizen-tools/commitizen
dee73f09d41ebda9f27dffb363e414f6f9cf8bc2
Produce changelog with `cz bump --dry-run --changelog-to-stdout` ### Description I'm using the commitizen pre-commit hook paired with renovate for automated dependency updates. I'd like to test the commitizen functionality before merging the upgrade PR. One thing I'd like to see is if the changelog is being generat...
diff --git a/commitizen/commands/bump.py b/commitizen/commands/bump.py index 17f929bd..cbc5266d 100644 --- a/commitizen/commands/bump.py +++ b/commitizen/commands/bump.py @@ -180,17 +180,6 @@ class Bump: "The commits found are not elegible to be bumped" ) - # Do not perform operat...
commitizen-tools__commitizen-540
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "commitizen/changelog.py:get_oldest_and_newest_rev" ], "edited_modules": [ "commitizen/changelog.py:get_oldest_and_newest_rev" ] }, "file": "commitizen/changelog.py" }...
commitizen-tools/commitizen
d33f5fcd63c32ce84a78c100b8f73c633fc0513b
`cz changelog` is not reporting git errors (`git.py` missing `cmd.return_code` checks) ### Description `cz commit` worked just fine, but `cz changelog` resulted in the error: > "No commits found" I later came to find the calls to git were silently failing in `git.get_tags` due to an unsupported version of git. It...
diff --git a/commitizen/changelog.py b/commitizen/changelog.py index 1ccdb4e2..ead80ab7 100644 --- a/commitizen/changelog.py +++ b/commitizen/changelog.py @@ -35,7 +35,7 @@ from jinja2 import Environment, PackageLoader from commitizen import defaults from commitizen.bump import normalize_tag -from commitizen.except...
commitizen-tools__commitizen-669
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "commitizen/__version__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "commitizen...
commitizen-tools/commitizen
1ff575d177ad4a8fc47b08cd1e7f9fa3326f0478
Support new charset-normalizer v3 ### Description The package `charset-normalizer` has released the v3. The dependency for this project is `<3.0.0,>=2.1.0` ### Possible Solution Add the support for new version of `charset-normalizer` and add it to the supported versions ### Additional context _No response_ ### Ad...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa1d625d..0aeaa4d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: no-commit-to-branch - repo: https://github.com/commitizen-tools/commitizen - rev: v2.42.0 # automatically updated by Co...
common-workflow-language__cwl-utils-223
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cwl_utils/utils.py:resolved_path" ], "edited_modules": [ "cwl_utils/utils.py:resolved_path" ] }, "file": "cwl_utils/utils.py" } ]
common-workflow-language/cwl-utils
064be751034c5476ece8bf9b2c7e2b94afeef067
pack command fails on complex workflow with error 'MissingTypeName' ## Steps to reproduce ### Download complex workflow ```bash wget "https://github.com/umccr/cwl-ica/releases/download/bclconvert-with-qc-pipeline%2F4.0.3__1682577366/bclconvert-with-qc-pipeline__4.0.3__1682577366.zip" unzip bclconvert-with-qc-pi...
diff --git a/cwl_utils/utils.py b/cwl_utils/utils.py index 435439e..1632b74 100644 --- a/cwl_utils/utils.py +++ b/cwl_utils/utils.py @@ -195,14 +195,9 @@ def resolved_path( if link == "": return base_url else: - return base_url._replace( - pat...
common-workflow-language__cwltool-1446
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cwltool/command_line_tool.py:revmap_file", "cwltool/command_line_tool.py:CommandLineTool.collect_output" ], "edited_modules": [ "cwltool/command_line_tool.py:revmap_file", ...
common-workflow-language/cwltool
63c7c724f37d6ef0502ac8f7721c8ed3c556188f
CommandLineTool output filenames are URL encoded ## Expected Behavior CommandLineTool outputs whose filenames contain special characters should retain those special characters when copied to the final output directory. For example, if a CommandLineTool writes an output file with the name "(parentheses).txt", then the ...
diff --git a/cwltool/command_line_tool.py b/cwltool/command_line_tool.py index 4554f501..08b10385 100644 --- a/cwltool/command_line_tool.py +++ b/cwltool/command_line_tool.py @@ -200,9 +200,7 @@ def revmap_file( outside the container. Recognizes files in the pathmapper or remaps internal output directories to...
common-workflow-language__cwltool-1469
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cwltool/context.py:RuntimeContext.__init__" ], "edited_modules": [ "cwltool/context.py:RuntimeContext" ] }, "file": "cwltool/context.py" }, { "changes": { ...
common-workflow-language/cwltool
cef7385f242273060a584ebdac8334a8cb8c5c59
Request for cwltool to support named pipes ## Expected Behavior Some runners such as Toil might implement file streaming with named pipes when `streamable` flag is true: https://github.com/DataBiosphere/toil/issues/3469 ## Actual Behavior An exception is raised because a named pipe is not a regular file: https:/...
diff --git a/cwltool/context.py b/cwltool/context.py index 83c098e1..daf6aa86 100644 --- a/cwltool/context.py +++ b/cwltool/context.py @@ -107,6 +107,7 @@ class RuntimeContext(ContextBase): self.pull_image = True # type: bool self.rm_container = True # type: bool self.move_outputs = "move" ...
common-workflow-language__cwltool-1760
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cwltool/main.py:generate_example_input" ], "edited_modules": [ "cwltool/main.py:generate_example_input" ] }, "file": "cwltool/main.py" } ]
common-workflow-language/cwltool
14f402f643f86f72fa13a1d2e5fde3dcc7a90914
Creating input yaml - issue with ruamel comments.py Hi, I am using cwltool version 3.0.20201203173111 that came with `pip install cwl-runner`. This might be issue with ruamel or with my workflow but here is run command and trace: `cwltool --make-template --debug tumor_only_exome.cwl > hiv_input.yml` traceback: ...
diff --git a/cwltool/main.py b/cwltool/main.py index e024d22a..23c12d59 100755 --- a/cwltool/main.py +++ b/cwltool/main.py @@ -195,13 +195,15 @@ def generate_example_input( else: comment = "optional" else: - example = CommentedSeq() - for index, entry...
common-workflow-language__cwltool-1964
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cwltool/main.py:setup_provenance", "cwltool/main.py:main" ], "edited_modules": [ "cwltool/main.py:setup_provenance", "cwltool/main.py:main" ] }, "file":...
common-workflow-language/cwltool
8ff1fd05a12a124d104a67b7fd8ac3382c3e5212
Calling cwltool.main() with preparsed args and provenance fails unless unparsed args are also provided ## Expected Behavior Calling `cwltool.main()` with preparsed args only, but including `--provenance`, should execute and create a RO-Crate, the same as when running as a script. ## Actual Behavior The execution f...
diff --git a/cwltool/main.py b/cwltool/main.py index d71b1b8a..4d7914ee 100755 --- a/cwltool/main.py +++ b/cwltool/main.py @@ -682,8 +682,8 @@ ProvOut = Union[io.TextIOWrapper, WritableBagFile] def setup_provenance( args: argparse.Namespace, - argsl: List[str], runtimeContext: RuntimeContext, + argsl...
common-workflow-language__cwltool-2084
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cwltool/loghandler.py:configure_logging" ], "edited_modules": [ "cwltool/loghandler.py:configure_logging" ] }, "file": "cwltool/loghandler.py" }, { "changes": {...
common-workflow-language/cwltool
6c86caa0571fd186d90a6600e0bb405596d4a5e0
Warnings printed to stderr, --no-warning partially ignored ## Expected Behavior Warnings should be printed to stdout not stderr. --no-warning should silence warnings ## Actual Behavior warnings are printed to stderr. passing --no-warning does not silence warnings. ## Example output: ### with `--no-warning` ``...
diff --git a/cwltool/loghandler.py b/cwltool/loghandler.py index 76daa8be..c7683081 100644 --- a/cwltool/loghandler.py +++ b/cwltool/loghandler.py @@ -11,7 +11,7 @@ _logger.setLevel(logging.INFO) def configure_logging( - stderr_handler: logging.Handler, + err_handler: logging.Handler, no_warnings: bool,...
common-workflow-language__schema_salad-556
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "schema_salad/avro/schema.py:RecordSchema.make_field_objects" ], "edited_modules": [ "schema_salad/avro/schema.py:RecordSchema" ] }, "file": "schema_salad/avro/schema.py...
common-workflow-language/schema_salad
9f5180b913ad4e06747437b53382bc7d3683f642
schema-salad-doc produces duplicated attribute entry when inheriting from parent Ref: https://github.com/common-workflow-language/cwl-v1.2/pull/166#issuecomment-1164571015 The latest release of `schema-salad` allows for overriding the documentation of a parent type in a child type. i.e. ```yaml - name: Parent ...
diff --git a/schema_salad/avro/schema.py b/schema_salad/avro/schema.py index e02e61f..8af6202 100644 --- a/schema_salad/avro/schema.py +++ b/schema_salad/avro/schema.py @@ -503,15 +503,6 @@ class RecordSchema(NamedSchema): new_field = Field( atype, name, has_default, default, order...
con__tributors-68
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "tributors/main/parsers/mailmap.py:MailmapParser.load_data" ], "edited_modules": [ "tributors/main/parsers/mailmap.py:MailmapParser" ] }, "file": "tributors/main/parsers...
con/tributors
d8f3cdb3933826202231f24513d4fb62ab590135
update-lookup: crashes with "ValueError: too many values to unpack" on .mailmap parsin ```shell (git)lena:~datalad/datalad-master[master]git $> tributors update-lookup INFO:allcontrib:Updating .tributors cache from .all-contributorsrc INFO: zenodo:Updating .tributors cache from .zenodo.json INFO: mailmap:Upda...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3901cb9..aa0b97f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are: The versions coincide with releases on pip. ## [0.0.x](https://github.com/con/tributors/tree/master) (0.0.x) + - fix mailmap parsin...
conan-io__conan-10408
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/files/patches.py:patch" ], "edited_modules": [ "conan/tools/files/patches.py:patch" ] }, "file": "conan/tools/files/patches.py" }, { "changes": { ...
conan-io/conan
45d7983565868c9211eabc1b1a46e54cc2fb7ada
[bug][2.0] patches cannot be applied when using cmake_layout Hello, It seems that `files.patch` and `cmake_layout` do not get along very well. The former does not find the patch files, even when specifying `base_path=self.build_folder`, although they are inside the build folder. I've joined a 2.0 version of `doco...
diff --git a/conan/tools/files/patches.py b/conan/tools/files/patches.py index 1dd15f3e1..f0b3e7e77 100644 --- a/conan/tools/files/patches.py +++ b/conan/tools/files/patches.py @@ -50,13 +50,17 @@ def patch(conanfile, base_path=None, patch_file=None, patch_string=None, strip=0 patchlog.addHandler(PatchLogHandler(c...
conan-io__conan-10797
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "conans/client/conf/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan...
conan-io/conan
4a654782ca87804e22e9e9a9fb8741c44212fe48
[feature] Support for Xcode 13.3 (currently in beta) Xcode 13.3 (still in beta) reports clang version as 13.1.6, so equivalent of #9642 is needed. - [x] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/blob/develop/.github/CONTRIBUTING.md).
diff --git a/conans/client/conf/__init__.py b/conans/client/conf/__init__.py index a0c5bb8c6..94d7075cb 100644 --- a/conans/client/conf/__init__.py +++ b/conans/client/conf/__init__.py @@ -37,7 +37,7 @@ _t_default_settings_yml = Template(textwrap.dedent(""" Macos: version: [None, "10.6", "10.7", "...
conan-io__conan-10941
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "conan/tools/cmake/toolchain/blocks.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ ...
conan-io/conan
e8237a0981158ea7a7bce7153acefced7905f677
[bug] CMakeToolchain boolean variables are cached as strings ### Environment Details * Operating System+version: macos * Compiler+version: clang * Conan version: 1.46.2 * Python version: 3.7 ### Steps to reproduce using this generate method ``` def generate(self): tc = CMakeToolchain(s...
diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index 8413c86f4..655fba520 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -8,9 +8,9 @@ from jinja2 import Template from conan.tools._compilers import architecture_flag from con...
conan-io__conan-10943
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmake.py:CMake.__init__" ], "edited_modules": [ "conan/tools/cmake/cmake.py:CMake" ] }, "file": "conan/tools/cmake/cmake.py" }, { "changes": {...
conan-io/conan
e8237a0981158ea7a7bce7153acefced7905f677
[Fix] Remove "namespace" argument from CMakeToolchain Since 1.47, generating the CMakePresets.json file, it is not used anymore. Also from the CMake() build helper
diff --git a/conan/tools/cmake/cmake.py b/conan/tools/cmake/cmake.py index 3d4def08b..e6d04073f 100644 --- a/conan/tools/cmake/cmake.py +++ b/conan/tools/cmake/cmake.py @@ -48,12 +48,11 @@ class CMake(object): are passed to the command line, plus the ``--config Release`` for builds in multi-config """ - ...
conan-io__conan-10960
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/apple/xcodedeps.py:XcodeDeps._vars_xconfig_file" ], "edited_modules": [ "conan/tools/apple/xcodedeps.py:XcodeDeps" ] }, "file": "conan/tools/apple/xcodedeps...
conan-io/conan
55d7209c9c89c0ead9c887dbb0fe4ad6b66953ff
[bug] version is not set correctly when using layout When layout is being used, recipe version is not set correctly somehow using json generator, it seems that version is not being fetched from package metadata when running conan install command! ### Environment Details * Operating System+version: macos * Co...
diff --git a/conan/tools/apple/xcodedeps.py b/conan/tools/apple/xcodedeps.py index bae9fc71c..d31664465 100644 --- a/conan/tools/apple/xcodedeps.py +++ b/conan/tools/apple/xcodedeps.py @@ -146,11 +146,11 @@ class XcodeDeps(object): 'system_libs': " ".join("-l{}".format(sys_lib) for sys_lib in cpp_info.syst...
conan-io__conan-10975
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conans/cli/commands/create.py:create" ], "edited_modules": [ "conans/cli/commands/create.py:create" ] }, "file": "conans/cli/commands/create.py" } ]
conan-io/conan
342ca05ebc5c7887069d2c8dbbc48766ddddce42
[bug] Conan lockfile fails with conan-new example Related to https://github.com/conan-io/conan/issues/10916 (but this is failing only if the `test_package/` folder is there) ### Steps to reproduce ``` $ conan new cmake_lib -d name=hello -d version=0.1 $ conan lock create . --profile:host default --profile:build...
diff --git a/conans/cli/commands/create.py b/conans/cli/commands/create.py index 10158433c..c4163a5c6 100644 --- a/conans/cli/commands/create.py +++ b/conans/cli/commands/create.py @@ -1,3 +1,4 @@ +import argparse import os import shutil @@ -36,6 +37,10 @@ def create(conan_api, parser, *args): path = _get_cona...
conan-io__conan-11123
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmake.py:CMake.__init__" ], "edited_modules": [ "conan/tools/cmake/cmake.py:CMake" ] }, "file": "conan/tools/cmake/cmake.py" }, { "changes": {...
conan-io/conan
fba42152d18038a848c85b749d3a87c8b7749210
[bug] conan sh environment fails to generate deactivation_file on ubuntu-20.04 ### Environment Details (include every applicable attribute) * Github VM Ubuntu-20.04 * Ubuntu-20.04 * Compiler N/A * up until 1.48 * 3.10.4 ### Steps to reproduce (Include if Applicable) - Create an Virtual Run, Build or...
diff --git a/conan/tools/cmake/cmake.py b/conan/tools/cmake/cmake.py index e6d04073f..86aa975a6 100644 --- a/conan/tools/cmake/cmake.py +++ b/conan/tools/cmake/cmake.py @@ -2,7 +2,7 @@ import os import platform from conan.tools.build import build_jobs -from conan.tools.cmake.presets import load_cmake_presets +from ...
conan-io__conan-11321
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "conan/tools/build/__init__.py" }, { "changes": { "added_entities": [ "conan/tools/build/cross_building.py:can_run" ], "added...
conan-io/conan
7811bd4dd70293ee87ffa20770a059aed09d3404
[feature] Ability to identify if binaries can be executed on a particular platform Typically there is made use of `tools.cross_building(self.settings)` to identify that for example test binaries can't be executed on a particular platform. Though this particular solution is not really sufficient to handle for example th...
diff --git a/conan/tools/build/__init__.py b/conan/tools/build/__init__.py index bc8411633..f93b3a4dd 100644 --- a/conan/tools/build/__init__.py +++ b/conan/tools/build/__init__.py @@ -1,2 +1,2 @@ from conan.tools.build.cpu import build_jobs -from conan.tools.build.cross_building import cross_building +from conan.tool...
conan-io__conan-11330
[ { "changes": { "added_entities": [ "conan/tools/files/copy_pattern.py:_copy_files_symlinked_to_folders" ], "added_modules": [ "conan/tools/files/copy_pattern.py:_copy_files_symlinked_to_folders" ], "edited_entities": [ "conan/tools/files/copy_pattern.py:copy...
conan-io/conan
b1b8d0024c48faeb4f5b862caa4970d2d3732ec0
[feature] Remove or change `copy_symlink_folders` in `conan.tools.files.copy` Hi, when updating our Conan recipes to be prepared for Conan 2.X me and my collegues were struggling with the implementation of the new copy method (`conan.tools.files.copy`). Our build infrastructure might be a little bit special. Anyw...
diff --git a/conan/tools/files/copy_pattern.py b/conan/tools/files/copy_pattern.py index cb8c121b1..d85c035c2 100644 --- a/conan/tools/files/copy_pattern.py +++ b/conan/tools/files/copy_pattern.py @@ -7,7 +7,7 @@ from conans.util.files import mkdir def copy(conanfile, pattern, src, dst, keep_path=True, excludes=No...
conan-io__conan-11348
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmake.py:CMake._build", "conan/tools/cmake/cmake.py:CMake.install" ], "edited_modules": [ "conan/tools/cmake/cmake.py:CMake" ] }, "file": "con...
conan-io/conan
d41822f3ad7dcab4aa71841d93d02a7dcc5d7e0b
[bug] missing CMakeUserPresets.json Conan 1.48.0 does not generate `CMakeUserPresets.json` if `conanfile.txt` used instead of `.py`. Probably this is duplicate of #11172. ### Environment Details * Operating System: linux * Conan version: 1.48.0 ### Steps to reproduce ``` cd "$(mktemp -d)" conan new he...
diff --git a/conan/tools/cmake/cmake.py b/conan/tools/cmake/cmake.py index 3eea4a32c..b3d6535a5 100644 --- a/conan/tools/cmake/cmake.py +++ b/conan/tools/cmake/cmake.py @@ -122,7 +122,7 @@ class CMake(object): if cmd_line_args: args += ['--'] + cmd_line_args - arg_list = [args_to_string([...
conan-io__conan-11594
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmake.py:CMake.test" ], "edited_modules": [ "conan/tools/cmake/cmake.py:CMake" ] }, "file": "conan/tools/cmake/cmake.py" } ]
conan-io/conan
4ed1bee0fb81b2826208e8c1c824c99fb6d69be8
[bug] `cmake.test()` cannot execute ### Environment Details (include every applicable attribute) * Operating System+version: Ubuntu 22.04 on WSL * Compiler+version: CMake 3.23.1 * Conan version: 1.49.0 * Python version: 3.10.4 ### Steps to reproduce (Include if Applicable) Put `cmake.test()` and run `...
diff --git a/conan/tools/cmake/cmake.py b/conan/tools/cmake/cmake.py index b3d6535a5..0805f7092 100644 --- a/conan/tools/cmake/cmake.py +++ b/conan/tools/cmake/cmake.py @@ -153,7 +153,8 @@ class CMake(object): return if not target: is_multi = is_multi_configuration(self._generator) - ...
conan-io__conan-11655
[ { "changes": { "added_entities": [ "conan/tools/cmake/presets.py:_forced_schema_2", "conan/tools/cmake/presets.py:_schema_version", "conan/tools/cmake/presets.py:save_cmake_user_presets", "conan/tools/cmake/presets.py:_append_user_preset_path" ], "added_modules"...
conan-io/conan
442d11232b52a24b97a0470b7e17a1bdb3ec97ea
[feature] CMakePresets toolchain inclusion The `toolchainFile` element requires CMake >=3.21, a cacheVariables with CMAKE_TOOLCHAIN_FILE could be used instead. Might be opt-in with the same conf used for https://github.com/conan-io/conan/issues/11648 Related https://github.com/conan-io/conan/issues/11623
diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py index 918f6a831..b50aa1724 100644 --- a/conan/tools/cmake/presets.py +++ b/conan/tools/cmake/presets.py @@ -53,8 +53,13 @@ def _add_configure_preset(conanfile, generator, cache_variables, toolchain_file, "description": "'{}' configure...
conan-io__conan-11666
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/build/cpu.py:_cpu_count" ], "edited_modules": [ "conan/tools/build/cpu.py:_cpu_count" ] }, "file": "conan/tools/build/cpu.py" }, { "changes": { ...
conan-io/conan
abfe3f69097d9ca5e3a3d8a7d4832a06f40be14b
[question] CMakePresets and Visual Studio 2019 / 2022 compatibility observations <!-- What is your question? Please be as specific as possible! --> ### Question 1 Should the Conan CMakePresets generator target a user configurable schema version? And/or target a minimum schema version of 2? VS2019 ships with a ...
diff --git a/conan/tools/build/cpu.py b/conan/tools/build/cpu.py index d9a6ecefa..2de22771b 100644 --- a/conan/tools/build/cpu.py +++ b/conan/tools/build/cpu.py @@ -1,5 +1,6 @@ import math import multiprocessing +import os from conans.util.files import load @@ -15,8 +16,18 @@ def _cpu_count(): try: ...
conan-io__conan-11776
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/presets.py:write_cmake_presets" ], "edited_modules": [ "conan/tools/cmake/presets.py:write_cmake_presets" ] }, "file": "conan/tools/cmake/presets.py" ...
conan-io/conan
a5525e523d2c6a3636a062134364686059ba8863
Custom Authorizer plugin in conan_server To help us debug your issue please explain: - [x] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/blob/develop/.github/CONTRIBUTING.md). - [x] I've specified the Conan version, operating system version and any tool that can be relevant. - [x] I've expla...
diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py index 03449a059..2b710d190 100644 --- a/conan/tools/cmake/presets.py +++ b/conan/tools/cmake/presets.py @@ -133,7 +133,8 @@ def write_cmake_presets(conanfile, toolchain_file, generator, cache_variables): if "CMAKE_SH" not in cache_variabl...
conan-io__conan-11799
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmake.py:CMake.__init__" ], "edited_modules": [ "conan/tools/cmake/cmake.py:CMake" ] }, "file": "conan/tools/cmake/cmake.py" }, { "changes": {...
conan-io/conan
5251fbcabf9b84e4983db93d546999360e2b05a9
[bug] CMakeToolchain doesn't work with NDK r18b <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. To help us debug your issue please explain: --> ### Environment Details (include every applicable attribute) * Operating System+vers...
diff --git a/conan/tools/cmake/cmake.py b/conan/tools/cmake/cmake.py index d30e4274f..716e6afd1 100644 --- a/conan/tools/cmake/cmake.py +++ b/conan/tools/cmake/cmake.py @@ -56,7 +56,7 @@ class CMake(object): configure_preset = get_configure_preset(cmake_presets, conanfile) self._generator = configur...
conan-io__conan-11803
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmakedeps/templates/macros.py:MacrosTemplate.template" ], "edited_modules": [ "conan/tools/cmake/cmakedeps/templates/macros.py:MacrosTemplate" ] }, "f...
conan-io/conan
02b31d7a0acf3ca5ca6748233d8a2895c15356ca
[feature] Implement `get_safe` in develop for self.info objects In Conan 2.X there is `get_safe` over `self.info.settings` and `self.info.options` but there is not in Conan 1.X. It is needed when, for example, there is a `header_only` option and you need to check in the validate some stuff. Related https://github.c...
diff --git a/conan/tools/cmake/cmakedeps/templates/macros.py b/conan/tools/cmake/cmakedeps/templates/macros.py index e5f3f3a22..4681fa55c 100644 --- a/conan/tools/cmake/cmakedeps/templates/macros.py +++ b/conan/tools/cmake/cmakedeps/templates/macros.py @@ -41,7 +41,7 @@ class MacrosTemplate(CMakeDepsFileTemplate): ...
conan-io__conan-12086
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/apple/xcodedeps.py:XcodeDeps._dep_xconfig_file" ], "edited_modules": [ "conan/tools/apple/xcodedeps.py:XcodeDeps" ] }, "file": "conan/tools/apple/xcodedeps....
conan-io/conan
eed935aecc627f5b09ed2f34132645d2064f03fa
[feature] CMakeToolchain.cache_variables should parse boolean values It's related to #11848. It would be great for users, if don't need to parse boolean values when using `cache_variables`. For instance: ```python default_options = {"enable_foobar": True} def layout(self): cmake_layout(self) def gener...
diff --git a/conan/tools/apple/xcodedeps.py b/conan/tools/apple/xcodedeps.py index 4838df7a5..9ea6e03ce 100644 --- a/conan/tools/apple/xcodedeps.py +++ b/conan/tools/apple/xcodedeps.py @@ -79,7 +79,7 @@ class XcodeDeps(object): // Includes all configurations for each dependency {% for dep in deps %} ...
conan-io__conan-12307
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/gnu/autotoolstoolchain.py:AutotoolsToolchain.__init__", "conan/tools/gnu/autotoolstoolchain.py:AutotoolsToolchain._default_configure_install_flags" ], "edited_modules": [...
conan-io/conan
715264206ab3f7b1b438586a4cd2bc4f07c7599d
[bug] PkgConfigDeps: -F <frameworkdir> on macOS leads to "clang: error: no such file or directory:" at link time <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. To help us debug your issue please explain: --> ### Environment Detail...
diff --git a/conan/tools/gnu/autotoolstoolchain.py b/conan/tools/gnu/autotoolstoolchain.py index df84c6c2d..58115a607 100644 --- a/conan/tools/gnu/autotoolstoolchain.py +++ b/conan/tools/gnu/autotoolstoolchain.py @@ -13,9 +13,10 @@ from conans.tools import args_to_string class AutotoolsToolchain: - def __init__...
conan-io__conan-12353
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/apple/apple.py:fix_apple_shared_install_name" ], "edited_modules": [ "conan/tools/apple/apple.py:fix_apple_shared_install_name" ] }, "file": "conan/tools/ap...
conan-io/conan
f2835d391278e730afc5f25944edaf9c5470e4a6
[bug] The VirtualBuildEnv and VirtualRunEnv never clean the deactivate script Quoted from https://github.com/conan-io/conan/issues/10979#issuecomment-1091155807 > You are right, in .bat it doesn't happen because it has: > ``` > echo @echo off > "{deactivate_file}" > echo echo Restoring environment >> "{deactivate_f...
diff --git a/conan/tools/apple/apple.py b/conan/tools/apple/apple.py index a68b5d355..0feb41eec 100644 --- a/conan/tools/apple/apple.py +++ b/conan/tools/apple/apple.py @@ -4,6 +4,7 @@ import os from conans.util.runners import check_output_runner from conans.client.tools.apple import to_apple_arch as _to_apple_arch...
conan-io__conan-12397
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/apple/apple.py:fix_apple_shared_install_name" ], "edited_modules": [ "conan/tools/apple/apple.py:fix_apple_shared_install_name" ] }, "file": "conan/tools/ap...
conan-io/conan
883eff8961d6e0d96652f78e3d7d3884479e769e
[bug] Meson Toolchain does not add required `-stdlib` args to `cpp_link_args` ### Environment Details (include every applicable attribute) * Operating System+version: Ubuntu 22.04 * Compiler+version: Clang 14 + libc++ * Conan version: 1.53.0 * Python version: 3.10 ### Steps to reproduce (Include if Appli...
diff --git a/conan/tools/apple/apple.py b/conan/tools/apple/apple.py index a68b5d355..0feb41eec 100644 --- a/conan/tools/apple/apple.py +++ b/conan/tools/apple/apple.py @@ -4,6 +4,7 @@ import os from conans.util.runners import check_output_runner from conans.client.tools.apple import to_apple_arch as _to_apple_arch...
conan-io__conan-12578
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conans/model/build_info.py:_Component.__init__" ], "edited_modules": [ "conans/model/build_info.py:_Component" ] }, "file": "conans/model/build_info.py" } ]
conan-io/conan
c7494e3ff0fb0005a3911cf1cd6f6342e17d1a20
[feature] `build_modules` in 2.0 fails with error instead of a nice migration warnings <!-- What is your suggestion? Please be as specific as possible! --> deprecated `build_modules` causes 2.0 to fail where it should output a warnings -- This can be see with the `cpp_info.names` and `cpp_info.user_info` attributes...
diff --git a/conans/model/build_info.py b/conans/model/build_info.py index ef34f6d95..00b746e17 100644 --- a/conans/model/build_info.py +++ b/conans/model/build_info.py @@ -89,6 +89,7 @@ class _Component(object): # LEGACY 1.X fields, can be removed in 2.X self.names = MockInfoProperty("cpp_info.names"...
conan-io__conan-12695
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conans/model/version_range.py:_ConditionSet._parse_expression" ], "edited_modules": [ "conans/model/version_range.py:_ConditionSet" ] }, "file": "conans/model/version_r...
conan-io/conan
64a64b879a811d7e0d6dae27183aab0bc6de2c4c
[bug] behaviour when there are spaces in required_conan_version `required_conan_version = ">= 1.36.0"` This currently fails in conan 2 due to the space. What should the behaviour be? If this is an error, we need better UX to inform the user.
diff --git a/conans/model/version_range.py b/conans/model/version_range.py index b0076d7b8..1bdadbe77 100644 --- a/conans/model/version_range.py +++ b/conans/model/version_range.py @@ -1,5 +1,6 @@ from collections import namedtuple +from conans.errors import ConanException from conans.model.recipe_ref import Versio...
conan-io__conan-12854
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/presets.py:_insert_preset" ], "edited_modules": [ "conan/tools/cmake/presets.py:_insert_preset" ] }, "file": "conan/tools/cmake/presets.py" }, { ...
conan-io/conan
cd6e7ea13dc070db47174af6e31bd85bae2bf9cd
[feature] CMakeToolchain support for linker scripts When building an ELF executable for bare-metal targets it is normal to include a linker script to define the memory layout of the specific target microcontroller. It is possible to use multiple linker scripts, too. Each one is passed with the `-T` flag when using GC...
diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py index 306b811d3..11a443a62 100644 --- a/conan/tools/cmake/presets.py +++ b/conan/tools/cmake/presets.py @@ -117,7 +117,7 @@ def _configure_preset(conanfile, generator, cache_variables, toolchain_file, mul def _insert_preset(data, preset_name,...
conan-io__conan-12967
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmakedeps/templates/config.py:ConfigTemplate.template" ], "edited_modules": [ "conan/tools/cmake/cmakedeps/templates/config.py:ConfigTemplate" ] }, "f...
conan-io/conan
43c1834234c10b8081ba10e3600b6de5a0025958
[bug] CMake Generator QUIET behaviour and message types. 1. According to [CMake](https://cmake.org/cmake/help/latest/command/find_package.html) `find_package(<pkg> QUIET)` should not print (informational) message (unless it could not be found...). However both cmake_find_package as well as CMakeDeps generators still pr...
diff --git a/conan/tools/cmake/cmakedeps/templates/config.py b/conan/tools/cmake/cmakedeps/templates/config.py index 5892a4160..07b44a4a8 100644 --- a/conan/tools/cmake/cmakedeps/templates/config.py +++ b/conan/tools/cmake/cmakedeps/templates/config.py @@ -45,6 +45,12 @@ class ConfigTemplate(CMakeDepsFileTemplate): ...
conan-io__conan-13211
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/commands/build.py:build" ], "edited_modules": [ "conan/cli/commands/build.py:build" ] }, "file": "conan/cli/commands/build.py" }, { "changes": { ...
conan-io/conan
e4ad406bb0731ecff5f20c85ec0d237e05557288
[bug] Conan build command does not support conanfile.txt as described ### Description The documentation about [build](https://docs.conan.io/2/reference/commands/build.html) command says: ``` usage: conan build [-h] [-v [V]] [--logger] [--name NAME] [--version VERSION] [--user USER] [--channel CHANNEL] [-of OUTPU...
diff --git a/conan/cli/commands/build.py b/conan/cli/commands/build.py index 4d756c82d..2a4f0be57 100644 --- a/conan/cli/commands/build.py +++ b/conan/cli/commands/build.py @@ -15,9 +15,9 @@ def build(conan_api, parser, *args): Install dependencies and call the build() method. """ parser.add_argument("pa...
conan-io__conan-13284
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/build/cppstd.py:_msvc_supported_cppstd" ], "edited_modules": [ "conan/tools/build/cppstd.py:_msvc_supported_cppstd" ] }, "file": "conan/tools/build/cppstd.p...
conan-io/conan
e558f0c4afc942eb7a482dd721f0e0c5e4d51283
[bug] Conan 2.0 fails to find Visual Studio Build Tools using the 'MSBuildToolchain' ### Environment details * Operating System+version: Windows 10 * Compiler+version: msvc 2019 build tools * Conan version: 2.0.0 * Python version: 3.9 ### Steps to reproduce 1. Install the msvc 2019 build tools (a.k.a Visual Stu...
diff --git a/conan/tools/build/cppstd.py b/conan/tools/build/cppstd.py index bdf08ca39..423c0a279 100644 --- a/conan/tools/build/cppstd.py +++ b/conan/tools/build/cppstd.py @@ -203,11 +203,17 @@ def _gcc_supported_cppstd(version): def _msvc_supported_cppstd(version): """ + https://learn.microsoft.com/en-us/c...
conan-io__conan-13610
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/subapi/new.py:NewAPI.render" ], "edited_modules": [ "conan/api/subapi/new.py:NewAPI" ] }, "file": "conan/api/subapi/new.py" }, { "changes": { "a...
conan-io/conan
0c1624d2dd3b0278c1cf6f66f8dcc7bd1aa9ec48
Take a look into normalizing the log levels of conan Currently, it's not clear whether verbose or notice/status is the default one, and if their order is correct. We should take a look into normalizing all the log levels to be consistent across
diff --git a/conan/api/subapi/new.py b/conan/api/subapi/new.py index 06b646e1e..246682420 100644 --- a/conan/api/subapi/new.py +++ b/conan/api/subapi/new.py @@ -84,9 +84,14 @@ class NewAPI: result = {} name = definitions.get("name", "Pkg") definitions["conan_version"] = __version__ - r...
conan-io__conan-13622
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/commands/remove.py:remove" ], "edited_modules": [ "conan/cli/commands/remove.py:remove" ] }, "file": "conan/cli/commands/remove.py" }, { "changes": { ...
conan-io/conan
425cbcc72538121ca9dede55350f330ecce3595c
[bug] `conan remove <ref> -p <query>` removes all packages and recipe instead of packages matching query ### Environment details * Operating System+version: Ubuntu 22.04 * Compiler+version: doesn't matter * Conan version: 2.0.2 * Python version: 3.10.6 ### Steps to reproduce Install & build several recipe...
diff --git a/conan/cli/commands/remove.py b/conan/cli/commands/remove.py index da4a7411b..0fb4289eb 100644 --- a/conan/cli/commands/remove.py +++ b/conan/cli/commands/remove.py @@ -2,6 +2,7 @@ from conan.api.conan_api import ConanAPI from conan.api.model import ListPattern from conan.cli.command import conan_command,...
conan-io__conan-13623
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/gnu/pkgconfigdeps.py:_PCContentGenerator.content" ], "edited_modules": [ "conan/tools/gnu/pkgconfigdeps.py:_PCContentGenerator" ] }, "file": "conan/tools/gn...
conan-io/conan
20705e711aafafbbd918c2a8a87275fe09054cd0
[feature] Add bindirs to pkgconfig generator ### What is your suggestion? pkg-config generator is useful to use conan dependencies in meson build system, especially on Windows. However, meson has no way of knowing where the DLL files are located, since the linkage is done on the import libraries. Providing a `bindi...
diff --git a/conan/tools/gnu/pkgconfigdeps.py b/conan/tools/gnu/pkgconfigdeps.py index 00c9bf0e4..2c2723885 100644 --- a/conan/tools/gnu/pkgconfigdeps.py +++ b/conan/tools/gnu/pkgconfigdeps.py @@ -97,7 +97,7 @@ class _PCContentGenerator: template = textwrap.dedent("""\ {%- macro get_libs(libdirs, cpp_info...
conan-io__conan-13661
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conans/client/graph/graph_builder.py:DepsGraphBuilder._expand_require", "conans/client/graph/graph_builder.py:DepsGraphBuilder._conflicting_version", "conans/client/graph/graph_builder.p...
conan-io/conan
18b7823559efaabc2c377792248ef9a0d814931c
[bug] `provide` conflict is not informative ### Environment details * Operating System+version: Ubuntu 22.04 * Compiler+version: gcc 12.0.1 * Conan version: 2.0.2 * Python version: 3.10.6 ### Steps to reproduce Create a conanfile with for example requirements to `libjpeg` & `libjpeg-turbo` (the later has `provi...
diff --git a/conans/client/graph/graph_builder.py b/conans/client/graph/graph_builder.py index c2b1bf307..f6940718c 100644 --- a/conans/client/graph/graph_builder.py +++ b/conans/client/graph/graph_builder.py @@ -5,7 +5,8 @@ from conans.client.conanfile.configure import run_configure_method from conans.client.graph.gr...
conan-io__conan-13757
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/subapi/install.py:InstallAPI.install_consumer" ], "edited_modules": [ "conan/api/subapi/install.py:InstallAPI" ] }, "file": "conan/api/subapi/install.py" },...
conan-io/conan
a8074a2be4f7e48b328ced4417846a1b318a925e
[question] Conan 2.0 custom deployer + output folder ### What is your question? Hi, I am trying to deploy the binaries of a package with Conan 2.0. I created a simple custom deployer (my_deployer.py) that basically copies the binaries directly to the output folder: ``` from conan.tools.files import copy def dep...
diff --git a/conan/api/subapi/install.py b/conan/api/subapi/install.py index 71ba81889..64f827472 100644 --- a/conan/api/subapi/install.py +++ b/conan/api/subapi/install.py @@ -3,7 +3,6 @@ from conan.internal.deploy import do_deploys from conans.client.generators import write_generators from conans.client.installer i...
conan-io__conan-13940
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/formatters/graph/graph.py:_PrinterGraphItem.data" ], "edited_modules": [ "conan/cli/formatters/graph/graph.py:_PrinterGraphItem" ] }, "file": "conan/cli/forma...
conan-io/conan
0846a92e3f0f22713d19bc1c2020b8b793e61d85
[bug] CONAN_CMAKE_PROGRAM not respected for CMake Toolchain ### Environment Details (include every applicable attribute) * Operating System+version:Linux/Windows * Compiler+version:gcc/MSVC * Conan version:HEAD * Python version:3.8 ### Steps to reproduce (Include if Applicable) Have CMake 2.8 installed ...
diff --git a/conan/cli/formatters/graph/graph.py b/conan/cli/formatters/graph/graph.py index 3c6ef38df..878a90758 100644 --- a/conan/cli/formatters/graph/graph.py +++ b/conan/cli/formatters/graph/graph.py @@ -14,6 +14,8 @@ from conans.client.installer import build_id from conans.util.files import load +# FIXME: Ch...
conan-io__conan-14167
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmake.py:CMake.install" ], "edited_modules": [ "conan/tools/cmake/cmake.py:CMake" ] }, "file": "conan/tools/cmake/cmake.py" } ]
conan-io/conan
ccdd94f2941060bf69b47536b4ccbc22da1288ac
[feature] Add '--strip' option to cmake install ### What is your suggestion? Can you add a parameter to `cmake.install` function in order to be able to strip binaries before install ? install and strip were added to CMake about 4 years ago, and if I got it correctly in version 3.15 https://gitlab.kitware.com/cmake...
diff --git a/conan/tools/cmake/cmake.py b/conan/tools/cmake/cmake.py index d52a8ecb4..6dd77ac82 100644 --- a/conan/tools/cmake/cmake.py +++ b/conan/tools/cmake/cmake.py @@ -147,6 +147,10 @@ class CMake(object): arg_list = ["--install", build_folder, build_config, "--prefix", pkg_folder] if component: ...
conan-io__conan-14185
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/toolchain/blocks.py:GenericSystemBlock._is_apple_cross_building" ], "edited_modules": [ "conan/tools/cmake/toolchain/blocks.py:GenericSystemBlock" ] }, ...
conan-io/conan
f1b9c37a65f5b3742eaebc0f3a1e22fe94b194fd
[bug] Can't call `conan upload --recipe-only` twice with backup sources enabled ### Steps to reproduce 1. Enable backup sources 2. Export a recipe that downloads file 3. Call conan upload only recipe for ref 4. Do it again, it fails due to KeyError Found while prepping for https://github.com/conan-io/conan-c...
diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index 48fabe933..c10b6b03f 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -733,8 +733,9 @@ class GenericSystemBlock(Block): os_host = self._conanfile.settings.get_safe("...
conan-io__conan-14195
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/formatters/graph/graph.py:format_graph_html" ], "edited_modules": [ "conan/cli/formatters/graph/graph.py:format_graph_html" ] }, "file": "conan/cli/formatters...
conan-io/conan
57c7049c758a685cdc02e870eb77617af5e45da6
[feature] Allow custom otool and install_name_tool programs in fix_apple_shared_install_name ### What is your suggestion? I'm cross compiling some Conan recipes from Linux to macOS using [osxcross](https://github.com/tpoechtrager/osxcross) to make the toolchain. `fix_apple_shared_install_name` currently hardcodes `o...
diff --git a/conan/cli/formatters/graph/graph.py b/conan/cli/formatters/graph/graph.py index 73d9598ec..ea3d692d1 100644 --- a/conan/cli/formatters/graph/graph.py +++ b/conan/cli/formatters/graph/graph.py @@ -105,20 +105,14 @@ def format_graph_html(result): template_folder = os.path.join(conan_api.cache_folder, "t...
conan-io__conan-14296
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/presets.py:_IncludingPresets._collect_user_inherits" ], "edited_modules": [ "conan/tools/cmake/presets.py:_IncludingPresets" ] }, "file": "conan/tools...
conan-io/conan
a26104a90c1d683956982ede2e6a481e5dbde5e4
[question] Using Ninja (Multi-Config) with Extending Own CMake Presets Example ### What is your question? Howdy, I am having troubles getting one of the CMake examples working with Ninja, and I assume I am doing something wrong, but can't for the life of me figure out what. I have cloned (pulled changes this morni...
diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py index 067e958ee..b04761270 100644 --- a/conan/tools/cmake/presets.py +++ b/conan/tools/cmake/presets.py @@ -268,13 +268,14 @@ class _IncludingPresets: if os.path.exists(user_file): user_json = json.loads(load(user_fil...
conan-io__conan-14362
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/args.py:validate_common_graph_args" ], "edited_modules": [ "conan/cli/args.py:validate_common_graph_args" ] }, "file": "conan/cli/args.py" }, { "chang...
conan-io/conan
7e73134d9b73440a87d811dbb0e3d49a4352f9ce
[bug] CMAKE_SYSTEM_PROCESSOR set incorrectly on armv8 arch ### Environment details * Conan version: 2.0.9 ### Steps to reproduce I have built a conan package for tesseract as part of its cmake build it has ``` message(STATUS "CMAKE_SYSTEM_PROCESSOR=<${CMAKE_SYSTEM_PROCESSOR}>") ...further logic to switch...
diff --git a/conan/cli/args.py b/conan/cli/args.py index 3313d3280..58399e928 100644 --- a/conan/cli/args.py +++ b/conan/cli/args.py @@ -126,6 +126,8 @@ def validate_common_graph_args(args): if args.requires and (args.name or args.version or args.user or args.channel): raise ConanException("Can't use --na...
conan-io__conan-14378
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/env/environment.py:EnvVars.save_ps1" ], "edited_modules": [ "conan/tools/env/environment.py:EnvVars" ] }, "file": "conan/tools/env/environment.py" }, { ...
conan-io/conan
bc4ed4d79fd92edd825fc846dfa515c7b3912138
[bug] RC : fatal error RC1212: invalid option - /z argument missing substitute font name ### Environment details * Operating System+version: Windows11 * Compiler+version: VC++2022 * Conan version: 1.50.0 & 1.56.0 * Python version: 3.9.13 Conanfile: ``` from conans import ConanFile import os class MyConan...
diff --git a/conan/tools/env/environment.py b/conan/tools/env/environment.py index 18e40ad61..10936bfc2 100644 --- a/conan/tools/env/environment.py +++ b/conan/tools/env/environment.py @@ -465,6 +465,7 @@ class EnvVars: result.append('if (Test-Path env:{0}) {{ Remove-Item env:{0} }}'.format(varname)) ...
conan-io__conan-14397
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/cmake.py:CMake.install" ], "edited_modules": [ "conan/tools/cmake/cmake.py:CMake" ] }, "file": "conan/tools/cmake/cmake.py" } ]
conan-io/conan
aca81fcad474ee783855a40ff6a815ac5662d7db
Add cli_args argument to cmake.install() > > if self.settings.build_type == 'Release': > > Ok, makes sense, though nowadays, I'd expect that `Release` builds already don't contain any debug information to be stripped, I understand it might not be the case for all platforms and tools, so I am ok with m...
diff --git a/conan/tools/cmake/cmake.py b/conan/tools/cmake/cmake.py index 39a326bec..55ddbd116 100644 --- a/conan/tools/cmake/cmake.py +++ b/conan/tools/cmake/cmake.py @@ -163,7 +163,7 @@ class CMake(object): self._conanfile.output.info("Running CMake.build()") self._build(build_type, target, cli_arg...
conan-io__conan-14443
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/args.py:validate_common_graph_args" ], "edited_modules": [ "conan/cli/args.py:validate_common_graph_args" ] }, "file": "conan/cli/args.py" } ]
conan-io/conan
7e73134d9b73440a87d811dbb0e3d49a4352f9ce
[bug] "conan install . --channel xxx" raises AssertionError ### Environment details * Conan version: 2.0.9 ### Steps to reproduce Execute `conan install` for an arbitrary consumer recipe with `--channel option`: ``` conan install . --channel xxx ``` It will break with AssertionError. Of course, it doesn't make...
diff --git a/conan/cli/args.py b/conan/cli/args.py index 3313d3280..58399e928 100644 --- a/conan/cli/args.py +++ b/conan/cli/args.py @@ -126,6 +126,8 @@ def validate_common_graph_args(args): if args.requires and (args.name or args.version or args.user or args.channel): raise ConanException("Can't use --na...
conan-io__conan-14616
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/output.py:cli_out_write" ], "edited_modules": [ "conan/api/output.py:cli_out_write" ] }, "file": "conan/api/output.py" }, { "changes": { "added_...
conan-io/conan
ea6b41b92537a563e478b66be9f5a0c13b0dd707
[bug] Spaces in version range can lead to: IndexError: string index out of range ### Environment details * Operating System+version: Ubuntu 22.04 * Compiler+version: N/A * Conan version: 2.0.10 * Python version: 3.10.8 The following version range works: ``` [>=0.0.1 <1.0] ``` The following does NOT work: ...
diff --git a/conan/api/output.py b/conan/api/output.py index 34d10ac94..179d983cb 100644 --- a/conan/api/output.py +++ b/conan/api/output.py @@ -227,7 +227,7 @@ def cli_out_write(data, fg=None, bg=None, endline="\n", indentation=0): fg_ = fg or '' bg_ = bg or '' - if color_enabled(sys.stdout): + if (f...
conan-io__conan-14709
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conans/client/graph/graph_builder.py:DepsGraphBuilder._resolve_recipe" ], "edited_modules": [ "conans/client/graph/graph_builder.py:DepsGraphBuilder" ] }, "file": "cona...
conan-io/conan
bb35ee88d84217197e4d7d4813b25c9be289ee41
[bug] '<host_version>' not available when a package is evaulated in the build context ### Environment details * Operating System+version: Fedora Linux 38 * Compiler+version: 13.2.1 * Conan version: 1.60.2 * Python version: 3.11.4 ### Steps to reproduce 1. Add a `requires` dependency on a recipe that uses `<host...
diff --git a/conans/client/graph/graph_builder.py b/conans/client/graph/graph_builder.py index 243d6e309..e13be7137 100644 --- a/conans/client/graph/graph_builder.py +++ b/conans/client/graph/graph_builder.py @@ -410,11 +410,12 @@ class DepsGraphBuilder(object): if not requirement.build_require: ...
conan-io__conan-14727
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/subapi/profiles.py:ProfilesAPI.get_profiles_from_args" ], "edited_modules": [ "conan/api/subapi/profiles.py:ProfilesAPI" ] }, "file": "conan/api/subapi/profil...
conan-io/conan
48656d8556dd71736f0f07f5c73170d6dd17b742
[feature] Same host and build profile option? ### What is your suggestion? In "developer mode sitting at my desk" mode, i.e. when building and running code on the same machine and manually typing `conan install ....` often, I'd find it useful to save some typing by adding a command line option to set both profiles the...
diff --git a/conan/api/subapi/profiles.py b/conan/api/subapi/profiles.py index b2a2c5426..2c3b9bbd5 100644 --- a/conan/api/subapi/profiles.py +++ b/conan/api/subapi/profiles.py @@ -57,8 +57,8 @@ class ProfilesAPI: return default_profile def get_profiles_from_args(self, args): - build = [self.get_...
conan-io__conan-14760
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/commands/build.py:build" ], "edited_modules": [ "conan/cli/commands/build.py:build" ] }, "file": "conan/cli/commands/build.py" }, { "changes": { ...
conan-io/conan
5353d85bcf18fd3ed2ece151fe8577abfe08bc1b
[feature] conan remove should have a --dry-run option ### What is your suggestion? `conan remove` asks for every package if it really should be deleted. This is really bothersome when removing many packages (e.g. when removing all but the last revision with `conan remove '*#!latest'`). However, it would be nice to...
diff --git a/conan/cli/commands/build.py b/conan/cli/commands/build.py index b06614039..9231c7149 100644 --- a/conan/cli/commands/build.py +++ b/conan/cli/commands/build.py @@ -13,7 +13,7 @@ def build(conan_api, parser, *args): """ Install dependencies and call the build() method. """ - parser.add_arg...
conan-io__conan-14795
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/commands/remove.py:remove" ], "edited_modules": [ "conan/cli/commands/remove.py:remove" ] }, "file": "conan/cli/commands/remove.py" }, { "changes": { ...
conan-io/conan
8f9d42daa184c1c30d57e8765b872668585b8926
[bug] Session is not reused in ConanRequester ### What is your suggestion? Hi! :-) In `ConanRequester:__init__()` a `requests.Session` is created to reuse the connection later (https://github.com/conan-io/conan/blob/develop2/conans/client/rest/conan_requester.py#L80). Unfortunately in `_call_method` always a new r...
diff --git a/conan/cli/commands/remove.py b/conan/cli/commands/remove.py index a109a4b74..a1ef5b1c5 100644 --- a/conan/cli/commands/remove.py +++ b/conan/cli/commands/remove.py @@ -9,8 +9,8 @@ from conans.errors import ConanException def summary_remove_list(results): - """ Do litte format modification to serial...
conan-io__conan-14837
[ { "changes": { "added_entities": [ "conan/internal/api/detect_api.py:detect_cppstd" ], "added_modules": [ "conan/internal/api/detect_api.py:detect_cppstd" ], "edited_entities": null, "edited_modules": null }, "file": "conan/internal/api/detect_api.py" ...
conan-io/conan
844f112c6c5cdb84dd9b6ae665a4b7873a35cf54
[bug] Conan 2.0.11+ choose wrong default cppstd for apple-clang ### Environment details * Operating System+version: macOS 13.6 * Compiler+version: apple-clang 14.0 * Conan version: 2.0.11 & 2.0.12 * Python version: 3.11.5 ### Steps to reproduce ``` python -m pip install --upgrade conan==2.0.11 conan pro...
diff --git a/conan/internal/api/detect_api.py b/conan/internal/api/detect_api.py index 156cae8a6..4d66d9da9 100644 --- a/conan/internal/api/detect_api.py +++ b/conan/internal/api/detect_api.py @@ -228,6 +228,16 @@ def default_cppstd(compiler, compiler_version): return default +def detect_cppstd(compiler, compi...
conan-io__conan-14865
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/google/bazeldeps.py:BazelDeps._get_dependency_buildfile_content" ], "edited_modules": [ "conan/tools/google/bazeldeps.py:BazelDeps" ] }, "file": "conan/tool...
conan-io/conan
8149642064ebaef7ec84fd91a213dad4d9b7b6b5
[feature] add gcc 11.4 to settings ### What is your suggestion? On Ubuntu 22.04, the default version of gcc is 11.4. But this is missing in the latest conan 1.x (1.61.0) settings.yml Highest supported version is 11.3 Please add it. Also, what's the best way to add it manually? is there a conan command for i...
diff --git a/conan/tools/google/bazeldeps.py b/conan/tools/google/bazeldeps.py index 4436993de..7c6527f03 100644 --- a/conan/tools/google/bazeldeps.py +++ b/conan/tools/google/bazeldeps.py @@ -56,53 +56,53 @@ class BazelDeps(object): return filegroup def _get_dependency_buildfile_content(self, dependenc...
conan-io__conan-15007
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/subapi/upload.py:UploadAPI.prepare" ], "edited_modules": [ "conan/api/subapi/upload.py:UploadAPI" ] }, "file": "conan/api/subapi/upload.py" }, { "chan...
conan-io/conan
a58a49fa1dd242d3509d6ee001dbdd4860f44a2d
[feature] Avoid uploading metadata when not required ### What is your suggestion? The current documentation about [metadata](https://docs.conan.io/2/devops/metadata.html) feature says: ``` By default, conan upload will upload recipes and packages metadata when a recipe or a package is uploaded to the server. .......
diff --git a/conan/api/subapi/upload.py b/conan/api/subapi/upload.py index 75fc77567..eb437a9d9 100644 --- a/conan/api/subapi/upload.py +++ b/conan/api/subapi/upload.py @@ -38,11 +38,15 @@ class UploadAPI: :param package_list: :param enabled_remotes: :param metadata: A list of patterns of met...
conan-io__conan-15109
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conans/client/downloaders/caching_file_downloader.py:SourcesCachingDownloader._caching_download" ], "edited_modules": [ "conans/client/downloaders/caching_file_downloader.py:SourcesC...
conan-io/conan
4614b3abbff15627b3fabdd98bee419721f423ce
[bug] conan 2.0.14 regression on core.sources:download_urls ### Environment details * Operating System+version: ubuntu-22.04 * Compiler+version: gcc11 * Conan version: 2.0.14 * Python version: 3.11.2 ### Steps to reproduce There is a regression from 2.0.13 -> 2.0.14. We make use of the `core.sources:downlo...
diff --git a/conans/client/downloaders/caching_file_downloader.py b/conans/client/downloaders/caching_file_downloader.py index ed04a1e66..4b7914f60 100644 --- a/conans/client/downloaders/caching_file_downloader.py +++ b/conans/client/downloaders/caching_file_downloader.py @@ -49,7 +49,7 @@ class SourcesCachingDownloade...
conan-io__conan-15121
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/subapi/export.py:ExportAPI.export_pkg" ], "edited_modules": [ "conan/api/subapi/export.py:ExportAPI" ] }, "file": "conan/api/subapi/export.py" }, { "c...
conan-io/conan
a12a08dc41ae3138044c65b82ee51eb2ed672e9c
Have `ConanFile.run()` be able to get `stderr` just like it does for `stdout` Somestimes recipes call to programs that outùt important info to stderr instead of stdout, and Conan currently provides no good way to fetch that info _Originally posted by @RubenRBS in https://github.com/conan-io/conan-center-index/pull...
diff --git a/conan/api/subapi/export.py b/conan/api/subapi/export.py index 69b877750..984ac129d 100644 --- a/conan/api/subapi/export.py +++ b/conan/api/subapi/export.py @@ -4,6 +4,7 @@ from conans.client.cmd.export import cmd_export from conans.client.conanfile.package import run_package_method from conans.client.gra...
conan-io__conan-15185
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/commands/list.py:print_serial", "conan/cli/commands/list.py:print_list_compact" ], "edited_modules": [ "conan/cli/commands/list.py:print_serial", "conan/cli...
conan-io/conan
2e568138707a4d35a53e063a86af2aa6ee2793fb
[bug] `conan profile show` crashes when requesting json output if profile contains a reference. ### Environment details * Operating System+version: macOS 12.6 * Conan version: 2.0.14 * Python version: 3.11.4 ### Steps to reproduce Issuing `conan profile show -pr:h ourprofile`, we get: ``` [settings] arch=x8...
diff --git a/conan/cli/commands/list.py b/conan/cli/commands/list.py index 9ad35612d..6a346d9a7 100644 --- a/conan/cli/commands/list.py +++ b/conan/cli/commands/list.py @@ -28,7 +28,7 @@ def print_serial(item, indent=None, color_index=None): color = color_array[color_index % len(color_array)] if isinstance(it...
conan-io__conan-15271
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/scm/git.py:Git.is_dirty" ], "edited_modules": [ "conan/tools/scm/git.py:Git" ] }, "file": "conan/tools/scm/git.py" } ]
conan-io/conan
100214dc66dca4e21d9d98fd284f829233bb7460
[bug] git.get_url_and_commit throws exception for different git configs ### Environment details * Operating System+version: Ubuntu 22.04 * Compiler+version: n/a * Conan version: Found on 1.59.0, all versions are affected * Python version: 3.8.10 ### Steps to reproduce **1. Set git config "status.branch"** to tr...
diff --git a/conan/tools/scm/git.py b/conan/tools/scm/git.py index 5f7e3fbe7..f80ca5882 100644 --- a/conan/tools/scm/git.py +++ b/conan/tools/scm/git.py @@ -103,7 +103,7 @@ class Git: :return: True, if the current folder is dirty. Otherwise, False. """ - status = self.run(f"status . -s").stri...
conan-io__conan-15422
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/presets.py:_CMakePresets._build_preset_fields" ], "edited_modules": [ "conan/tools/cmake/presets.py:_CMakePresets" ] }, "file": "conan/tools/cmake/pre...
conan-io/conan
f08b9924712cf0c2f27b93cbb5206d56d0d824d8
[feature] set jobs parameter in CMakePreset buildPresets to get parallel builds when invoking cmake after conan install ### What is your suggestion? the generated CMakePresets.json does not contain the "jobs" parameter, making it default to 1 (at least sometimes). when manually set to a higher number, the cmake build...
diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py index cb11e2174..27792af73 100644 --- a/conan/tools/cmake/presets.py +++ b/conan/tools/cmake/presets.py @@ -6,6 +6,7 @@ from conan.api.output import ConanOutput from conan.tools.cmake.layout import get_build_folder_custom_vars from conan.tools.c...
conan-io__conan-15514
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/subapi/config.py:ConfigAPI.install" ], "edited_modules": [ "conan/api/subapi/config.py:ConfigAPI" ] }, "file": "conan/api/subapi/config.py" }, { "chan...
conan-io/conan
5a8cc86a31540a6da94cee2b8ea60e1d2dea67c0
[feature] Print git commands when print_run_commands = True <!-- What is your suggestion? Please be as specific as possible! --> It would be nice to have `git` commands from the `tools.Git` helper be printed out if the `print_run_commands` variable is set to `True`. Could even be a new configuration option if desired ...
diff --git a/conan/api/subapi/config.py b/conan/api/subapi/config.py index 3819c86d7..f489036d1 100644 --- a/conan/api/subapi/config.py +++ b/conan/api/subapi/config.py @@ -29,9 +29,8 @@ class ConfigAPI: # TODO: We probably want to split this into git-folder-http cases? from conans.client.conf.config_...
conan-io__conan-15664
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/subapi/install.py:InstallAPI.install_binaries" ], "edited_modules": [ "conan/api/subapi/install.py:InstallAPI" ] }, "file": "conan/api/subapi/install.py" },...
conan-io/conan
1940c9fe9444d15a507c422338ef64d6e67ab169
Conan fails to detect the compiler although `CC` and `CXX` are set ### Environment details * Operating System+version: ubuntu-22.04 * Compiler+version: 13.1.0 * Conan version: 2.0.9 * Python version: 3.11.4 ### Steps to reproduce I am creating a Conda package of my software, as part of a Github C/I workfl...
diff --git a/conan/api/subapi/install.py b/conan/api/subapi/install.py index 49dc57eb9..79394d3ab 100644 --- a/conan/api/subapi/install.py +++ b/conan/api/subapi/install.py @@ -1,6 +1,7 @@ from conan.internal.conan_app import ConanApp from conan.internal.deploy import do_deploys from conans.client.generators import ...
conan-io__conan-15699
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/gnu/get_gnu_triplet.py:_get_gnu_triplet" ], "edited_modules": [ "conan/tools/gnu/get_gnu_triplet.py:_get_gnu_triplet" ] }, "file": "conan/tools/gnu/get_gnu_...
conan-io/conan
953035a5262763a26696e490b5aa35086b3e2311
[bug] gnu triplet for os=Linux arch=x86 is suboptimal ### Environment Details (include every applicable attribute) * Operating System+version: ArchLinux current * Compiler+version: gcc 11.1.0 * Conan version: Current git head ( 1.24.0-1085-g106e54c9 ) * Python version: Python 3.10.1 ### Description Th...
diff --git a/conan/tools/gnu/get_gnu_triplet.py b/conan/tools/gnu/get_gnu_triplet.py index 751c1b663..5e230218b 100644 --- a/conan/tools/gnu/get_gnu_triplet.py +++ b/conan/tools/gnu/get_gnu_triplet.py @@ -15,7 +15,7 @@ def _get_gnu_triplet(os_, arch, compiler=None): "needed for os=Windows"...
conan-io__conan-15924
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "conan/tools/cmake/toolchain/blocks.py:ExtraFlagsBlock" ] }, "file": "conan/tools/cmake/toolchain/blocks.py" }, { "changes": { "added_entities": ...
conan-io/conan
82765f2ba80a3f07d21de4c27d73203081017694
[bug] `tools.build:defines` is broken in multiconfig setting ### Describe the bug `tools.build:defines` is broken in multiconfig setting, e.g. with MSVC. The quoting in the generator expression is not correct in `blocks.py`. ### How to reproduce it - Set `tools.build:defines=['A=1', 'B=2']` - Observe how the ...
diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index 36f725ae7..27a9c2260 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -154,7 +154,7 @@ class VSDebuggerEnvironment(Block): if not config_dict: return ...
conan-io__conan-15931
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/system/package_manager.py:_SystemPackageManagerTool.get_default_tool" ], "edited_modules": [ "conan/tools/system/package_manager.py:_SystemPackageManagerTool" ] ...
conan-io/conan
937bfcc6385ab88384d13fd7aca325386ad31b97
[feature] Add support for Pop!_OS to package_manager ### What is your suggestion? [Pop!_OS](https://pop.system76.com/) is an Ubuntu-based Linux distribution. It would be great if it could be added to the list of distributions that support `apt-get`. Its `distro.id()` is `pop`. ### Have you read the CONTRIBUTING g...
diff --git a/conan/tools/system/package_manager.py b/conan/tools/system/package_manager.py index f1dcfc42c..70195b090 100644 --- a/conan/tools/system/package_manager.py +++ b/conan/tools/system/package_manager.py @@ -39,7 +39,7 @@ class _SystemPackageManagerTool(object): os_name = distro.id() or os_name ...
conan-io__conan-15950
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/api/subapi/cache.py:CacheAPI.restore" ], "edited_modules": [ "conan/api/subapi/cache.py:CacheAPI" ] }, "file": "conan/api/subapi/cache.py" } ]
conan-io/conan
aa52f656c2ee45b01920ffbc5c8b250e5204c142
[bug] conan cache restore produces incorrect folders if run multiple times ### Describe the bug On Conan 2.2.1 there is an issue if `conan cache restore` is used to attempt to restore the same saved cache multiple times. I ran into this issue in our internal CI pipelines, where we have multiple parallel builds that...
diff --git a/conan/api/subapi/cache.py b/conan/api/subapi/cache.py index 36068942d..0875f6fb2 100644 --- a/conan/api/subapi/cache.py +++ b/conan/api/subapi/cache.py @@ -162,32 +162,49 @@ class CacheAPI: the_tar.extractall(path=self.conan_api.cache_folder) the_tar.close() + # After unz...
conan-io__conan-16038
[ { "changes": { "added_entities": [ "conan/tools/apple/apple.py:resolve_apple_flags" ], "added_modules": [ "conan/tools/apple/apple.py:resolve_apple_flags" ], "edited_entities": [ "conan/tools/apple/apple.py:apple_sdk_path", "conan/tools/apple/apple.p...
conan-io/conan
06297af6798f26b38717773aab5752a1158aa04c
[bug] The git clone URL is no longer logged. ### Environment details * Conan version: >= 2.1.0, specifically any version after https://github.com/conan-io/conan/pull/15514 ### Steps to reproduce Any Git(self).clone command will no longer log the URL, instead show `<hidden>`. ### Logs ``` user997@ffaebed02c7c...
diff --git a/conan/tools/apple/apple.py b/conan/tools/apple/apple.py index 39dafb69d..52a021817 100644 --- a/conan/tools/apple/apple.py +++ b/conan/tools/apple/apple.py @@ -30,11 +30,16 @@ def to_apple_arch(conanfile, default=None): return _to_apple_arch(arch_, default) -def apple_sdk_path(conanfile): +def app...
conan-io__conan-16243
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/internal/api/detect_api.py:detect_default_compiler", "conan/internal/api/detect_api.py:default_msvc_ide_version" ], "edited_modules": [ "conan/internal/api/detect_api.p...
conan-io/conan
cab4f18453af93582d42b5f001f768df0cfe3058
[bug] Docker runner does not honor custom container name ### Describe the bug When trying to use official ConanDockerTools images with the new feature [Docker runners](https://docs.conan.io/2/reference/runners/docker.html), I wanted to use a custom container name (e.g conan_linux_gcc11), however, the current behavior ...
diff --git a/conan/internal/api/detect_api.py b/conan/internal/api/detect_api.py index 5f2eabebd..e90894b29 100644 --- a/conan/internal/api/detect_api.py +++ b/conan/internal/api/detect_api.py @@ -384,9 +384,14 @@ def detect_default_compiler(): return None, None, None if platform.system() == "Windows": ...
conan-io__conan-16350
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/files/files.py:rm" ], "edited_modules": [ "conan/tools/files/files.py:rm" ] }, "file": "conan/tools/files/files.py" }, { "changes": { "added_e...
conan-io/conan
a3d2fbcefe1cbdff55efb085d7c177c3d1e32dc8
[feature] Adding support to exclude pattern when removing files with Conan tools ### What is your suggestion? Greetings! Following the logic behind of [conan.tools.files.copy](https://docs.conan.io/2/reference/tools/files/basic.html#conan-tools-files-copy), users can exclude an specific pattern of file, avoid extra...
diff --git a/conan/api/subapi/install.py b/conan/api/subapi/install.py index 6fd61d179..0fb5e1108 100644 --- a/conan/api/subapi/install.py +++ b/conan/api/subapi/install.py @@ -36,7 +36,8 @@ class InstallAPI: installer.install_system_requires(graph, only_info) def install_sources(self, graph, remotes): ...
conan-io__conan-16415
[ { "changes": { "added_entities": [ "conan/cli/command.py:BaseConanCommand._dispatch_errors" ], "added_modules": null, "edited_entities": [ "conan/cli/command.py:ConanCommand.run", "conan/cli/command.py:ConanSubCommand.run" ], "edited_modules": [ ...
conan-io/conan
a474e3d67c1a0acfc4f8fa7db2f71de4bd089466
[bug] Consistent command results and error messages accross install/create and graph ### What is your suggestion? When a dependency is `missing` or `invalid`, CLI commands `install`, `create`, etc, will output pertinent error messages and the exit code of the application will be `!=0`, meaning the command failed. ...
diff --git a/conan/cli/command.py b/conan/cli/command.py index 7a074dc7c..b2b50f1c7 100644 --- a/conan/cli/command.py +++ b/conan/cli/command.py @@ -98,6 +98,12 @@ class BaseConanCommand: formatter(info) + def _dispatch_errors(self, info): + if info and isinstance(info, dict): + if inf...
conan-io__conan-16520
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/cli/printers/graph.py:print_graph_packages" ], "edited_modules": [ "conan/cli/printers/graph.py:print_graph_packages" ] }, "file": "conan/cli/printers/graph.py" ...
conan-io/conan
0a15ae21ccbe4a45957bd1cf236e0deaf89f187c
[feature] Highlight requirements when they are invalid or missing ### What is your suggestion? It would be desirable to display missing and invalid words in red or yellow in the command output, like these: ![image](https://github.com/conan-io/conan/assets/26503843/a2d5cb79-b729-43cf-8cf6-f84c6a257a5d) ![imag...
diff --git a/conan/cli/printers/graph.py b/conan/cli/printers/graph.py index 404ca7c97..5790f8e84 100644 --- a/conan/cli/printers/graph.py +++ b/conan/cli/printers/graph.py @@ -1,5 +1,5 @@ from conan.api.output import ConanOutput, Color, LEVEL_VERBOSE -from conans.client.graph.graph import RECIPE_CONSUMER, RECIPE_VIRT...
conan-io__conan-16762
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/cmake/presets.py:_CMakePresets._configure_preset" ], "edited_modules": [ "conan/tools/cmake/presets.py:_CMakePresets" ] }, "file": "conan/tools/cmake/preset...
conan-io/conan
e1063a152b8a969383f35c122a8b26eca58a0820
[feature] CMakePresets support for msvc toolset version ### What is your suggestion? ## Suggestion Would it be possible for the Conan generated CMakePresets.json to include `msvc.toolset` version details (i.e. `v143`, `v142`, etc.) when populating the `toolset.value` field? This would allow IDEs to know which ...
diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py index b7e616150..43739a955 100644 --- a/conan/tools/cmake/presets.py +++ b/conan/tools/cmake/presets.py @@ -5,7 +5,7 @@ import textwrap from conan.api.output import ConanOutput, Color from conan.tools.cmake.layout import get_build_folder_custo...
conan-io__conan-16776
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/microsoft/visual.py:msvs_toolset" ], "edited_modules": [ "conan/tools/microsoft/visual.py:msvs_toolset" ] }, "file": "conan/tools/microsoft/visual.py" }, ...
conan-io/conan
8ebf1ca548854919398c38d9f15912ad01f3b18a
[bug] export_sources fails if a local repo does not contain the recipe revision being exported ### Describe the bug In a setup where a local repo has higher priority than a remote repo, and a particular recipe revision only exists in the remote repo, operations that involve export_sources for this recipe will fail rat...
diff --git a/conan/cli/commands/graph.py b/conan/cli/commands/graph.py index 690be8869..a929f39f1 100644 --- a/conan/cli/commands/graph.py +++ b/conan/cli/commands/graph.py @@ -133,7 +133,6 @@ def graph_build_order(conan_api, parser, subparser, *args): "conan_error": install_graph.get_errors()} - @con...
conan-io__conan-17092
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "conan/internal/default_settings.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c...
conan-io/conan
f31647f3ef2feaabc91b2875d540ae48d2a4a4c8
[feature] C++26 support ### What is your suggestion? gcc-14+ and clang-17+ support C++26 already with `-std=c++26`. It would be great to be able to use it with Conan and test new language features that are being shipped already. ### Have you read the CONTRIBUTING guide? - [X] I've read the CONTRIBUTING guide
diff --git a/conan/internal/default_settings.py b/conan/internal/default_settings.py index a8f752e91..0d034096a 100644 --- a/conan/internal/default_settings.py +++ b/conan/internal/default_settings.py @@ -107,7 +107,7 @@ compiler: libcxx: [libstdc++, libstdc++11] threads: [null, posix, win32] # Windo...
conan-io__conan-17531
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/files/files.py:replace_in_file" ], "edited_modules": [ "conan/tools/files/files.py:replace_in_file" ] }, "file": "conan/tools/files/files.py" }, { "...
conan-io/conan
e9e4bb13e821470f28411742f1de179a796bc005
[bug] replace_in_file has inconsistent return value ### Describe the bug Not really a bug, but a minor inconsistence: `files.replace_in_file` in non-strict mode return `False` if the pattern was not found, but nothing (e.g. `None`) if it was found and replaced. Noticed this because I wanted to check the return value. ...
diff --git a/conan/tools/files/files.py b/conan/tools/files/files.py index bbb96bf90..b3a05026b 100644 --- a/conan/tools/files/files.py +++ b/conan/tools/files/files.py @@ -451,6 +451,7 @@ def replace_in_file(conanfile, file_path, search, replace, strict=True, encoding string is not found, so nothing is act...
conan-io__conan-18005
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conan/tools/microsoft/msbuild.py:msbuild_verbosity_cmd_line_arg", "conan/tools/microsoft/msbuild.py:MSBuild.command" ], "edited_modules": [ "conan/tools/microsoft/msbuild.py:...
conan-io/conan
1fb10da677ee052a5f38df2298ba6192d51ea212
[bug] Unable to run Msbuild.exe when using AutotoolsToolchain ### Environment details * Operating System+version: Windows 11 22H2 * Compiler+version: msvc16 (VS2019) * Conan version: 2.0.17 * Python version: integrated in Conan release ### Steps to reproduce When using the AutotoolsToolchain then later calls to...
diff --git a/conan/tools/microsoft/msbuild.py b/conan/tools/microsoft/msbuild.py index e8efb2772..70dcdfab5 100644 --- a/conan/tools/microsoft/msbuild.py +++ b/conan/tools/microsoft/msbuild.py @@ -13,7 +13,7 @@ def msbuild_verbosity_cmd_line_arg(conanfile): "quiet": "Quiet", "verbose": "Detail...