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
22 changes: 11 additions & 11 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set Python environment
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
architecture: x64

- name: Install dependencies
Expand All @@ -28,13 +28,13 @@ jobs:
needs: linting
runs-on: ubuntu-latest
strategy:
max-parallel: 6
max-parallel: 7
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -48,11 +48,11 @@ jobs:
needs: linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set Python environment
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
architecture: x64

- name: Install dependencies
Expand All @@ -63,7 +63,7 @@ jobs:
run: |
python -m build . -w -n

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: wheels
path: ./dist/*.whl
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14"
]
license = { file = "LICENSE"}

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

[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
target-version = ['py38', 'py39', 'py310', 'py311', 'py312', 'py313', 'py314']
include = '\.pyi?$'
6 changes: 2 additions & 4 deletions us/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def __str__(self) -> str:
return self.name



class State:
abbr: str
ap_abbr: Optional[str]
Expand Down Expand Up @@ -639,8 +638,7 @@ def mapping(from_field: str, to_field: str, states: Optional[Iterable[State]] =
"ap_abbr": None,
"time_zones": ["America/Chicago"],
"name_metaphone": "TKT",
"counties": [
],
"counties": [],
}
)

Expand Down Expand Up @@ -1897,7 +1895,7 @@ def mapping(from_field: str, to_field: str, states: Optional[Iterable[State]] =
"time_zones": ["America/New_York"],
"name_metaphone": "MSXSTS",
"counties": [
County(**{"fips": "25001", "ns_code": "00606927", "name": "Barnstable County"}),
County(**{"fips": "25001", "ns_code": "00606927", "name": "Barnstable County"}),
County(**{"fips": "25003", "ns_code": "00606928", "name": "Berkshire County"}),
County(**{"fips": "25005", "ns_code": "00606929", "name": "Bristol County"}),
County(**{"fips": "25007", "ns_code": "00606930", "name": "Dukes County"}),
Expand Down
1 change: 0 additions & 1 deletion us/tests/test_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import us


# attribute


Expand Down