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

Cookiecutter + Cruft Setup #9

Open
pythoninthegrass opened this issue Sep 28, 2022 · 1 comment
Open

Cookiecutter + Cruft Setup #9

pythoninthegrass opened this issue Sep 28, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed up for grabs

Comments

@pythoninthegrass
Copy link
Owner

Inspired by this post detailing templating via cookiecutter and cruft, would love to parameterize a good portion of this public template to make starting future Python projects less cumbersome.

Current okay method for creating a new repo:

# create repo from template
gh repo create delete_moi --public --template "pythoninthegrass/python_template" 

# clone repo locally
cd ~/git && gh repo clone delete_moi && cd delete_moi/

# remove a bunch of irrelevant directories and files
rm -rf terraform/ pyproject.toml poetry.lock requirements.txt startup.sh jupyter/

# create new poetry project
poetry init

# create virtual environment with dependencies
poetry install

# export requirements.txt
poetry export -f requirements.txt --output requirements.txt --without-hashes

To be fair, also have Docker files that negate some of that. Using the #8 will help, but cookiecutter + cruft fill in the gaps for non-Docker scaffolding and syncing repos when upstream changes are made.

@pythoninthegrass pythoninthegrass added enhancement New feature or request good first issue Good for newcomers hacktoberfest https://hacktoberfest.com labels Sep 28, 2022
@pythoninthegrass
Copy link
Owner Author

pythoninthegrass commented Sep 28, 2022

For Hacktoberfest participants, PRs have to be submitted starting October 1st. I'll hold off on approval/merging until October 1st so you get credit.

EDIT
To make sure you get credit, please fork the repo and make changes locally. Then submit a PR on October 1st. Out of my hands 🙌

@pythoninthegrass pythoninthegrass removed the hacktoberfest https://hacktoberfest.com label Nov 3, 2022
@pythoninthegrass pythoninthegrass added up for grabs help wanted Extra attention is needed labels Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed up for grabs
Projects
None yet
Development

No branches or pull requests

1 participant