1
0
mirror of https://github.com/enpaul/glassy.git synced 2024-11-21 22:16:56 +00:00

Restructure package for directory module structure

This commit is contained in:
Ethan Paul 2022-05-30 23:02:46 -04:00
parent 63a6421220
commit 92429781f5
Signed by: enpaul
GPG Key ID: 07F53B438281D181
7 changed files with 13 additions and 13 deletions

0
glassy/__init__.py Normal file
View File

0
glassy/__main__.py Normal file
View File

0
glassy/py.typed Normal file
View File

View File

@ -6,7 +6,7 @@ authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
description = "ASCII network status map generator"
repository = "https://github.com/enpaul/glassy/"
packages = [
{include = "glassy.py"},
{include = "glassy/py.typed"},
{include = "tests/*.py", format = "sdist"}
]
keywords = ["terminal", "ascii", "network", "monitoring", "dashboard"]

View File

@ -7,7 +7,7 @@ from pathlib import Path
import toml
import glassy
from glassy import __about__
def test_metadata():
@ -16,14 +16,14 @@ def test_metadata():
with (Path(__file__).resolve().parent / ".." / "pyproject.toml").open() as infile:
pyproject = toml.load(infile, _dict=dict)
assert pyproject["tool"]["poetry"]["name"] == glassy.__title__
assert pyproject["tool"]["poetry"]["version"] == glassy.__version__
assert pyproject["tool"]["poetry"]["license"] == glassy.__license__
assert pyproject["tool"]["poetry"]["description"] == glassy.__summary__
assert pyproject["tool"]["poetry"]["repository"] == glassy.__url__
assert pyproject["tool"]["poetry"]["name"] == __about__.__title__
assert pyproject["tool"]["poetry"]["version"] == __about__.__version__
assert pyproject["tool"]["poetry"]["license"] == __about__.__license__
assert pyproject["tool"]["poetry"]["description"] == __about__.__summary__
assert pyproject["tool"]["poetry"]["repository"] == __about__.__url__
assert (
all(
item in glassy.__authors__
item in __about__.__authors__
for item in pyproject["tool"]["poetry"]["authors"]
)
is True
@ -31,7 +31,7 @@ def test_metadata():
assert (
all(
item in pyproject["tool"]["poetry"]["authors"]
for item in glassy.__authors__
for item in __about__.__authors__
)
is True
)

View File

@ -13,7 +13,7 @@ locked_deps =
toml
commands =
pytest {toxinidir}/tests/ \
--cov glassy \
--cov {toxinidir}/glassy \
--cov-config {toxinidir}/.coveragerc \
--cov-report term-missing
@ -36,9 +36,9 @@ locked_deps =
commands =
pre-commit run \
--all-files
pylint {toxinidir}/glassy.py \
pylint {toxinidir}/glassy/ \
--rcfile {toxinidir}/.pylintrc
mypy {toxinidir}/glassy.py \
mypy {toxinidir}/glassy/ \
--ignore-missing-imports \
--no-strict-optional
@ -70,7 +70,7 @@ locked_deps =
safety
poetry
commands =
bandit {toxinidir}/glassy.py \
bandit {toxinidir}/glassy/ \
--recursive \
--quiet
bandit {toxinidir}/tests/ \