Skip to content

Commit b2ba610

Browse files
authored
Merge pull request #44 from robust-python/develop
Move to Org
2 parents 28ae063 + b3c6e55 commit b2ba610

23 files changed

+138
-45
lines changed

.env

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Default environment variables for cookiecutter-robust-python
2+
# Users can override these by creating a .env.local file (not committed to git)
3+
4+
# App author name used for cache directory paths
5+
COOKIECUTTER_ROBUST_PYTHON_APP_AUTHOR=robust-python
6+
7+
# Main branch name (typically used for stable releases)
8+
COOKIECUTTER_ROBUST_PYTHON_MAIN_BRANCH=main
9+
10+
# Development branch name (where feature development occurs)
11+
COOKIECUTTER_ROBUST_PYTHON_DEVELOP_BRANCH=develop

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: ❓ Questions & Support
4-
url: https://github.com/56kyle/cookiecutter-robust-python/discussions
4+
url: https://github.com/robust-python/cookiecutter-robust-python/discussions
55
about: Ask questions and get help using cookiecutter-robust-python
66
- name: 💬 General Discussion
7-
url: https://github.com/56kyle/cookiecutter-robust-python/discussions
7+
url: https://github.com/robust-python/cookiecutter-robust-python/discussions
88
about: Discuss ideas, best practices, and share your projects

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,7 @@ Thumbs.db # Windows thumbnail cache
6262
debug.log
6363
nohup.out
6464

