-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from FloChehab/feat/support-3.11
Support python 3.11 & update test / CI
- Loading branch information
Showing
6 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Contributing | ||
|
||
We provide a Makefile to ease with setting up a development environment. | ||
|
||
- `make init` will setup a simple python virtual env and install the package | ||
- `make test` will run the test suite with the current environment | ||
- `make test-all` will run all the tests accross different environments with `tox` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
SHELL = /bin/bash | ||
|
||
.DEFAULT_GOAL := all | ||
|
||
## help: Display list of commands | ||
.PHONY: help | ||
help: Makefile | ||
@sed -n 's|^##||p' $< | column -t -s ':' | sed -e 's|^| |' | ||
|
||
## all: Run all targets | ||
.PHONY: all | ||
all: init style test | ||
|
||
## init: Bootstrap dev env. | ||
.PHONY: init | ||
init: | ||
python3 -m venv ./venv | ||
./venv/bin/pip install -e .[tests] | ||
|
||
## test: Shortcut to launch all the test on all environments | ||
.PHONY: test | ||
test: | ||
./venv/bin/pytest | ||
|
||
## test-all: Shortcut to launch all the test on all environments | ||
.PHONY: test-all | ||
test-all: | ||
./venv/bin/tox p | ||
|
||
## clean: Remove temporary files | ||
.PHONY: clean | ||
clean: | ||
-rm -rf .mypy_cache ./**/.pytest_cache venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[tox] | ||
envlist = | ||
# pandas 2.0 doesn't support python 3.7 | ||
py37-pandas{1}-fastavro{15,16,17,1}, | ||
py{38,39,310,311}-pandas{1,2}-fastavro{15,16,17,1}, | ||
|
||
[gh-actions] | ||
python = | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 | ||
|
||
[testenv] | ||
deps = | ||
pytest | ||
pandas1: pandas >=1.1, <2 | ||
pandas2: pandas >=2.0.0, <3.0.0 | ||
fastavro15: fastavro >=1.5.1, <1.6.0 | ||
fastavro16: fastavro >=1.6.0, <1.7.0 | ||
fastavro17: fastavro >=1.7.0, <1.8.0 | ||
fastavro1: fastavro >=1.7.0, <2.0.0 | ||
commands = pytest |