Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing tools to develop #10536

Merged
merged 3 commits into from Feb 8, 2022
Merged

Conversation

czoido
Copy link
Contributor

@czoido czoido commented Feb 8, 2022

Changelog: Feature: Port conan.tools.Version to Conan 1.X.
Changelog: Feature: Port conan.tools.build.cross_building to Conan 1.X.
Docs: conan-io/docs#2434

Later moved Version to conan.tools.scm.Version in #10712

There were some tools that are not ported to Conan 1.X, this PR was failing because of that.

@czoido czoido added this to the 1.46 milestone Feb 8, 2022
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I am missing something. https://github.com/czoido/conan-center-index/pull/4/files doesn't seem to need all these tools. Aren't those insufficiently tested internally in the test-suite?

from conans.model.version import Version


def architecture_flag(settings):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure, most of these are internal in 2.0 to the toolchains and other helpers. If they are backported to 1.X we should make sure:

  • They are not documented as public, they are not exported via from conan.tools.xxxx
  • I would expect the consumers (toolchains) using these to have been changed.
  • Recall that it is possible that we want to pass conanfile as the first argument always to all public tools, so this might need a refactor for that.

@czoido
Copy link
Contributor Author

czoido commented Feb 8, 2022

I think I am missing something. https://github.com/czoido/conan-center-index/pull/4/files doesn't seem to need all these tools. Aren't those insufficiently tested internally in the test-suite?

No, I think we don't need all of these, I'll remove some

@czoido czoido merged commit f930e50 into conan-io:develop Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants