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 request: Add git remote based upon prompts #9

Closed
berquist opened this issue Aug 7, 2024 · 1 comment
Closed

Feature request: Add git remote based upon prompts #9

berquist opened this issue Aug 7, 2024 · 1 comment

Comments

@berquist
Copy link
Contributor

berquist commented Aug 7, 2024

Creating the project asks for the GitHub username and repository URL and populates some entries in pyproject.toml with them, but doesn't use them to set the origin remote in the initialized Git repo:

$ cookiecutter https://github.com/florianwilhelm/the-hatchlor.git
  [1/12] Provide your full name (Florian Wilhelm):
  [2/12] Provide your email (email@example.com):
  [3/12] Provide the human-readible project name (Python hatch project):
  [4/12] Provide the project slug (only ASCII letters/digits, underscores, hyphens, and periods) (python-hatch-project):
  [5/12] Provide the package name (only ASCII letters/digits, and underscores) (python_hatch_project):
  [6/12] Provide a short project description (Python project featuring the modern and extensible Python project manager hatch.):
  [7/12] Provide the license of this project
    1 - MIT
    2 - BSD-3-Clause
    3 - ISC
    4 - Apache-2.0
    5 - GPL-3.0-only
    6 - proprietary
    Choose from [1/2/3/4/5/6] (1):
  [8/12] Provide the minimum Python version
    1 - 3.10
    2 - 3.8
    3 - 3.9
    4 - 3.11
    5 - 3.12
    Choose from [1/2/3/4/5] (1):
  [9/12] Optionally, provide a Github user name (FlorianWilhelm):
  [10/12] Optionally, provide the repository url (https://github.com/FlorianWilhelm/python-hatch-project):
  [11/12] Optionally, provide a PyPI user name (FlorianWilhelm):
  [12/12] Activate support for lock files? [y/n] (n):
Initialized empty Git repository in ~/Desktop/python-hatch-project/.git/
[main (root-commit) 7fa49b1] Initial commit
 32 files changed, 1527 insertions(+)
 create mode 100644 .editorconfig
 create mode 100644 .github/dependabot.yml
 create mode 100644 .github/labels.yml
 create mode 100644 .github/release-drafter.yml
 create mode 100644 .github/workflows/build.yml
 create mode 100644 .github/workflows/documentation.yml
 create mode 100644 .github/workflows/draft.yml
 create mode 100644 .github/workflows/labeler.yml
 create mode 100644 .github/workflows/tests.yml
 create mode 100644 .gitignore
 create mode 100644 .pre-commit-config.yaml
 create mode 100644 AUTHORS.md
 create mode 100644 CHANGELOG.md
 create mode 100644 CONTRIBUTING.md
 create mode 100644 LICENSE.txt
 create mode 100644 README.md
 create mode 100644 docs/assets/images/favicon.svg
 create mode 100644 docs/authors.md
 create mode 100644 docs/changelog.md
 create mode 100644 docs/contributing.md
 create mode 100644 docs/index.md
 create mode 100644 docs/license.md
 create mode 100644 docs/scripts/gen_ref_nav.py
 create mode 100644 docs/snippets/links.txt
 create mode 100644 mkdocs.yml
 create mode 100644 notebooks/template.ipynb
 create mode 100644 pyproject.toml
 create mode 100644 src/python_hatch_project/__init__.py
 create mode 100644 src/python_hatch_project/skeleton.py
 create mode 100644 tests/__init__.py
 create mode 100644 tests/conftest.py
 create mode 100644 tests/test_skeleton.py
$ cd python-hatch-project
$ git remote -v
$

I ask because it is more annoying to do git remote add origin ... than it is git remote rm origin for the common use case.

@FlorianWilhelm
Copy link
Owner

Cool idea @berquist. I released this as version 0.6 of the hatchlor 🌹

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

No branches or pull requests

2 participants