Skip to content

Commit

Permalink
Merge pull request #5 from engingem/main
Browse files Browse the repository at this point in the history
Python >=3.11 compatibility changes
  • Loading branch information
mblackgeo authored Apr 26, 2024
2 parents 1359338 + bfe703e commit f050630
Show file tree
Hide file tree
Showing 7 changed files with 384 additions and 809 deletions.
7 changes: 6 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[flake8]
max-line-length = 88
max-complexity = 10
count = True
select = E9,F63,F7,F82
show-source = True
statistics = True
exit-zero = True
exclude = tests/*
max-complexity = 10
15 changes: 10 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ on: [push, pull_request]
jobs:
lint_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install poetry
run: pip install poetry==1.1.12
run: pip install poetry==1.8.2

- name: Install code
run: poetry install
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ lint: ## Run linting checks with flake8 and black
format: ## Run black to format the code
poetry run black .

test-release: ## Build the package and releast to test-PyPI
test-release: ## Build the package and release to test-PyPI
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish --build -r testpypi

release: ## Build the package and release to PyPI
poetry publish
poetry publish
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ The Makefile includes helpful commands setting a development environment, get st

## TODO

- [ ] Github actions pipeline runs on a matrix of python versions
- [x] Github actions pipeline runs on a matrix of python versions
- [ ] Documentation (e.g. mkdocs, read-the-docs w/ sphinx or similar)
- [ ] Tooling for managing versioning/releasing (e.g. bump2version)
- [x] Makefile commands for releasing to (test) pypi
- [ ] Support geodesic distance calculation
- [ ] Performance improvements
- [ ] Performance improvements
Loading

0 comments on commit f050630

Please sign in to comment.