65+
# Local environment overrides
66+
.env.local
67+
6568
/.idea/

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
[56kyleoliver@gmail.com](mailto:56kyleoliver@gmail.com).
63+
[cookiecutter.robust.python@gmail.com](mailto:cookiecutter.robust.python@gmail.com).
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ By participating in this project, you are expected to uphold our [Code of Conduc
88

99
There are several ways to contribute:
1010

11-
1. **Reporting Bugs:** If you find an issue with the template itself (e.g., it doesn't generate correctly, the generated project's workflow doesn't work on a specific OS, a tool is misconfigured), please open an issue on the [issue tracker](https://github.com/56kyle/cookiecutter-robust-python/issues). Provide clear steps to reproduce the bug.
12-
2. **Suggesting Enhancements:** Have an idea for a new feature, a different tool choice you think is better, or an improvement to the template structure or documentation? Open an issue on the [issue tracker](https://github.com/56kyle/cookiecutter-robust-python/issues) to discuss your suggestion. Clearly articulate the proposed change and the rationale behind it, ideally referencing the template's philosophy and criteria ([Template Philosophy](https://56kyle.github.io/cookiecutter-robust-python/philosophy.html), [Criteria for Tool Selection](https://56kyle.github.io/cookiecutter-robust-python/criteria.html)).
11+
1. **Reporting Bugs:** If you find an issue with the template itself (e.g., it doesn't generate correctly, the generated project's workflow doesn't work on a specific OS, a tool is misconfigured), please open an issue on the [issue tracker](https://github.com/robust-python/cookiecutter-robust-python/issues). Provide clear steps to reproduce the bug.
12+
2. **Suggesting Enhancements:** Have an idea for a new feature, a different tool choice you think is better, or an improvement to the template structure or documentation? Open an issue on the [issue tracker](https://github.com/robust-python/cookiecutter-robust-python/issues) to discuss your suggestion. Clearly articulate the proposed change and the rationale behind it, ideally referencing the template's philosophy and criteria ([Template Philosophy](https://robust-python.github.io/cookiecutter-robust-python/philosophy.html), [Criteria for Tool Selection](https://robust-python.github.io/cookiecutter-robust-python/criteria.html)).
1313
3. **Submitting Code Contributions:** Ready to contribute code (e.g., fix a bug, implement a suggested enhancement, update a tool version)? Please fork the repository and submit a Pull Request.
1414

1515
## Setting Up Your Development Environment
1616

17-
Refer to the **[Getting Started: Contributing to the Template](https://56kyle.github.io/cookiecutter-robust-python/getting-started-template-contributing.html)** section in the template documentation for instructions on cloning the repository, installing template development dependencies (using uv), setting up the template's pre-commit hooks, and running template checks/tests.
17+
Refer to the **[Getting Started: Contributing to the Template](https://robust-python.github.io/cookiecutter-robust-python/getting-started-template-contributing.html)** section in the template documentation for instructions on cloning the repository, installing template development dependencies (using uv), setting up the template's pre-commit hooks, and running template checks/tests.
1818

1919
## Contribution Workflow
2020

2121
1. **Fork** the repository and **clone** your fork.
2222
2. Create a **new branch** for your contribution based on the main branch. Use a descriptive name (e.g., `fix/ci-workflow-on-windows`, `feat/update-uv-version`).
23-
3. Set up your development environment following the [Getting Started](https://56kyle.github.io/cookiecutter-robust-python/getting-started-template-contributing.html) guide (clone, `uv sync`, `uvx nox -s pre-commit -- install`).
23+
3. Set up your development environment following the [Getting Started](https://robust-python.github.io/cookiecutter-robust-python/getting-started-template-contributing.html) guide (clone, `uv sync`, `uvx nox -s pre-commit -- install`).
2424
4. Make your **code or documentation changes**.
2525
5. Ensure your changes adhere to the template's **code quality standards** (configured in the template's `.pre-commit-config.yaml`, `.ruff.toml`, etc.). The pre-commit hooks will help with this. Run `uvx nox -s lint`, `uvx nox -s check` in the template repository for more comprehensive checks.
2626
6. Ensure your changes **do not break existing functionality**. Run the template's test suite: `uvx nox -s test`. Ideally, add tests for new functionality or bug fixes.
@@ -35,6 +35,6 @@ If your contribution involves updating a major tool version or suggesting a diff
3535

3636
## Communication
3737

38-
For questions or discussion about contributions, open an issue or a discussion on the [GitHub repository](https://github.com/56kyle/cookiecutter-robust-python).
38+
For questions or discussion about contributions, open an issue or a discussion on the [GitHub repository](https://github.com/robust-python/cookiecutter-robust-python).
3939

4040
---

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A Python project template robust enough to follow up [cookiecutter-hypermodern-p
44

55
---
66

7-
**[📚 View Documentation](https://cookiecutter-robust-python.readthedocs.io/)** | **[🐛 Report a Bug](https://github.com/56kyle/cookiecutter-robust-python/issues)** | **[✨ Request a Feature](https://github.com/56kyle/cookiecutter-robust-python/issues)**
7+
**[📚 View Documentation](https://cookiecutter-robust-python.readthedocs.io/)** | **[🐛 Report a Bug](https://github.com/robust-python/cookiecutter-robust-python/issues)** | **[✨ Request a Feature](https://github.com/robust-python/cookiecutter-robust-python/issues)**
88

99
---
1010

@@ -17,14 +17,14 @@ The only requirement is [uv].
1717
Navigate to where you want to create your project and run:
1818

1919
```bash
20-
uvx cruft create https://github.com/56kyle/cookiecutter-robust-python.git
20+
uvx cruft create https://github.com/robust-python/cookiecutter-robust-python.git
2121
```
2222

2323
This will prompt you for a few inputs to customize your project:
2424
```
2525
[1/15] project_name (robust-python): my-awesome-project
26-
[2/15] package_name (my_awesome_project):
27-
[3/15] friendly_name (My Awesome Project):
26+
[2/15] package_name (my_awesome_project):
27+
[3/15] friendly_name (My Awesome Project):
2828
...
2929
```
3030

@@ -60,7 +60,7 @@ uvx nox -s setup-remote
6060
For a general overview of where we are at with this template, please see the [roadmap](#roadmap) section.
6161

6262
## Example Output
63-
For an example of this template's output, please visit the [demo](https://github.com/56kyle/robust-python-demo) which is kept up to date with the current state of this template.
63+
For an example of this template's output, please visit the [demo](https://github.com/robust-python/robust-python-demo) which is kept up to date with the current state of this template.
6464

6565
## Roadmap
6666

@@ -182,7 +182,7 @@ of trusted individuals to ensure the project is taken care of.
182182
[bitbucket-pipelines]: https://support.atlassian.com/bitbucket-cloud/docs/write-a-pipe-for-bitbucket-pipelines/
183183
[cookiecutter]: https://cookiecutter.readthedocs.io/en/stable/
184184
[cookiecutter-hypermodern-python]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
185-
[cookiecutter-robust-python]: https://github.com/56kyle/cookiecutter-robust-python
185+
[cookiecutter-robust-python]: https://github.com/robust-python/cookiecutter-robust-python
186186
[cruft]: https://cruft.github.io/cruft/
187187
[github]: https://github.com
188188
[github-actions]: https://docs.github.com/en/actions
@@ -193,11 +193,11 @@ of trusted individuals to ensure the project is taken care of.
193193
[monorepos]: https://en.wikipedia.org/wiki/Monorepo
194194
[my personal fork]: https://github.com/56kyle/cookiecutter-hypermodern-python
195195
[nox]: https://nox.thea.codes/
196-
[noxfile]: https://github.com/56kyle/cookiecutter-robust-python/blob/main/%7B%7Bcookiecutter.project_name%7D%7D/noxfile.py
196+
[noxfile]: https://github.com/robust-python/cookiecutter-robust-python/blob/main/%7B%7Bcookiecutter.project_name%7D%7D/noxfile.py
197197
[poetry]: https://python-poetry.org/docs/
198198
[polars]: https://github.com/pola-rs/polars
199199
[python]: https://www.python.org/
200-
[robust python cookiecutter]: https://github.com/56kyle/cookiecutter-robust-python
200+
[robust python cookiecutter]: https://github.com/robust-python/cookiecutter-robust-python
201201
[ruff]: https://docs.astral.sh/ruff/
202202
[rust]: https://www.rust-lang.org/learn
203203
[rye]: https://rye.astral.sh/

cookiecutter.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"project_name": "robust-python",
2+
"project_name": "robust-python-demo",
33
"package_name": "{{ cookiecutter.project_name.replace('-', '_') }}",
44
"friendly_name": "{{ cookiecutter.project_name.replace('-', ' ').title() }}",
55
"min_python_version": "3.9",
66
"max_python_version": "3.13",
77
"add_rust_extension": false,
8-
"author": "Kyle Oliver",
9-
"email": "56kyleoliver+cookiecutter-robust-python@gmail.com",
8+
"author": "First Last",
9+
"email": "cookiecutter.robust.python@gmail.com",
1010
"repository_provider": ["github", "gitlab", "bitbucket"],
1111
"repository_host": "{% if cookiecutter.repository_provider == 'github' %}github.com{% elif cookiecutter.repository_provider == 'gitlab' %}gitlab.com{% else %}bitbucket.org{% endif %}",
12-
"repository_path": "56kyle/{{ cookiecutter.project_name.replace('_', '-') }}",
12+
"repository_path": "robust-python/{{ cookiecutter.project_name.replace('_', '-') }}",
1313
"version": "0.0.0",
1414
"copyright_year": "{% now 'utc', '%Y' %}",
1515
"license": ["MIT", "Apache-2.0", "GPL-3.0"],

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@
132132
"footer_icons": [
133133
{
134134
"name": "GitHub",
135-
"url": "https://github.com/56kyle/cookiecutter-robust-python",
135+
"url": "https://github.com/robust-python/cookiecutter-robust-python",
136136
"html": "<svg stroke='currentColor' fill='currentColor' stroke-width='0' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.22.82.69 1.19 1.81.85 2.23.65.07-.51.28-.85.54-1.04-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38C13.71 14.53 16 11.53 16 8c0-4.42-3.58-8-8-8z'></path></svg>",
137137
"aria-label": "GitHub",
138138
},
139139
],
140-
"source_repository": "https://github.com/56kyle/cookiecutter-robust-python/",
140+
"source_repository": "https://github.com/robust-python/cookiecutter-robust-python/",
141141
"source_branch": "main",
142142
"source_directory": "docs/",
143143
}

docs/getting-started-template-contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To contribute to the template, you will need:
1717
1. **Clone the Template Repository:**
1818

1919
```bash
20-
git clone https://github.com/56kyle/cookiecutter-robust-python.git
20+
git clone https://github.com/robust-python/cookiecutter-robust-python.git
2121
cd cookiecutter-robust-python
2222
```
2323

docs/maintenance.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,36 @@ The template's `pyproject.toml` file at the **template repository root** lists t
1515
To set up your environment for working _on the template_, clone the repository and install its dependencies:
1616

1717
```bash
18-
git clone https://github.com/56kyle/cookiecutter-robust-python.git # **UPDATE WITH TEMPLATE REPO URL**
18+
git clone https://github.com/robust-python/cookiecutter-robust-python.git # **UPDATE WITH TEMPLATE REPO URL**
1919
cd cookiecutter-robust-python
2020
uv sync # This installs deps from the template's pyproject.toml into a .venv for template dev
2121
```
2222

2323
Refer to the [Getting Started: Contributing to the Template](getting-started-template-contributing.md) guide for initial setup details.
2424

25+
## Customizing Template Development with .env.local
26+
27+
The template uses environment variables to make demo generation and repository management scripts user-agnostic. Default values are provided in `.env` at the template repository root.
28+
29+
### Available Environment Variables
30+
31+
- `COOKIECUTTER_ROBUST_PYTHON_APP_AUTHOR` - App author name used for cache directory paths (default: `robust-python`)
32+
- `COOKIECUTTER_ROBUST_PYTHON_MAIN_BRANCH` - Main branch name for version control (default: `main`)
33+
- `COOKIECUTTER_ROBUST_PYTHON_DEVELOP_BRANCH` - Development branch name (default: `develop`)
34+
35+
### Overriding Defaults
36+
37+
If you maintain your own forks of the demo repositories or use different branch conventions, create a `.env.local` file at the template repository root (this file is git-ignored and will not be committed):
38+
39+
```bash
40+
# .env.local (not committed to git)
41+
COOKIECUTTER_ROBUST_PYTHON_APP_AUTHOR=my-org
42+
COOKIECUTTER_ROBUST_PYTHON_MAIN_BRANCH=master
43+
COOKIECUTTER_ROBUST_PYTHON_DEVELOP_BRANCH=development
44+
```
45+
46+
Alternatively, you can set these as system environment variables directly, and the `.env.local` file will override them if present.
47+
2548
## Task Automation for Template Maintenance
2649

2750
The template repository uses its own `noxfile.py` at the **template repository root** (separate from the `noxfile.py` generated in projects) to automate common template maintenance tasks. These tasks run within the template's development environment.

0 commit comments

Comments
 (0)