From 0582101ca0e07f5f9b62e2cc0be405f8e4bc2d7c Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 22 Feb 2022 16:14:26 +0100 Subject: Skeleton of a project --- hazwaz/__init__.py | 1 + hazwaz/command.py | 3 +++ run_coverage | 4 ++++ run_qa | 3 +++ run_tests | 4 ++++ setup.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ tests/test_command.py | 11 +++++++++++ 7 files changed, 70 insertions(+) create mode 100644 hazwaz/__init__.py create mode 100644 hazwaz/command.py create mode 100755 run_coverage create mode 100755 run_qa create mode 100755 run_tests create mode 100644 setup.py create mode 100644 tests/test_command.py 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 diff --git a/run_qa b/run_qa new file mode 100755 index 0000000..f9f643f --- /dev/null +++ b/run_qa @@ -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() -- cgit v1.2.3