|
3 | 3 | [](https://badge.fury.io/py/repo-scaffold)
|
4 | 4 | [](https://pypi.org/project/repo-scaffold/)
|
5 | 5 | [](https://opensource.org/licenses/MIT)
|
| 6 | +[](https://github.com/your-username/repo-scaffold/actions) |
6 | 7 |
|
7 |
| -A modern project scaffolding tool with component-based architecture. |
| 8 | +A modern, intelligent project scaffolding tool that generates production-ready Python projects in seconds. |
8 | 9 |
|
9 |
| -## Features |
| 10 | +## ✨ Features |
10 | 11 |
|
11 |
| -- 🚀 Quick project creation |
12 |
| -- 📦 Component-based templates |
13 |
| -- ⚙️ Interactive configuration |
14 |
| -- 🔧 Best practices included |
| 12 | +- 🚀 **Zero-config setup** - Create projects instantly without answering questions |
| 13 | +- 📦 **Component-based architecture** - Mix and match features as needed |
| 14 | +- 🎯 **Production-ready templates** - Includes CI/CD, testing, documentation, and more |
| 15 | +- 🔧 **Modern Python tooling** - Built with uv, Ruff, pytest, and Task automation |
| 16 | +- 🐳 **Container support** - Optional Podman/Docker integration |
| 17 | +- 📚 **Documentation ready** - MkDocs setup with auto-generated API docs |
| 18 | +- 🔄 **GitHub Actions** - Complete CI/CD workflows included |
| 19 | +- 📦 **PyPI publishing** - Automated package publishing with trusted publishing |
| 20 | +- 🎨 **Code quality** - Pre-commit hooks, linting, and formatting configured |
15 | 21 |
|
16 |
| -## Quick Start |
| 22 | +## 🚀 Quick Start |
| 23 | + |
| 24 | +### Installation |
17 | 25 |
|
18 | 26 | ```bash
|
19 |
| -# Install |
| 27 | +# Install globally with uvx (recommended) |
20 | 28 | uvx install repo-scaffold
|
21 | 29 |
|
22 |
| -# Create project |
| 30 | +# Or install with pip |
| 31 | +pip install repo-scaffold |
| 32 | +``` |
| 33 | + |
| 34 | +### Create Your First Project |
| 35 | + |
| 36 | +```bash |
| 37 | +# Create a Python library project (uses smart defaults) |
| 38 | +repo-scaffold create |
| 39 | + |
| 40 | +# That's it! Your project is ready with: |
| 41 | +# ✅ Modern Python setup (pyproject.toml, uv) |
| 42 | +# ✅ Testing framework (pytest with coverage) |
| 43 | +# ✅ Code quality tools (ruff, pre-commit) |
| 44 | +# ✅ GitHub Actions CI/CD |
| 45 | +# ✅ Documentation (MkDocs) |
| 46 | +# ✅ Task automation (Taskfile) |
| 47 | +``` |
| 48 | + |
| 49 | +### What You Get |
| 50 | + |
| 51 | +After running `repo-scaffold create`, you'll have a complete project structure: |
| 52 | + |
| 53 | +``` |
| 54 | +my-python-library/ |
| 55 | +├── .github/workflows/ # CI/CD pipelines |
| 56 | +├── docs/ # MkDocs documentation |
| 57 | +├── tests/ # Test suite |
| 58 | +├── my_python_library/ # Your package |
| 59 | +├── pyproject.toml # Modern Python configuration |
| 60 | +├── Taskfile.yml # Task automation |
| 61 | +├── README.md # Project documentation |
| 62 | +└── .pre-commit-config.yaml # Code quality hooks |
| 63 | +``` |
| 64 | + |
| 65 | +### Start Developing |
| 66 | + |
| 67 | +```bash |
| 68 | +cd my-python-library |
| 69 | +task init # Initialize development environment |
| 70 | +task test # Run tests |
| 71 | +task lint # Check code quality |
| 72 | +task docs # Serve documentation locally |
| 73 | +``` |
| 74 | + |
| 75 | +## 📋 Available Commands |
| 76 | + |
| 77 | +```bash |
| 78 | +# Project creation |
| 79 | +repo-scaffold create # Create with defaults (recommended) |
| 80 | +repo-scaffold create --input # Interactive mode with prompts |
| 81 | +repo-scaffold create -t python-library # Specify template explicitly |
| 82 | +repo-scaffold create -o ./my-project # Specify output directory |
| 83 | + |
| 84 | +# Information commands |
| 85 | +repo-scaffold list # List available templates |
| 86 | +repo-scaffold components # List available components |
| 87 | +repo-scaffold show python-library # Show template details |
| 88 | +repo-scaffold --help # Show help |
| 89 | +``` |
| 90 | + |
| 91 | +## 🎯 Usage Examples |
| 92 | + |
| 93 | +### Basic Usage (Recommended) |
| 94 | + |
| 95 | +```bash |
| 96 | +# Create a project with smart defaults - no questions asked! |
23 | 97 | repo-scaffold create
|
| 98 | +``` |
| 99 | + |
| 100 | +This creates a full-featured Python library with: |
| 101 | +- **Python Core**: Modern pyproject.toml setup with uv |
| 102 | +- **Task Automation**: Taskfile.yml for common development tasks |
| 103 | +- **GitHub Actions**: Complete CI/CD with testing, linting, and publishing |
| 104 | +- **Documentation**: MkDocs with auto-generated API docs |
| 105 | +- **Code Quality**: Pre-commit hooks, Ruff linting and formatting |
| 106 | +- **Container Support**: Podman/Docker setup for containerized development |
| 107 | +- **PyPI Publishing**: Automated package publishing workflows |
| 108 | + |
| 109 | +### Interactive Mode |
| 110 | + |
| 111 | +```bash |
| 112 | +# If you want to customize the setup |
| 113 | +repo-scaffold create --input |
| 114 | +``` |
24 | 115 |
|
25 |
| -# Or run directly |
26 |
| -uvx run repo-scaffold create |
| 116 | +This will prompt you to: |
| 117 | +- Choose which components to include |
| 118 | +- Configure project details |
| 119 | +- Set up custom options |
| 120 | + |
| 121 | +### Advanced Usage |
| 122 | + |
| 123 | +```bash |
| 124 | +# Create in specific directory |
| 125 | +repo-scaffold create -o ~/projects/my-new-lib |
| 126 | + |
| 127 | +# Use different template (when more templates are available) |
| 128 | +repo-scaffold create -t python-library |
| 129 | + |
| 130 | +# Combine options |
| 131 | +repo-scaffold create -t python-library -o ~/projects --input |
| 132 | +``` |
| 133 | + |
| 134 | +## 🧩 Available Components |
| 135 | + |
| 136 | +The `python-library` template includes these components: |
| 137 | + |
| 138 | +| Component | Description | Included by Default | |
| 139 | +|-----------|-------------|-------------------| |
| 140 | +| **Python Core** | Modern Python setup with pyproject.toml and uv | ✅ | |
| 141 | +| **Task Automation** | Taskfile.yml for development workflows | ✅ | |
| 142 | +| **GitHub Actions** | CI/CD pipelines for testing and deployment | ✅ | |
| 143 | +| **MkDocs** | Documentation site with auto-generated API docs | ✅ | |
| 144 | +| **Pre-commit** | Code quality hooks and automated formatting | ✅ | |
| 145 | +| **Podman** | Container support for development and deployment | ✅ | |
| 146 | +| **PyPI Publishing** | Automated package publishing to PyPI | ✅ | |
| 147 | + |
| 148 | +## 🛠️ Development Workflow |
| 149 | + |
| 150 | +After creating your project, here's the typical development workflow: |
| 151 | + |
| 152 | +```bash |
| 153 | +# 1. Initialize the development environment |
| 154 | +task init |
| 155 | + |
| 156 | +# 2. Make your changes |
| 157 | +# Edit code in your_package/ |
| 158 | + |
| 159 | +# 3. Run tests |
| 160 | +task test |
| 161 | + |
| 162 | +# 4. Check code quality |
| 163 | +task lint |
| 164 | + |
| 165 | +# 5. View documentation |
| 166 | +task docs |
| 167 | + |
| 168 | +# 6. Build package |
| 169 | +task build |
| 170 | + |
| 171 | +# 7. Commit changes (pre-commit hooks will run automatically) |
| 172 | +git add . |
| 173 | +git commit -m "feat: add new feature" |
| 174 | + |
| 175 | +# 8. Push to trigger CI/CD |
| 176 | +git push |
27 | 177 | ```
|
28 | 178 |
|
29 |
| -## Commands |
| 179 | +## 🔧 Configuration |
| 180 | + |
| 181 | +### Default Values |
| 182 | + |
| 183 | +The tool uses sensible defaults for all configuration: |
| 184 | + |
| 185 | +- **Project Name**: "My Python Library" |
| 186 | +- **Package Name**: Auto-generated from project name |
| 187 | +- **Author**: "Your Name" (customize in interactive mode) |
| 188 | +- **License**: MIT |
| 189 | +- **Python Version**: 3.10-3.12 support, 3.10 for development |
| 190 | +- **All Components**: Enabled by default |
| 191 | + |
| 192 | +### Customization |
| 193 | + |
| 194 | +Use `--input` flag for interactive customization: |
30 | 195 |
|
31 | 196 | ```bash
|
32 |
| -repo-scaffold list # List templates |
33 |
| -repo-scaffold components # List components |
34 |
| -repo-scaffold create # Create project |
35 |
| -repo-scaffold show <name> # Show template info |
| 197 | +repo-scaffold create --input |
36 | 198 | ```
|
37 | 199 |
|
38 |
| -## Documentation |
| 200 | +This allows you to: |
| 201 | +- Set custom project name and description |
| 202 | +- Choose your preferred license |
| 203 | +- Select which components to include |
| 204 | +- Configure component-specific options |
| 205 | + |
| 206 | +## 📚 Documentation |
39 | 207 |
|
40 | 208 | - [Getting Started](docs/getting-started/)
|
41 | 209 | - [Installation](docs/getting-started/installation.md)
|
42 | 210 | - [Quick Start](docs/getting-started/quick-start.md)
|
43 | 211 | - [Configuration](docs/getting-started/configuration.md)
|
| 212 | +- [Components](docs/components/) |
| 213 | +- [Templates](docs/templates/) |
| 214 | + |
| 215 | +## 🤝 Contributing |
| 216 | + |
| 217 | +Contributions are welcome! Please see our [Contributing Guide](CONTRIBUTING.md) for details. |
| 218 | + |
| 219 | +## 📄 License |
| 220 | + |
| 221 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
| 222 | + |
| 223 | +## 🙏 Acknowledgments |
| 224 | + |
| 225 | +Built with modern Python tooling: |
| 226 | +- [uv](https://github.com/astral-sh/uv) - Fast Python package manager |
| 227 | +- [Ruff](https://github.com/astral-sh/ruff) - Lightning-fast Python linter |
| 228 | +- [pytest](https://pytest.org/) - Testing framework |
| 229 | +- [MkDocs](https://www.mkdocs.org/) - Documentation generator |
| 230 | +- [Task](https://taskfile.dev/) - Task automation |
| 231 | +- [Cookiecutter](https://github.com/cookiecutter/cookiecutter) - Template engine |
0 commit comments