From 3f73fc24785173a14d08ada28898512b486afdec Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Thu, 28 May 2026 17:56:57 -0600 Subject: [PATCH] First release to PyPI --- .github/workflows/release.yml | 35 +++++ .gitignore | 235 +++------------------------------- .markdownlint-cli2.yaml | 1 - LICENSE | 21 +++ SECURITY.md | 3 + pyproject.toml | 45 +++++-- 6 files changed, 107 insertions(+), 233 deletions(-) create mode 100644 LICENSE create mode 100644 SECURITY.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce4ee24..5af8aad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,6 +143,12 @@ jobs: cat > "${notes_path}" < diff --git a/pyproject.toml b/pyproject.toml index 545474c..a47cd17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,25 +1,49 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[dependency-groups] +dev = [ + "pyright>=1.1.409", + "ruff>=0.7.0", +] + [project] name = "src-py-lib" version = "0.1.0" -description = "Reusable Python helpers for Python projects." +description = "Reusable Python helpers for Sourcegraph projects" readme = "README.md" requires-python = ">=3.11" +license = "MIT" +license-files = ["LICENSE"] +authors = [ + { name="Sourcegraph" }, +] +classifiers = [ + "Development Status :: 3 - Alpha", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Typing :: Typed", +] dependencies = [ "httpx>=0.28,<1", "pydantic>=2,<3", "python-dotenv>=1.2,<2", ] +keywords = [ + "Sourcegraph" +] -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +[project.urls] +Homepage = "https://github.com/sourcegraph/src-py-lib" +Issues = "https://github.com/sourcegraph/src-py-lib/issues" [tool.hatch.build.targets.wheel] packages = ["src/src_py_lib"] -[tool.uv] -package = true - [tool.pyright] include = ["src/src_py_lib"] typeCheckingMode = "strict" @@ -33,8 +57,5 @@ line-length = 100 [tool.ruff.lint] select = ["E", "F", "I", "B", "UP", "SIM"] -[dependency-groups] -dev = [ - "pyright>=1.1.409", - "ruff>=0.7.0", -] +[tool.uv] +package = true