Skip to content

Commit 5061458

Browse files
authored
Merge pull request #76 from chaimleib/dev
Dev -> master (3.0.0)
2 parents 6a731f2 + 713fbed commit 5061458

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+640
-1203
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# IDE dirs
22
.idea/
33
*.komodoproject
4+
.vscode/
45

56
# Auto-generated
67
*.pyc
78
dist/
89
build/
910
.cache/
11+
.pytest_cache/
1012

1113
# generated by coverage
1214
.coverage

CHANGELOG.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Change log
22

33
## Version 3.0.0
4-
- Dropped support for Python 2.6, 3.2, and 3.3
5-
- Add support for Python 3.5 and 3.6
4+
- Breaking:
5+
- `search(begin, end, strict)` has been replaced with `at(point)`, `overlap(begin, end)`, and `envelop(begin, end)`
6+
- `extend(items)` has been deleted, use `update(items)` instead
7+
- Methods that take a `strict=True/False` argument now consistently default to `strict=True`
8+
- Dropped support for Python 2.6, 3.2, and 3.3
9+
- Add support for Python 3.5, 3.6, and 3.7
610
- Faster `Interval` overlap checking (@tuxzz, #56)
711
- Updated README:
812
- new restructuring methods from 2.1.0
@@ -13,10 +17,12 @@
1317
- `Interval.distance_to()` gave an incorrect distance when passed the `Interval`'s upper boundary
1418
- `Node.pop_greatest_child()` sometimes forgot to `rotate()` when creating new child nodes. (@escalonn, #41, #42)
1519
- `IntervalTree.begin()` and `end()` are O(1), not O(n). (@ProgVal, #40)
20+
- `intersection_update()` and `symmetric_difference()` and `symmetric_difference_update()` didn't actually work. Now they do.
21+
- `collections.abc` deprecation warning no longer happens
1622
- Maintainers:
17-
- use github.com/kennethreitz/pyandoc
23+
- PyPi accepts Markdown! Woohoo!
1824
- reorganize tests
19-
- more tests added to improve code coverage (We're at 95%! Woohoo!)
25+
- more tests added to improve code coverage (We're at 96%! Yay!)
2026
- test for issue #4 had a broken import reference
2127

2228
## Version 2.1.0

Makefile

+8-40
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TEMPS=$(shell \
99
-o \( -type d -name '__pycache__' \) \
1010
)
1111

12-
PYTHONS:=2.7.14 3.4.3 3.5.4 3.6.3
12+
PYTHONS:=2.7.15 3.4.9 3.5.6 3.6.7 3.7.1
1313
PYTHON_MAJORS:=$(shell \
1414
echo "$(PYTHONS)" | \
1515
tr ' ' '\n' | cut -d. -f1 | \
@@ -28,9 +28,9 @@ PYPI=pypitest
2828
# default target
2929
all: test
3030

31-
test: pytest rst
31+
test: pytest
3232

33-
quicktest: rst
33+
quicktest:
3434
PYPI=$(PYPI) python setup.py test
3535

3636
coverage:
@@ -43,18 +43,14 @@ pytest: deps-dev
4343

4444
clean: clean-build clean-eggs clean-temps
4545

46-
distclean: clean clean-deps
46+
distclean: clean
4747

4848
clean-build:
4949
rm -rf dist build
5050

5151
clean-eggs:
5252
rm -rf *.egg* .eggs/
5353

54-
clean-deps:
55-
rm -rf pyandoc docutils bin
56-
rm -f pandoc
57-
5854
clean-temps:
5955
rm -rf $(TEMPS)
6056

@@ -70,13 +66,8 @@ install-develop:
7066
uninstall:
7167
pip uninstall intervaltree
7268

73-
# Convert README to rst and check the result
74-
rst: pydocutils pyandoc
75-
PYPI=$(PYPI) python setup.py check --restructuredtext
76-
@echo "README is ready for PyPI"
77-
7869
# Register at PyPI
79-
register: rst
70+
register:
8071
PYPI=$(PYPI) python setup.py register -r $(PYPI)
8172

8273
# Setup for live upload
@@ -87,35 +78,17 @@ release:
8778
sdist-upload:
8879
PYPI=$(PYPI) python setup.py sdist upload -r $(PYPI)
8980

90-
deps-ci: pyandoc
91-
92-
deps-dev: pyandoc pyenv-install-versions
93-
94-
pyandoc: pandoc-bin
95-
[[ -d pyandoc/pandoc ]] || git clone --depth=50 git://github.com/kennethreitz/pyandoc.git
96-
[[ "`readlink pandoc`" == "pyandoc/pandoc" ]] || ln -s pyandoc/pandoc pandoc
81+
deps-dev: pyenv-install-versions
9782

98-
pandoc-bin: pm-update
99-
pandoc -h &>/dev/null || brew install pandoc &>/dev/null || sudo apt-get install pandoc
100-
101-
pydocutils:
102-
$(eval PYPKG=docutils)
103-
python -c 'import $(PYPKG)' &>/dev/null || \
104-
pip install --upgrade $(PYPKG) || \
105-
pip install --upgrade --install-options="--install-purelib='$(PWD)'" docutils
106-
107-
pm-update:
108-
pandoc -h &>/dev/null || brew update &>/dev/null || sudo apt-get update
109-
11083
# Uploads to test server, unless the release target was run too
11184
upload: test clean sdist-upload
11285

11386
pyenv-is-installed:
114-
pyenv --version || (echo "ERROR: pyenv not installed" && false)
87+
pyenv --version &>/dev/null || (echo "ERROR: pyenv not installed" && false)
11588

11689
pyenv-install-versions: pyenv-is-installed
11790
for pyver in $(PYTHONS); do (echo N | pyenv install $$pyver) || true; done
118-
for pyver in $(PYTHONS); do export PYENV_VERSION=$$pyver; pip install -U pip; pip install -U pytest; done
91+
for pyver in $(PYTHONS); do export PYENV_VERSION=$$pyver; pip install -U pip; pip install -U pytest; done | grep -v 'Requirement already satisfied, skipping upgrade'
11992
pyenv rehash
12093

12194
# for debugging the Makefile
@@ -136,23 +109,18 @@ env:
136109
distclean \
137110
clean-build \
138111
clean-eggs \
139-
clean-deps \
140112
clean-temps \
141113
install-testpypi \
142114
install-pypi \
143115
install-develop \
144116
pyenv-install-versions \
145117
pyenv-is-installed \
146118
uninstall \
147-
rst \
148119
register \
149120
release \
150121
sdist-upload \
151122
deps-ci \
152123
deps-dev \
153-
pyandoc \
154-
pandoc-bin \
155-
pydocutils \
156124
pm-update \
157125
upload \
158126
env

0 commit comments

Comments
 (0)