Files
news-updater/setup.py
David Runge 8abcb143ab Exclude tests from being installed
setup.py:
Add the `exclude` parameter to `find_packages()` to exclude the `tests/`
directory and its subdirectories.
The `tests/` directory would otherwise be installed top-level to site-packages
and conflict with other packages with the same defect.

Fixes #30

Signed-off-by: David Runge <dave@sleepmap.de>
2020-12-09 21:07:42 +01:00

46 lines
1.4 KiB
Python

from platform import python_version
from sys import exit, version_info
from setuptools import setup, find_packages
if version_info < (3, 5):
print('Error: Python 3.5 required but found %s' % python_version())
exit(1)
with open('README.rst', 'r') as infile:
long_description = infile.read()
with open('nextcloud_news_updater/version.txt', 'r') as infile:
version = ''.join(infile.read().split())
setup(
name='nextcloud_news_updater',
version=version,
description='Nextcloud News updater - Fast updates for your RSS/Atom '
'feeds',
long_description=long_description,
author='Bernhard Posselt',
author_email='dev@bernhard-posselt.com',
url='https://github.com/nextcloud/news-updater',
packages=find_packages(
exclude=['tests', 'tests.*'],
),
include_package_data=True,
license='GPL',
keywords=['nextcloud', 'news', 'updater', 'RSS', 'Atom', 'feed', 'reader'],
install_requires=[],
classifiers=[
'Intended Audience :: System Administrators',
'Environment :: Console',
'License :: OSI Approved :: GNU General Public License v3 or later ('
'GPLv3+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Utilities'
],
entry_points={
'console_scripts': [
'nextcloud-news-updater = nextcloud_news_updater.__main__:main'
]
}
)