Skip to content

Commit

Permalink
Update PolicyEngine UK to 2.14.0 (#1921)
Browse files Browse the repository at this point in the history
* Bump PolicyEngine UK to 2.14.0

* Move back to 3.10

---------

Co-authored-by: PolicyEngine[bot] <[email protected]>
  • Loading branch information
nikhilwoodruff and PolicyEngine[bot] authored Oct 28, 2024
1 parent fee4cec commit 65d03f2
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.10"
- name: Build changelog
run: pip install yaml-changelog && make changelog
- name: Preview changelog update
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.10"
- name: Build changelog
run: pip install yaml-changelog && make changelog
- name: Preview changelog update
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.10"
- name: GCP authentication
uses: "google-github-actions/auth@v2"
with:
Expand Down
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
changed:
- Update PolicyEngine UK to 2.14.0
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM python:3.11
FROM python:3.10
RUN pip install policyengine-core policyengine-uk policyengine-us ipython
4 changes: 2 additions & 2 deletions gcp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.11
FROM python:3.10
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH
RUN apt-get update && apt-get install -y build-essential checkinstall
RUN python3.11 -m pip install --upgrade pip --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip
RUN python3.10 -m pip install --upgrade pip --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip
RUN apt-get update && apt-get install -y redis-server
RUN pip install git+https://github.com/policyengine/policyengine-api
2 changes: 1 addition & 1 deletion gcp/policyengine_api/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ gunicorn -b :$PORT policyengine_api.api --timeout 300 --workers 5 &
# Start the redis server
redis-server &
# Start the worker
ANTHROPIC_API_TOKEN=$ANTHROPIC_API_TOKEN python3.11 policyengine_api/worker.py
ANTHROPIC_API_TOKEN=$ANTHROPIC_API_TOKEN python3.10 policyengine_api/worker.py
2 changes: 1 addition & 1 deletion policyengine_api/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@ def initialize(self):
if os.environ.get("FLASK_DEBUG") == "1":
database = PolicyEngineDatabase(local=True, initialize=False)
else:
database = PolicyEngineDatabase(local=False, initialize=False)
database = PolicyEngineDatabase(local=True, initialize=False)

local_database = PolicyEngineDatabase(local=True, initialize=False)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"policyengine_canada==0.96.1",
"policyengine-ng==0.5.1",
"policyengine-il==0.1.0",
"policyengine_uk==2.13.2",
"policyengine_uk==2.14.0",
"policyengine_us==1.133.0",
"policyengine_core>=3.11.0",
"pymysql",
Expand Down

0 comments on commit 65d03f2

Please sign in to comment.