Skip to content

Commit 4897e2d

Browse files
Remove PE-US from dependencies (#94)
* Fix Move PolicyEngine US out of dev dependencies #93 * Change to minor bump * Move URLs up * Add microdf to dependencies * Use `make install` over `pip`
1 parent 8899c27 commit 4897e2d

9 files changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
with:
6161
python-version: 3.12
6262
- name: Install package
63-
run: pip install -e ".[dev]"
63+
run: make install
6464
- name: Download data inputs
6565
run: make download
6666
env:

.github/workflows/push.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
python-version: 3.12
4040
- name: Install package
41-
run: pip install -e ".[dev]"
41+
run: make install
4242
- name: Download data inputs
4343
run: make download
4444
env:
@@ -73,7 +73,7 @@ jobs:
7373
with:
7474
python-version: 3.12
7575
- name: Install package
76-
run: pip install -e ".[dev]"
76+
run: make install
7777
- name: Build package
7878
run: python -m build
7979
- name: Publish a git tag

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ test:
1010

1111
install:
1212
pip install -e ".[dev]"
13+
pip install policyengine-us==1.100.0
1314

1415
changelog:
1516
build-changelog changelog.yaml --output changelog.yaml --update-last-date --start-from 1.0.0 --append-file changelog_entry.yaml

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: minor
2+
changes:
3+
fixed:
4+
- Moved PolicyEngine US out of setup.py dependencies.

policyengine_us_data/datasets/acs/acs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ACS_2022(ACS):
111111
time_period = 2022
112112
file_path = STORAGE_FOLDER / "acs_2022.h5"
113113
census_acs = CensusACS_2022
114-
url = "release://PolicyEngine/policyengine-us-data/1.7.0/acs_2022.h5"
114+
url = "release://PolicyEngine/policyengine-us-data/1.8.0/acs_2022.h5"
115115

116116

117117
if __name__ == "__main__":

policyengine_us_data/datasets/cps/cps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ class CPS_2024(CPS):
622622
label = "CPS 2024 (2022-based)"
623623
file_path = STORAGE_FOLDER / "cps_2024.h5"
624624
time_period = 2024
625-
url = "release://policyengine/policyengine-us-data/1.7.0/cps_2024.h5"
625+
url = "release://policyengine/policyengine-us-data/1.8.0/cps_2024.h5"
626626

627627

628628
class PooledCPS(Dataset):
@@ -681,7 +681,7 @@ class Pooled_3_Year_CPS_2023(PooledCPS):
681681
CPS_2023,
682682
]
683683
time_period = 2023
684-
url = "release://PolicyEngine/policyengine-us-data/1.7.0/pooled_3_year_cps_2023.h5"
684+
url = "release://PolicyEngine/policyengine-us-data/1.8.0/pooled_3_year_cps_2023.h5"
685685

686686

687687
if __name__ == "__main__":

policyengine_us_data/datasets/cps/enhanced_cps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class EnhancedCPS_2024(EnhancedCPS):
177177
name = "enhanced_cps_2024"
178178
label = "Enhanced CPS 2024"
179179
file_path = STORAGE_FOLDER / "enhanced_cps_2024.h5"
180-
url = "release://policyengine/policyengine-us-data/1.7.0/enhanced_cps_2024.h5"
180+
url = "release://policyengine/policyengine-us-data/1.8.0/enhanced_cps_2024.h5"
181181

182182

183183
if __name__ == "__main__":

policyengine_us_data/datasets/puf/puf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from tqdm import tqdm
22
import numpy as np
33
import pandas as pd
4-
from microdf import MicroDataFrame
4+
from policyengine_core.weighting import MicroDataFrame
55
from policyengine_core.data import Dataset
66
from policyengine_us_data.storage import STORAGE_FOLDER
77
from policyengine_us_data.datasets.puf.uprate_puf import uprate_puf
@@ -493,15 +493,15 @@ class PUF_2021(PUF):
493493
name = "puf_2021"
494494
time_period = 2021
495495
file_path = STORAGE_FOLDER / "puf_2021.h5"
496-
url = "release://policyengine/irs-soi-puf/1.7.0/puf_2021.h5"
496+
url = "release://policyengine/irs-soi-puf/1.8.0/puf_2021.h5"
497497

498498

499499
class PUF_2024(PUF):
500500
label = "PUF 2024 (2015-based)"
501501
name = "puf_2024"
502502
time_period = 2024
503503
file_path = STORAGE_FOLDER / "puf_2024.h5"
504-
url = "release://policyengine/irs-soi-puf/1.7.0/puf_2024.h5"
504+
url = "release://policyengine/irs-soi-puf/1.8.0/puf_2024.h5"
505505

506506

507507
MEDICAL_EXPENSE_CATEGORY_BREAKDOWNS = {

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dependencies = [
2222
dev = [
2323
"black",
2424
"pytest",
25-
"policyengine_us==1.100.0",
2625
"quantile-forest",
2726
"torch",
2827
"tables",

0 commit comments

Comments
 (0)