Compare commits

...

6 Commits

Author SHA1 Message Date
Luke Murphy
bf54dfa4cd
Fix up README example 2020-08-05 08:19:41 +02:00
Luke Murphy
c06fde788d
Small case it
[ci skip]
2020-07-07 15:56:01 +02:00
Luke Murphy
2e20fc2d76
Remove reference to missing file 2020-07-07 15:39:02 +02:00
Luke Murphy
1692f25a47
Remove old test 2020-07-07 15:23:44 +02:00
Luke Murphy
1cfa029e4c
Clarify version fumbling 2020-07-07 15:18:58 +02:00
Luke Murphy
fcebc48915
Simplify change log 2020-07-07 15:16:19 +02:00
4 changed files with 27 additions and 45 deletions

@ -1,56 +1,39 @@
# flat-tree 0.0.1a9 (UNRELEASED)
- Simplify CHANGELOG format
# flat-tree 0.0.1a8 (2020-07-07)
## Trivial/Internal Changes
- Use colours in the README for more happiness
# flat-tree 0.0.1a7 (2020-07-07)
## Improved Documentation
- Made README clearer and added example
# flat-tree 0.0.1a7 (UNRELEASED)
- **Experimenting with publishing and missed this release number**
# flat-tree 0.0.1a6 (2020-07-07)
## Trivial/Internal Changes
- Merge all tool configuration into the pyproject.toml
## Removals
- Removed RTD documentation
## Trivial/Internal Changes
- Follow the Hypercore protocol renaming situation.
- Migrate to git.autonomic.zone
- Merge all tool configuration into the pyproject.toml
- Migrate CI to drone.autonomic.zone
- Migrate to git.autonomic.zone
- Reduce package boilerplate
- Removed RTD documentation
# flat-tree 0.0.1a5 (2019-11-03)
## Trivial/Internal Changes
- Fixed documentation build errors.
- Fixed changelog entry date and version.
- Fixed documentation build errors.
# flat-tree 0.0.1a4 (2019-11-03)
## Improved Documentation
- Use the sphinx_rtd_theme.
- Attempt to clarify sections using better navigation.
- Use the sphinx_rtd_theme.
# flat-tree 0.0.1a3 (2019-07-01)
## Removals
- Don't advertise Python 3.5 which is not supported.
# flat-tree 0.0.1a2 (2019-07-01)
## Project Announcements
- The first alpha development release is made!

@ -21,10 +21,19 @@ $ pip install flat-tree
## Example
```python
from flat_tree.accessor import FlatTreeIterator
from flat_tree import FlatTreeIterator
tree_iter = FlatTreeIterator()
assert tree_iter.index == 0
assert tree_iter.parent() == 1
assert tree_iter.parent() == 3
print("tree index: ", tree_iter.index)
print("tree first parent: ", tree_iter.parent())
print("tree next parent", tree_iter.parent())
```
Output:
```sh
tree index: 0
tree first parent: 1
tree next parent 3
```

@ -6,8 +6,8 @@ build-backend = "poetry.masonry.api"
name = "flat-tree"
version = "0.0.1a8"
description = "Utilities for navigating flat trees"
authors = ["Decentral1se <hi@decentral1.se>"]
maintainers = ["Decentral1se <hi@decentral1.se>"]
authors = ["decentral1se <hi@decentral1.se>"]
maintainers = ["decentral1se <hi@decentral1.se>"]
license = "GPLv3"
readme = "README.md"
repository = "https://github.com/hyperpy/flat-tree"
@ -62,7 +62,7 @@ commands = flake8 {posargs:--max-line-length 80} flat_tree/ test/
[testenv:sort]
skipdist = True
deps = isort
commands = isort {posargs:-c} -sp setup.cfg flat_tree/ test/
commands = isort {posargs:-c} flat_tree/ test/
[testenv:format]
skipdist = True

@ -1,10 +0,0 @@
"""Version test module."""
def test_version_fails_gracefully(mocker):
target = "pkg_resources.get_distribution"
mocker.patch(target, side_effect=Exception())
from flat_tree.__init__ import __version__
assert __version__ == "unknown"