diff options
-rw-r--r-- | hazwaz/__init__.py | 1 | ||||
-rw-r--r-- | hazwaz/command.py | 3 | ||||
-rwxr-xr-x | run_coverage | 4 | ||||
-rwxr-xr-x | run_qa | 3 | ||||
-rwxr-xr-x | run_tests | 4 | ||||
-rw-r--r-- | setup.py | 44 | ||||
-rw-r--r-- | tests/test_command.py | 11 |
7 files changed, 70 insertions, 0 deletions
diff --git a/hazwaz/__init__.py b/hazwaz/__init__.py new file mode 100644 index 0000000..8b85231 --- /dev/null +++ b/hazwaz/__init__.py @@ -0,0 +1 @@ +from .command import * diff --git a/hazwaz/command.py b/hazwaz/command.py new file mode 100644 index 0000000..eea436a --- /dev/null +++ b/hazwaz/command.py @@ -0,0 +1,3 @@ +import logging + +logger = logging.getLogger(__name__) diff --git a/run_coverage b/run_coverage new file mode 100755 index 0000000..77765e0 --- /dev/null +++ b/run_coverage @@ -0,0 +1,4 @@ +#!/bin/sh + +nosetests3 --with-coverage --cover-erase --cover-package=hazwaz +#nose2-3 --with-coverage --coverage-report=term --log-level=ERROR -B --log-capture @@ -0,0 +1,3 @@ +#!/bin/sh + +flake8 --select=E,F,W,C90,E123 --ignore=W503 . diff --git a/run_tests b/run_tests new file mode 100755 index 0000000..b4f44f1 --- /dev/null +++ b/run_tests @@ -0,0 +1,4 @@ +#!/bin/sh + +nosetests3 +#nose2-3 --log-level=ERROR -B --log-capture diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..ca1e3a1 --- /dev/null +++ b/setup.py @@ -0,0 +1,44 @@ +from setuptools import setup, find_packages + +try: + with open("README.rst", 'r') as fp: + long_description = fp.read() +except IOError: + print("Could not read README.rst, long_description will be empty.") + long_description = "" + +setup( + name='hazwaz', + version='0.0.1', + packages=find_packages(), + test_suite='tests', + install_requires=[], + python_requires='>=3', + # Metadata + author="Elena ``of Valhalla'' Grandi", + author_email='valhalla@trueelena.org', + description='write command line scripts', + long_description=long_description, + long_description_content_type='text/x-rst', + license='AGPLv3+', + keywords='cli', + url='https://hazwaz.trueelena.org/', + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', # noqa: E501 + 'Operating System :: POSIX', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Software Development :: User Interfaces', + ], + project_urls={ + 'Source': '', + 'Documentation': '', + 'Tracker': '', + 'Mailing lists': '', + }, +) diff --git a/tests/test_command.py b/tests/test_command.py new file mode 100644 index 0000000..f5b824c --- /dev/null +++ b/tests/test_command.py @@ -0,0 +1,11 @@ +import unittest + +from hazwaz import command + + +class testCommand(unittest.TestCase): + pass + + +if __name__ == '__main__': + unittest.main() |