Skip to content

Commit 023855e

Browse files
chore: prepare canopy-code for PyPI publishing
1 parent f29f70d commit 023855e

5 files changed

Lines changed: 81 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.12"
17+
- run: pip install hatch
18+
- run: hatch build
19+
- uses: pypa/gh-action-pypi-publish@release/v1

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Python
2+
__pycache__/
3+
*.pyc
4+
*.pyo
5+
6+
# Build / dist
7+
dist/
8+
build/
9+
*.egg-info/
10+
11+
# Testing
12+
.pytest_cache/
13+
.coverage
14+
htmlcov/
15+
16+
# Tools
17+
.mypy_cache/
18+
.ruff_cache/
19+
20+
# Project-specific
21+
canopy-orbital.html
22+
CANOPY.md

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Bruno
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ pip install "canopy-code[tools]"
4242
For development:
4343

4444
```bash
45-
git clone https://github.com/your-org/canopy.git
46-
cd canopy
45+
git clone https://github.com/bruno-portfolio/canopy-code.git
46+
cd canopy-code
4747
pip install -e ".[dev,tools]"
4848
pre-commit install
4949
```

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ version = "0.1.0"
88
description = "CLI tool that generates orbital SVG visualizations of codebase health"
99
requires-python = ">=3.10"
1010
license = "MIT"
11+
authors = [{name = "Bruno"}]
12+
readme = "README.md"
13+
keywords = ["code-health", "visualization", "svg", "complexity", "maintainability"]
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"License :: OSI Approved :: MIT License",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
"Topic :: Software Development :: Quality Assurance",
22+
]
1123
dependencies = [
1224
"click>=8.0",
1325
"pyyaml>=6.0",
@@ -29,6 +41,11 @@ dev = [
2941
[project.scripts]
3042
canopy = "canopy.cli:main"
3143

44+
[project.urls]
45+
Homepage = "https://github.com/bruno-portfolio/canopy-code"
46+
Repository = "https://github.com/bruno-portfolio/canopy-code"
47+
Issues = "https://github.com/bruno-portfolio/canopy-code/issues"
48+
3249
[tool.hatch.build.targets.wheel]
3350
packages = ["canopy"]
3451

0 commit comments

Comments
 (0)