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 tool_requires definition to conan new #3156

Merged
merged 2 commits into from
Apr 10, 2023

Conversation

AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Apr 5, 2023

No description provided.

@AbrilRBS AbrilRBS changed the base branch from release/2.0 to develop2 April 5, 2023 12:11
reference/commands/new.rst Outdated Show resolved Hide resolved
@@ -50,7 +50,7 @@ The available templates are:
Creates a simple recipe with some example code and helpful comments,
and is a good starting point to avoid writing boilerplate code.

Its variables are: [name], [version], [description], [require, require...]
Its variables are: [name], [version], [description], [requires, requires...], [tool_requires, tool_requires, ...]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Its variables are: [name], [version], [description], [requires, requires...], [tool_requires, tool_requires, ...]
Its variables are: name, version, description, [requires, requires...], [tool_requires, tool_requires, ...]

Copy link
Member Author

Choose a reason for hiding this comment

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

Locally, I can run:

~/c/s/basic $ conan new basic
File saved: conanfile.py
~/c/s/basic $ cat conanfile.py
from conan import ConanFile

class BasicConanfile(ConanFile):
    name = "pkg"
    version = "1.0"
    description = "A basic recipe"
    license = "<Your project license goes here>"
    homepage = "<Your project homepage goes here>"
    ...

@czoido czoido merged commit 2a85f1c into conan-io:develop2 Apr 10, 2023
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.

4 participants