chore: add pyproject.toml and .gitignore #13

Open
opened 2026-02-16 15:56:27 +00:00 by forbes · 0 comments
Owner

Problem

The repository has no packaging configuration and no .gitignore. This means:

  1. Cannot be pip-installed -- no pyproject.toml, setup.py, or setup.cfg
  2. __pycache__/ tracked in git -- no .gitignore to exclude bytecode
  3. No version metadata for packaging tools -- __version__ = "0.1.0" exists in code but is not surfaced to pip/setuptools

Proposed Changes

1. Add pyproject.toml

Minimal config since the library has zero external dependencies:

[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.backends._legacy:_Backend"

[project]
name = "silo-client"
version = "0.1.0"
description = "Shared Python HTTP client for the Silo REST API"
requires-python = ">=3.10"
license = "MIT"
dependencies = []

[project.urls]
Repository = "https://git.kindred-systems.com/kindred/silo-client"

2. Add .gitignore

__pycache__/
*.pyc
*.egg-info/
dist/
build/
.eggs/

3. Clean up committed __pycache__/

Remove any __pycache__/ directories already tracked in git.

## Problem The repository has no packaging configuration and no .gitignore. This means: 1. **Cannot be pip-installed** -- no `pyproject.toml`, `setup.py`, or `setup.cfg` 2. **`__pycache__/` tracked in git** -- no `.gitignore` to exclude bytecode 3. **No version metadata** for packaging tools -- `__version__ = "0.1.0"` exists in code but is not surfaced to pip/setuptools ## Proposed Changes ### 1. Add `pyproject.toml` Minimal config since the library has zero external dependencies: ```toml [build-system] requires = ["setuptools>=68.0"] build-backend = "setuptools.backends._legacy:_Backend" [project] name = "silo-client" version = "0.1.0" description = "Shared Python HTTP client for the Silo REST API" requires-python = ">=3.10" license = "MIT" dependencies = [] [project.urls] Repository = "https://git.kindred-systems.com/kindred/silo-client" ``` ### 2. Add `.gitignore` ``` __pycache__/ *.pyc *.egg-info/ dist/ build/ .eggs/ ``` ### 3. Clean up committed `__pycache__/` Remove any `__pycache__/` directories already tracked in git.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/silo-client#13