Skip to content

Commit 4519eef

Browse files
authored
refactor: reorganize package structure and bump version to 2.1.0 (#30)
* chore: version bump * chore: update docker build paths * chore: update build pipelines * ci: trigger on docker file
1 parent b028ed4 commit 4519eef

File tree

9 files changed

+23
-18
lines changed

9 files changed

+23
-18
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
- main
66
paths:
77
- "*.py"
8+
- "Dockerfile"
89
- ".github/workflows/ci.yml"
910
pull_request:
1011
branches:
1112
- main
1213
paths:
1314
- "*.py"
15+
- "Dockerfile"
1416
- ".github/workflows/ci.yml"
1517
workflow_dispatch:
1618

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ ENV MCP_ENABLE_REMOTE="true"
1010

1111
WORKDIR /app
1212

13-
COPY requirements.txt src/github_integration.py src/ip_integration.py src/issues_pr_analyser.py /app/
13+
COPY requirements.txt src/mcp_github/*.py /app/
1414

15-
RUN pip install --no-cache-dir -r requirements.txt
15+
RUN pip install --no-cache-dir -r requirements.txt && \
16+
pip install --no-cache-dir uv
1617

1718
EXPOSE 8080
1819

19-
CMD ["python3", "issues_pr_analyser.py"]
20+
CMD ["uvx", "./"]

pyproject.toml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
[project]
22
name = "mcp-github-pr-issue-analyser"
3-
version = "2.0.2"
3+
version = "2.1.0"
44
description = "MCP GitHub Issues Create/Update and PR Analyse"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
authors = [
8-
{name = "saidsef"}
8+
{ name = "saidsef" }
99
]
1010
dependencies = [
1111
"mcp[cli]==1.8.1",
12-
"requests==2.32.3",
12+
"requests==2.32.3"
1313
]
1414

1515
[project.scripts]
16-
mcp-github-pr-issue-analyser = "issues_pr_analyser:main"
16+
mcp-github-pr-issue-analyser = "mcp_github.issues_pr_analyser:main"
1717

1818
[project.urls]
19-
Homepage = "https://github.com/saidsef/mcp-github-pr-issue-analyser"
20-
Issues = "https://github.com/saidsef/mcp-github-pr-issue-analyser/issues"
19+
homepage = "https://github.com/saidsef/mcp-github-pr-issue-analyser"
20+
issues = "https://github.com/saidsef/mcp-github-pr-issue-analyser/issues"
2121

2222
[tool.setuptools]
23-
[tool.setuptools.packages.find]
24-
where = ["src"] # Look in the src directory
25-
include = ["*"] # Include all packages/modules in src
23+
package-dir = {"" = "src"}
24+
25+
[tool.pytest.ini_options]
26+
testpaths = ["tests"]
27+
python_files = ["test_*.py"]
2628

2729
[build-system]
28-
requires = ["setuptools>=61.0","uv>=0.7.6"]
30+
requires = ["setuptools>=61.0","wheel"]
2931
build-backend = "setuptools.build_meta"

smithery.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ startCommand:
1212
default: "foo"
1313
commandFunction: |-
1414
(config) => ({
15-
"command": "python3",
16-
"args": ["issues_pr_analyser.py"],
15+
"command": "uvx",
16+
"args": ["./"],
1717
"env": {
1818
"GITHUB_TOKEN": config.githubToken,
1919
},
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/issues_pr_analyser.py renamed to src/mcp_github/issues_pr_analyser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
from os import getenv
2424
from typing import Any, List, Dict
2525
from mcp.server.fastmcp import FastMCP
26-
from github_integration import GitHubIntegration as GI
27-
from ip_integration import IPIntegration as IP
26+
from .github_integration import GitHubIntegration as GI
27+
from .ip_integration import IPIntegration as IP
2828

2929
# Set up logging for the application
3030
logging.getLogger(__name__)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)