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

[PROPOSAL/TASK:] Opinionated creation of project tree #29

Open
ByteOtter opened this issue May 12, 2023 · 0 comments · May be fixed by #54
Open

[PROPOSAL/TASK:] Opinionated creation of project tree #29

ByteOtter opened this issue May 12, 2023 · 0 comments · May be fixed by #54
Labels
cli-frontend Related to Nester's CLI behavior enhancement New feature or request planned_feature python schemas

Comments

@ByteOtter
Copy link
Owner

You would like to suggest a new feature?

It was brought to my attention that some users may prefer to have the dummy files that Nester creates pre-populated with real data. Such as the pyproject.toml or something similar.

This would require to expand the create function and make assumptions about several aspects. Such as the preferred build system etc.

Staying with python as an example:

The user could do something like this nester create -o py projectname setuptools which then pre-populates the pyproject.toml like this:

[build-system]
requires = ["setuptools", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "projectname"

[tool.setuptools_scm]
root = "."
relative_to = "src/projectname/__init__.py"

### etc ###

Would be interesting to see if, while we are doing this anyway, could let pip install the preferred build system in the background.

This would maybe also include other files.

It would also be interesting to see if we could integrate the popular Poetry utility. Though this may be out of scope, as it does much more than just building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli-frontend Related to Nester's CLI behavior enhancement New feature or request planned_feature python schemas
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant