diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 16fb905..0000000 --- a/setup.cfg +++ /dev/null @@ -1,16 +0,0 @@ -[pep8] -exclude = .ropeproject/* - -[flake8] -exclude = .ropeproject/* - -[coverage:run] -source = gvacommon -branch = True - -[coverage:report] -omit = gvacommon/tests/* -show_missing = True - -[coverage:html] -directory = coverage-report diff --git a/setup.py b/setup.py deleted file mode 100644 index 8b04a56..0000000 --- a/setup.py +++ /dev/null @@ -1,57 +0,0 @@ -# -# gvacommon - common parts of gnuviechadmin -# Copyright (C) 2016-2020 Jan Dittberner -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -from setuptools import setup, find_packages - -from gvacommon import __version__ as version - -with open('README.rst') as readme_file: - readme = readme_file.read() - -readme += """ -license -------- -""" - -with open('COPYING') as license_file: - readme += license_file.read() - -setup( - name='gvacommon', - version=version, - description='common utility code for gnuviechadmin applications', - long_description=readme, - classifiers=[ - 'Development Status :: 4 - Beta', - 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', - 'Programming Language :: Python 3', - 'Programming Language :: Python 3.7', - 'Intended Audience :: Developers', - ], - keywords='gnuviechadmin', - url='https://git.dittberner.info/gnuviech/gvacommon/', - author='Jan Dittberner', - author_email='jan@dittberner.info', - license='AGPLv3+', - packages=find_packages(), - test_suite='gvacommon.tests', - install_requires=[ - 'Django', - ], - include_package_data=True, - zip_safe=False -) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..638d3ef --- /dev/null +++ b/tox.ini @@ -0,0 +1,13 @@ +[tox] +env_list = + py310 +minversion = 4.6.4 + +[testenv] +description = run the tests with pytest +package = wheel +wheel_build_env = .pkg +deps = + pytest>=6 +commands = + pytest {tty:--color=yes} {posargs}