Skip to content

Commit

Permalink
Merge pull request #165 from developmentseed/patch/python312-and-flit…
Browse files Browse the repository at this point in the history
…backend

add python 3.12 in ci and switch to flit-core
  • Loading branch information
vincentsarago authored Aug 29, 2024
2 parents 4c85ed5 + 25ff80d commit 38ac161
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 15 deletions.
9 changes: 0 additions & 9 deletions .bumpversion.cfg

This file was deleted.

13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,24 @@ on:
- '*'
pull_request:
env:
LATEST_PY_VERSION: '3.10'
LATEST_PY_VERSION: '3.12'

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

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`

## [1.1.1] - 2024-08-29

* add python 3.12 support
* switch to `flit-core` for packaging build backend

## [1.1.0] - 2024-05-10

### Added
Expand Down
23 changes: 21 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: GIS",
"Typing :: Typed",
]
Expand All @@ -24,7 +25,10 @@ dependencies = ["pydantic~=2.0"]

[project.optional-dependencies]
test = ["pytest", "pytest-cov", "shapely"]
dev = ["pre-commit"]
dev = [
"pre-commit",
"bump-my-version",
]
docs = [
"mkdocs",
"mkdocs-material",
Expand All @@ -35,7 +39,7 @@ docs = [
Source = "https://github.com/developmentseed/geojson-pydantic"

[build-system]
requires = ["flit>=3.2,<4"]
requires = ["flit_core>=3.2,<4"]
build-backend = "flit_core.buildapi"

[tool.flit.module]
Expand Down Expand Up @@ -94,3 +98,18 @@ ignore = [

[tool.ruff.per-file-ignores]
"tests/*.py" = ["D1"]

[tool.bumpversion]
current_version = "1.1.0"

search = "{current_version}"
replace = "{new_version}"
regex = false
tag = true
commit = true
tag_name = "{new_version}"

[[tool.bumpversion.files]]
filename = "geojson_pydantic/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'

0 comments on commit 38ac161

Please sign in to comment.