diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b1924b3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,37 @@ +name: Publish to PyPI + +on: + release: + types: [published] + workflow_dispatch: # Manual trigger for testing + +jobs: + pypi-publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/yargi-mcp + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + + - name: Build package + run: python -m build + + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} + skip-existing: true \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 1e51c53..f3edfd4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,24 @@ [project] name = "yargi-mcp" -version = "0.1.0" +version = "0.1.1" description = "MCP Server For Turkish Legal Databases" readme = "README.md" requires-python = ">=3.11" +license = {text = "MIT"} +authors = [{name = "Said Surucu", email = "saidsrc@gmail.com"}] +keywords = ["mcp", "turkish-law", "legal", "yargitay", "danistay", "turkish", "law", "court", "decisions"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Legal Industry", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Legal", + "Topic :: Text Processing :: Markup :: Markdown", + "Operating System :: OS Independent", +] +urls = {Homepage = "https://github.com/saidsurucu/yargi-mcp", Issues = "https://github.com/saidsurucu/yargi-mcp/issues"} dependencies = [ "beautifulsoup4>=4.13.4", "httpx>=0.28.1", @@ -43,3 +58,7 @@ py-modules = ["mcp_server_main", "mcp_auth_factory", "mcp_auth_http_adapter", "a [tool.setuptools.packages.find] include = ["*_mcp_module", "mcp_auth"] + +[build-system] +requires = ["setuptools>=65.0", "wheel"] +build-backend = "setuptools.build_meta"