Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
install:
pip install -e ".[dev]" --config-settings editable_mode=compat
pip install -e ".[dev]"
bash .github/setup_env.sh

debug:
Expand Down Expand Up @@ -31,6 +31,6 @@ deploy:
changelog:
build-changelog changelog.yaml --output changelog.yaml --update-last-date --start-from 0.1.0 --append-file changelog_entry.yaml
build-changelog changelog.yaml --org PolicyEngine --repo policyengine-api --output CHANGELOG.md --template .github/changelog_template.md
bump-version changelog.yaml setup.py policyengine_api/constants.py
bump-version changelog.yaml pyproject.toml policyengine_api/constants.py
rm changelog_entry.yaml || true
touch changelog_entry.yaml
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
changed:
- Migrated from setup.py to pyproject.toml with hatchling build backend
67 changes: 67 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "policyengine-api"
version = "3.37.0"
description = "PolicyEngine API"
readme = "README.md"
license = "AGPL-3.0-only"
authors = [
{ name = "PolicyEngine", email = "hello@policyengine.org" },
]
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: GNU Affero General Public License v3",
]
dependencies = [
"anthropic",
"assertpy",
"click>=8,<9",
"cloud-sql-python-connector",
"faiss-cpu",
"flask>=3,<4",
"flask-cors>=5,<6",
"Flask-Caching>=2,<3",
"google-cloud-logging>=3,<4",
"gunicorn",
"httpx>=0.27.0",
"markupsafe>=3,<4",
"microdf_python>=1.0.0",
"openai",
"policyengine_canada==0.96.3",
"policyengine-ng==0.5.1",
"policyengine-il==0.1.0",
"policyengine_uk==2.39.0",
"policyengine_us==1.590.2",
"policyengine_core>=3.16.6",
"policyengine>=0.7.0",
"pydantic",
"pymysql",
"python-dotenv",
"redis",
"rq",
"sqlalchemy>=2,<3",
"streamlit",
"werkzeug",
]

[project.optional-dependencies]
dev = [
"pytest-timeout",
"coverage",
"pytest-snapshot",
"ruff>=0.9.0",
]

[project.scripts]
policyengine-api-setup = "policyengine_api.setup_data:setup_data"

[tool.hatch.build.targets.wheel]
packages = ["policyengine_api"]
61 changes: 0 additions & 61 deletions setup.py

This file was deleted.

Loading