From 6907d8a8656a9964615a55c6b1577f235833e8ff Mon Sep 17 00:00:00 2001 From: casonk <72440835+casonk@users.noreply.github.com> Date: Sat, 17 Oct 2026 00:00:55 -0400 Subject: [PATCH] ci: prepare pushshift-python PyPI release --- .github/workflows/python-publish.yml | 14 ++++++++++++++ AGENTS.md | 2 +- CHANGELOG.md | 6 ++++++ README.md | 10 ++++++++++ pyproject.toml | 5 +++++ 5 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..1e98851 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,14 @@ +name: Publish to PyPI + +on: + release: + types: [published] + +jobs: + publish: + permissions: + contents: read + id-token: write + uses: casonk/.github/.github/workflows/python-publish.yml@main + with: + package-name: pushshift-python diff --git a/AGENTS.md b/AGENTS.md index 5ef6e0e..f439fdb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -21,7 +21,7 @@ Python wrapper library for Reddit community analytics using the Pushshift API. I ## Key Dependencies -This project uses but does not formally declare dependencies. Key imports include: +The build metadata reads runtime dependencies from `requirements.txt`. Key imports include: - `sklearn` (DecisionTreeClassifier, RandomForest, SVM, LogisticRegression) - `matplotlib`, `pandas`, `numpy` - `dateutil` diff --git a/CHANGELOG.md b/CHANGELOG.md index f4d9fe4..fa330a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,4 +4,10 @@ All notable changes to `pushshift_python` are documented here. ## Unreleased +## 0.1.0 - 2026-10-17 + +- Packaged the public `pushshift_python` facade and its query, analytics, + modeling, and utility modules for installation from PyPI. +- Declared runtime dependencies from `requirements.txt` and added a + release-triggered trusted-publishing workflow. - Added the portfolio-standard governance, continuity, and contributor baseline files. diff --git a/README.md b/README.md index 3736103..c99b56c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,16 @@ tests/ # Public API and HPC smoke coverage ## Installation +Install the published library in a virtual environment: + +```bash +python3 -m venv .venv +. .venv/bin/activate +python -m pip install pushshift-python +``` + +For development from a checkout: + ```bash pip install -e . ``` diff --git a/pyproject.toml b/pyproject.toml index 9e0272f..5918ee6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,11 @@ license = { file = "LICENSE" } authors = [{ name = "Cason Konzer" }] dynamic = ["dependencies"] +[project.urls] +Homepage = "https://github.com/casonk/pushshift_python" +Repository = "https://github.com/casonk/pushshift_python" +Changelog = "https://github.com/casonk/pushshift_python/blob/main/CHANGELOG.md" + [tool.setuptools] py-modules = [ "pushshift_python",