Skip to content

Commit f0531ff

Browse files
authored
Update pythonpackage.yml actions and Python versions (#91)
* Update pythonpackage.yml * Update classifiers * Black formatting
1 parent 4e28d4f commit f0531ff

4 files changed

Lines changed: 17 additions & 18 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ jobs:
66
linting:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v6
1010
- name: Set Python environment
11-
uses: actions/setup-python@v5
11+
uses: actions/setup-python@v6
1212
with:
13-
python-version: 3.12
13+
python-version: 3.14
1414
architecture: x64
1515

1616
- name: Install dependencies
@@ -28,13 +28,13 @@ jobs:
2828
needs: linting
2929
runs-on: ubuntu-latest
3030
strategy:
31-
max-parallel: 6
31+
max-parallel: 7
3232
matrix:
33-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
33+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v6
3636
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v5
37+
uses: actions/setup-python@v6
3838
with:
3939
python-version: ${{ matrix.python-version }}
4040
- name: Install dependencies
@@ -48,11 +48,11 @@ jobs:
4848
needs: linting
4949
runs-on: ubuntu-latest
5050
steps:
51-
- uses: actions/checkout@v4
51+
- uses: actions/checkout@v6
5252
- name: Set Python environment
53-
uses: actions/setup-python@v5
53+
uses: actions/setup-python@v6
5454
with:
55-
python-version: 3.12
55+
python-version: 3.14
5656
architecture: x64
5757

5858
- name: Install dependencies
@@ -63,7 +63,7 @@ jobs:
6363
run: |
6464
python -m build . -w -n
6565
66-
- uses: actions/upload-artifact@v4
66+
- uses: actions/upload-artifact@v7
6767
with:
6868
name: wheels
6969
path: ./dist/*.whl

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ classifiers = [
1616
"Programming Language :: Python :: 3.9",
1717
"Programming Language :: Python :: 3.10",
1818
"Programming Language :: Python :: 3.11",
19-
"Programming Language :: Python :: 3.12"
19+
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3.14"
2022
]
2123
license = { file = "LICENSE"}
2224

@@ -33,5 +35,5 @@ version = { attr = "us.version.__version__" }
3335

3436
[tool.black]
3537
line-length = 120
36-
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
38+
target-version = ['py38', 'py39', 'py310', 'py311', 'py312', 'py313', 'py314']
3739
include = '\.pyi?$'

us/states.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def __str__(self) -> str:
3030
return self.name
3131

3232

33-
3433
class State:
3534
abbr: str
3635
ap_abbr: Optional[str]
@@ -639,8 +638,7 @@ def mapping(from_field: str, to_field: str, states: Optional[Iterable[State]] =
639638
"ap_abbr": None,
640639
"time_zones": ["America/Chicago"],
641640
"name_metaphone": "TKT",
642-
"counties": [
643-
],
641+
"counties": [],
644642
}
645643
)
646644

@@ -1897,7 +1895,7 @@ def mapping(from_field: str, to_field: str, states: Optional[Iterable[State]] =
18971895
"time_zones": ["America/New_York"],
18981896
"name_metaphone": "MSXSTS",
18991897
"counties": [
1900-
County(**{"fips": "25001", "ns_code": "00606927", "name": "Barnstable County"}),
1898+
County(**{"fips": "25001", "ns_code": "00606927", "name": "Barnstable County"}),
19011899
County(**{"fips": "25003", "ns_code": "00606928", "name": "Berkshire County"}),
19021900
County(**{"fips": "25005", "ns_code": "00606929", "name": "Bristol County"}),
19031901
County(**{"fips": "25007", "ns_code": "00606930", "name": "Dukes County"}),

us/tests/test_us.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import us
88

9-
109
# attribute
1110

1211

0 commit comments

Comments
 (0)