Skip to content

Commit 38ac161

Browse files
Merge pull request #165 from developmentseed/patch/python312-and-flitbackend
add python 3.12 in ci and switch to flit-core
2 parents 4c85ed5 + 25ff80d commit 38ac161

File tree

4 files changed

+35
-15
lines changed

4 files changed

+35
-15
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,24 @@ on:
88
- '*'
99
pull_request:
1010
env:
11-
LATEST_PY_VERSION: '3.10'
11+
LATEST_PY_VERSION: '3.12'
1212

1313
jobs:
1414
tests:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.8', '3.9', '3.10', '3.11']
18+
python-version:
19+
- '3.8'
20+
- '3.9'
21+
- '3.10'
22+
- '3.11'
23+
- '3.12'
1924

2025
steps:
21-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2227
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2429
with:
2530
python-version: ${{ matrix.python-version }}
2631

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
66

77
Note: Minor version `0.X.0` update might break the API, It's recommended to pin geojson-pydantic to minor version: `geojson-pydantic>=0.6,<0.7`
88

9+
## [1.1.1] - 2024-08-29
10+
11+
* add python 3.12 support
12+
* switch to `flit-core` for packaging build backend
13+
914
## [1.1.0] - 2024-05-10
1015

1116
### Added

pyproject.toml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ 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",
1920
"Topic :: Scientific/Engineering :: GIS",
2021
"Typing :: Typed",
2122
]
@@ -24,7 +25,10 @@ dependencies = ["pydantic~=2.0"]
2425

2526
[project.optional-dependencies]
2627
test = ["pytest", "pytest-cov", "shapely"]
27-
dev = ["pre-commit"]
28+
dev = [
29+
"pre-commit",
30+
"bump-my-version",
31+
]
2832
docs = [
2933
"mkdocs",
3034
"mkdocs-material",
@@ -35,7 +39,7 @@ docs = [
3539
Source = "https://github.com/developmentseed/geojson-pydantic"
3640

3741
[build-system]
38-
requires = ["flit>=3.2,<4"]
42+
requires = ["flit_core>=3.2,<4"]
3943
build-backend = "flit_core.buildapi"
4044

4145
[tool.flit.module]
@@ -94,3 +98,18 @@ ignore = [
9498

9599
[tool.ruff.per-file-ignores]
96100
"tests/*.py" = ["D1"]
101+
102+
[tool.bumpversion]
103+
current_version = "1.1.0"
104+
105+
search = "{current_version}"
106+
replace = "{new_version}"
107+
regex = false
108+
tag = true
109+
commit = true
110+
tag_name = "{new_version}"
111+
112+
[[tool.bumpversion.files]]
113+
filename = "geojson_pydantic/__init__.py"
114+
search = '__version__ = "{current_version}"'
115+
replace = '__version__ = "{new_version}"'

0 commit comments

Comments
 (0)