diff --git a/CHANGES.txt b/CHANGES.txt new file mode 100644 index 0000000..8ff50b7 --- /dev/null +++ b/CHANGES.txt @@ -0,0 +1,7 @@ +Changelog +========= + +3.0.1 (unreleased) +------------------ + +- Package created (2025-08-19) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt new file mode 100644 index 0000000..149473f --- /dev/null +++ b/CONTRIBUTORS.txt @@ -0,0 +1 @@ +- Helmut Merz, Original Author diff --git a/README.md b/README.md new file mode 100644 index 0000000..1b4028a --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# py-scopes-ext + +Extensions for the `py-scopes` package. + +Sub-packages +: office: working with LibreOffice files + +Status: implementation started + +Project website: https://www.cyberconcepts.org + +License: MIT, see LICENSE file + diff --git a/runtests.sh b/runtests.sh new file mode 100755 index 0000000..6e514f2 --- /dev/null +++ b/runtests.sh @@ -0,0 +1,5 @@ +# runtests.sh +# run all unit / doc tests + +zope-testrunner --test-path=. $* + diff --git a/scopes/office/tests/__init__.py b/scopes/office/tests/__init__.py new file mode 100644 index 0000000..9d193e4 --- /dev/null +++ b/scopes/office/tests/__init__.py @@ -0,0 +1 @@ +# py-scopes-ext/office/tests diff --git a/scopes/office/tests/config.py b/scopes/office/tests/config.py new file mode 100644 index 0000000..2ef3085 --- /dev/null +++ b/scopes/office/tests/config.py @@ -0,0 +1,26 @@ +# py-scopes-ext/scopes/office/tests/config.py + +import logging +from os import getenv +import sys + +log_file = 'scopes/office/tests/log/scopes-test.log' +log_level = logging.INFO +log_format = '%(asctime)s %(levelname)s %(name)s %(message)s' +log_dateformat = '%Y-%m-%dT%H:%M:%S' + +def setup_logging(): + hdlr = logging.getLogger().handlers[-1] + logging.getLogger().removeHandler(hdlr) # remove NullHandler added by testrunner + logging.basicConfig(filename=log_file, level=log_level, + format=log_format, datefmt=log_dateformat) + +setup_logging() + +# SQLite +dbengine = 'sqlite' +dbname = 'scopes/office/tests/var/test.db' +dbuser = None +dbpassword = None +dbschema = None + diff --git a/scopes/office/tests/test_office.py b/scopes/office/tests/test_office.py new file mode 100644 index 0000000..66d468b --- /dev/null +++ b/scopes/office/tests/test_office.py @@ -0,0 +1,18 @@ +# scopes.office.tests.test_office + +"""Tests for the 'scopes.office' package.""" + +import os, sys +sys.path = [os.path.dirname(__file__)] + sys.path + +import unittest + +from scopes.storage.common import StorageFactory +import config +config.storageFactory = StorageFactory(config) + + +class Test(unittest.TestCase): + + def test_001_basic(self): + pass