Compare commits

...

8 Commits

Author SHA1 Message Date
Luke Murphy
bf54dfa4cd
Fix up README example
All checks were successful
continuous-integration/drone/push Build is passing
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
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-07 15:39:02 +02:00
Luke Murphy
1692f25a47
Remove old test
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-07 15:23:44 +02:00
Luke Murphy
1cfa029e4c
Clarify version fumbling
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-07 15:18:58 +02:00
Luke Murphy
fcebc48915
Simplify change log 2020-07-07 15:16:19 +02:00
Luke Murphy
9e15c55227
Bump to 0.0.1a8
Forgot in 6524cc675bca27dc7a79ac21534260d381ac5540.
2020-07-07 15:13:14 +02:00
Luke Murphy
6524cc675b
Use colour in README and bump once again
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-07 15:08:43 +02:00
4 changed files with 33 additions and 44 deletions

View File

@ -1,50 +1,39 @@
# flat-tree 0.0.1a8 (UNRELEASED)
# flat-tree 0.0.1a9 (UNRELEASED)
# flat-tree 0.0.1a7 (2020-07-07)
- Simplify CHANGELOG format
## Improved Documentation
# flat-tree 0.0.1a8 (2020-07-07)
- Use colours in the README for more happiness
- 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!

View File

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

View File

@ -4,10 +4,10 @@ build-backend = "poetry.masonry.api"
[tool.poetry]
name = "flat-tree"
version = "0.0.1a7"
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

View File

@ -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"