Fix naming hyphenation from boilerplate

This commit is contained in:
Luke Murphy 2019-07-08 13:04:00 +02:00
parent c3e75cad74
commit 4d9e548945
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
7 changed files with 11 additions and 17 deletions

View File

@ -53,12 +53,6 @@ Make a new release tag:
$ git tag x.x.x
$ git push --tags
If you have a development install locally, you can verify:
.. code-block:: bash
$ merkle-tree-stream --version
Then run the release process:
.. code-block:: bash

View File

@ -1,8 +1,8 @@
.. _header:
************************
******************
merkle-tree-stream
************************
******************
.. image:: https://img.shields.io/badge/license-MIT-brightgreen.svg
:target: LICENSE

View File

@ -7,6 +7,6 @@ except ImportError:
try:
__version__ = pkg_resources.get_distribution('merkle-tree-stream').version
__version__ = pkg_resources.get_distribution('merkle_tree_stream').version
except Exception:
__version__ = 'unknown'

View File

@ -16,7 +16,7 @@ include = '\.pyi?$'
directory = "changelog/"
filename = "CHANGELOG.rst"
package = "merkle-tree-stream"
package_dir = "merkle-tree-stream"
package_dir = "merkle_tree_stream"
[[tool.towncrier.type]]
directory = "removal"

View File

@ -5,7 +5,7 @@ testpaths = test
max-line-length = 80
[isort]
known_first_party = merkle-tree-stream
known_first_party = merkle_tree_stream
known_third_party = pytest
line_length = 80
multi_line_output = 3

View File

@ -4,6 +4,6 @@
def test_version_fails_gracefully(mocker):
target = 'pkg_resources.get_distribution'
with mocker.patch(target, side_effect=Exception()):
from merkle-tree-stream.__init__ import __version__
from merkle_tree_stream.__init__ import __version__
assert __version__ == 'unknown'

10
tox.ini
View File

@ -18,7 +18,7 @@ deps =
pytest-cov
pytest-mock
commands =
pytest test/ --cov={toxinidir}/merkle-tree-stream/ --no-cov-on-fail {posargs}
pytest test/ --cov={toxinidir}/merkle_tree_stream/ --no-cov-on-fail {posargs}
[testenv:lint]
description = lint the source
@ -26,7 +26,7 @@ skipdist = True
deps =
flake8
commands =
flake8 {posargs} merkle-tree-stream/ test/
flake8 {posargs} merkle_tree_stream/ test/
[testenv:sort]
description = sort the source
@ -34,7 +34,7 @@ skipdist = True
deps =
isort
commands =
isort {posargs:-rc -c} -sp setup.cfg merkle-tree-stream/ test/
isort {posargs:-rc -c} -sp setup.cfg merkle_tree_stream/ test/
[testenv:format]
description = format the source
@ -43,7 +43,7 @@ basepython = python3.6
deps =
black
commands =
black {posargs:--check} merkle-tree-stream/ test/
black {posargs:--check} merkle_tree_stream/ test/
[testenv:type]
description = type check the source
@ -52,7 +52,7 @@ skipdist = True
deps =
mypy
commands =
mypy merkle-tree-stream/ test/
mypy merkle_tree_stream/ test/
[testenv:docs]
description = build the documentation