Skip to content

Commit

Permalink
Remove Python 2.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Oct 1, 2022
1 parent 6a322e2 commit c0dd534
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 119 deletions.
3 changes: 1 addition & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ disable=consider-using-f-string,
too-few-public-methods,
too-many-lines,
too-many-public-methods,
unidiomatic-typecheck,
useless-object-inheritance
unidiomatic-typecheck


[REPORTS]
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
- "2.7"
- "3.6"
- "pypy3.5"
script:
Expand Down
16 changes: 4 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
all: test lint coverage build docs
all: test lint coverage docs build

test: test2 test3

test2: test.py pygtrie.py
python2 $<
python2 -m doctest pygtrie.py

test3: test.py pygtrie.py
test: test.py pygtrie.py
python3 -X dev $<
python3 -X dev -m doctest pygtrie.py

Expand All @@ -15,14 +9,12 @@ lint: .pylintrc pygtrie.py test.py example.py
"$$lint" --rcfile $^

coverage: test.py pygtrie.py
cov=$$(which python3-coverage 2>/dev/null) || \
cov=$$(which python-coverage) && \
"$$cov" run $< && "$$cov" report -m
python3-coverage run $< && python3-coverage report -m

build:
python3 -m build -swn

docs:
python3 setup.py build_doc

.PHONY: all test test2 test3 lint coverage build docs
.PHONY: all test lint coverage build docs
Loading

0 comments on commit c0dd534

Please sign in to comment.