diff --git a/cybertools/text/tests.py b/cybertools/text/tests.py index c11e21e..f96a338 100755 --- a/cybertools/text/tests.py +++ b/cybertools/text/tests.py @@ -3,10 +3,15 @@ """ Tests for the 'cybertools.text' package. """ +import sys +#sys.path = [p for p in sys.path if p != ''] +sys.path = sys.path[2:] +print(sys.path) import unittest, doctest import warnings from cybertools.text import pdf +from cybertools.text.html import htmlToText warnings.filterwarnings('ignore', category=ResourceWarning) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..290a4a6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,31 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "cybertools" +version = "3.0.1" +description = "cybertools: basic utilities for Zope3/bluebream/loops" +readme = "README.md" +license = {text = "MIT"} +keywords = ["cybertools"] +authors = [{name = "Helmut Merz", email = "helmutm@cy55.de"}] + +dependencies = [ + "bs4", + "lxml", + "zope.interface", + "zope.testing", +] + +[project.optional-dependencies] +test = ["pytest"] + +[tool.setuptools] +packages = ["cybertools"] + +[tool.pytest.ini_options] +addopts = "-vv" +python_files = "test_standard.py" # default: run only `standard` tests +# use .pytest.ini file with `python_files = test_*.py` to run all tests + diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 01bb954..0000000 --- a/setup.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[egg_info] -tag_build = dev -tag_svn_revision = true diff --git a/setup.py b/setup.py deleted file mode 100644 index 1827f54..0000000 --- a/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -from setuptools import setup, find_packages -import sys, os - -version = '2.3.0' - -setup(name='cybertools', - version=version, - description="cybertools: basic utilities for Zope3/bluebream/loops", - long_description="""\ -""", - classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers - keywords='', - author='cyberconcepts.org team', - author_email='team@cyberconcepts.org', - url='https://www.cyberconcepts.org', - license='GPL', - packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), - include_package_data=True, - zip_safe=False, - install_requires=[ - # -*- Extra requirements: -*- - 'lxml', - #'Pillow', - 'zope.app.catalog', - 'zope.app.file', - 'zope.app.intid', - 'zope.app.session', - 'zope.sendmail', - ], - entry_points=""" - # -*- Entry points: -*- - """, - )