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 tag x.x.x
$ git push --tags $ 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: Then run the release process:
.. code-block:: bash .. code-block:: bash

View File

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

View File

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

View File

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

View File

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

View File

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

10
tox.ini
View File

@ -18,7 +18,7 @@ deps =
pytest-cov pytest-cov
pytest-mock pytest-mock
commands = 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] [testenv:lint]
description = lint the source description = lint the source
@ -26,7 +26,7 @@ skipdist = True
deps = deps =
flake8 flake8
commands = commands =
flake8 {posargs} merkle-tree-stream/ test/ flake8 {posargs} merkle_tree_stream/ test/
[testenv:sort] [testenv:sort]
description = sort the source description = sort the source
@ -34,7 +34,7 @@ skipdist = True
deps = deps =
isort isort
commands = 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] [testenv:format]
description = format the source description = format the source
@ -43,7 +43,7 @@ basepython = python3.6
deps = deps =
black black
commands = commands =
black {posargs:--check} merkle-tree-stream/ test/ black {posargs:--check} merkle_tree_stream/ test/
[testenv:type] [testenv:type]
description = type check the source description = type check the source
@ -52,7 +52,7 @@ skipdist = True
deps = deps =
mypy mypy
commands = commands =
mypy merkle-tree-stream/ test/ mypy merkle_tree_stream/ test/
[testenv:docs] [testenv:docs]
description = build the documentation description = build the documentation