Skip to content

Commit a14057d

Browse files
committed
build: prepare for PyPI with CI and publish workflows
1 parent 0168fbd commit a14057d

5 files changed

Lines changed: 89 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.11", "3.12", "3.13"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -e ".[dev]"
28+
29+
- name: Lint with ruff
30+
run: |
31+
ruff check .
32+
ruff format --check .
33+
34+
- name: Type check with mypy
35+
run: mypy src/
36+
37+
- name: Run tests
38+
run: pytest tests/ --ignore=tests/test_integration.py

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.12"
17+
18+
- name: Install build dependencies
19+
run: pip install build
20+
21+
- name: Build package
22+
run: python -m build
23+
24+
- name: Upload dist
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: dist
28+
path: dist/
29+
30+
publish:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment: pypi
34+
permissions:
35+
id-token: write
36+
37+
steps:
38+
- name: Download dist
39+
uses: actions/download-artifact@v4
40+
with:
41+
name: dist
42+
path: dist/
43+
44+
- name: Publish to PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Development Setup
44

55
```bash
6-
git clone https://github.com/anthropics/devscontext.git
6+
git clone https://github.com/Pro0f/devscontext.git
77
cd devscontext
88
python -m venv venv
99
source venv/bin/activate

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ No background processes. No vector database. Just on-demand fetching and synthes
136136
## Development
137137

138138
```bash
139-
git clone https://github.com/anthropics/devscontext.git
139+
git clone https://github.com/Pro0f/devscontext.git
140140
cd devscontext
141141
pip install -e ".[dev]"
142142

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
license = "MIT"
1111
requires-python = ">=3.11"
1212
authors = [
13-
{ name = "Your Name", email = "you@devscontext.com" },
13+
{ name = "DevsContext Contributors" },
1414
]
1515
keywords = ["mcp", "ai", "context", "jira", "claude-code", "developer-tools"]
1616
classifiers = [
@@ -47,9 +47,9 @@ dev = [
4747
devscontext = "devscontext.cli:main"
4848

4949
[project.urls]
50-
Homepage = "https://devscontext.com"
51-
Repository = "https://github.com/yourusername/devscontext"
52-
Documentation = "https://devscontext.com/docs"
50+
Homepage = "https://github.com/Pro0f/devscontext"
51+
Repository = "https://github.com/Pro0f/devscontext"
52+
Issues = "https://github.com/Pro0f/devscontext/issues"
5353

5454
[tool.hatch.build.targets.wheel]
5555
packages = ["src/devscontext"]

0 commit comments

Comments
 (0)