Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Provide public API with path to project for plugins #2946

Closed
Czaki opened this issue Mar 15, 2023 · 0 comments
Closed

Provide public API with path to project for plugins #2946

Czaki opened this issue Mar 15, 2023 · 0 comments

Comments

@Czaki
Copy link
Contributor

Czaki commented Mar 15, 2023

What's the problem this feature will solve?

After discussion in #2886 I have decided to create a plugin to simplify minimum requirements testing https://pypi.org/project/tox-min-req/. But during development, I meet problems with determining the path to the project. Finally, I decide to use tox_env.core._root
https://github.com/Czaki/tox-min-req/blob/1e32144066ef8f41aae15abb7c94b639357f8be5/tox_min_req/_tox_plugin.py#L45

I also observe that arguments contains a string which part is the path to the tox file. But I do not find documentation about this.

Describe the solution you'd like

Provide public API to determine the path to the project or update documentation of tox_on_install or ToxEnv with a point to the proper property.

Alternative Solutions

Maintenance on the side of the plugin.

Additional context

@tox-dev tox-dev locked and limited conversation to collaborators Mar 15, 2023
@gaborbernat gaborbernat converted this issue into discussion #2948 Mar 15, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant