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

[FEATURE] Generate recipe for local project #531

Open
iamthebot opened this issue Mar 12, 2024 · 2 comments
Open

[FEATURE] Generate recipe for local project #531

iamthebot opened this issue Mar 12, 2024 · 2 comments
Labels
enhancement New feature or request feature

Comments

@iamthebot
Copy link

Is your feature request related to a problem? Please describe.
Perhaps I'm missing something obvious but currently grayskull allows generating recipes for a pypi package (though it accepts a github URL) or a CRAN package.

It would be nice to be able to point it to a project available locally eg; using a PEP621 pyproject.toml setuptools project. This is especially useful when dual-releasing internal packages that may not be on a public github.

Describe the solution you'd like
grayskull local /path/to/pyproject.toml generates a recipe given a pyproject.toml.

Describe alternatives you've considered
N/A

Additional context
Add any other context or screenshots about the feature request here.

@iamthebot iamthebot added enhancement New feature or request feature labels Mar 12, 2024
@beenje
Copy link
Contributor

beenje commented Apr 15, 2024

I agree this would be nice.

What you can currently do, is to generate a sdist and then a recipe from that local archive:

cd /path/to/project
python -m build -s
grayskull pypi ./dist/*.tar.gz

We do that internally to create conda packages.

@bilderbuchi
Copy link

I agree this would be nice.

What you can currently do, is to generate a sdist and then a recipe from that local archive:

cd /path/to/project
python -m build -s
grayskull pypi ./dist/*.tar.gz

We do that internally to create conda packages.

This comment is gold, it helped a lot, thanks! Maybe it's sufficient to get this approach into the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature
Projects
None yet
Development

No branches or pull requests

3 participants