define project via pyproject.toml, removing setup.py; + fixes => cybertools.text tests OK
This commit is contained in:
		
							parent
							
								
									6f86e74feb
								
							
						
					
					
						commit
						06682d2a5c
					
				
					 4 changed files with 36 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										31
									
								
								pyproject.toml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								pyproject.toml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1,3 +0,0 @@
 | 
			
		|||
[egg_info]
 | 
			
		||||
tag_build = dev
 | 
			
		||||
tag_svn_revision = true
 | 
			
		||||
							
								
								
									
										33
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										33
									
								
								setup.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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: -*-
 | 
			
		||||
      """,
 | 
			
		||||
      )
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue