From 19f77bd114bf12f35e40b75b4369ca55d702a40c Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 28 Jun 2022 17:56:05 +0300 Subject: [PATCH] Added setup.cfg file --- LICENSE.txt => LICENSE | 0 setup.cfg | 46 +++++++++++++++++++++++++++++++++++++ setup.py | 46 ++----------------------------------- slackbuild/slpkg.SlackBuild | 2 +- 4 files changed, 49 insertions(+), 45 deletions(-) rename LICENSE.txt => LICENSE (100%) create mode 100644 setup.cfg diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..abbd2370 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,46 @@ +[metadata] +name = slpkg +version = 4.1.3 +license_file = LICENSE +author = Dimitris Zlatanidis +author_email = d.zlatanidis@gmail.com +description = Packaging tool that interacts with the SBo repository +long_description = file:README.rst +url = https://dslackw.gitlab.io/slpkg/ +project_urls = + Source = https://dslackw.gitlab.io/slpkg/ + Documentation = https://dslackw.gitlab.io/slpkg/ +classifiers = + License :: OSI Approved :: MIT License + Natural Language :: English + Operating System :: POSIX + Operating System :: POSIX :: Linux + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Programming Language :: Unix Shell + Topic :: Utilities + Topic :: Software Development :: Build Tools + Topic :: System :: Archiving :: Packaging + Topic :: System :: Software Distribution + Topic :: System :: Installation/Setup + Topic :: System :: Systems Administration + Topic :: System :: Software Distribution + +[options] +packages = + slpkg + slpkg.models + slpkg.views +python_requires = >=3.7 +install_requires = + SQLAlchemy >= 1.4.36 + PyYAML >= 6.0 +include_package_data = True + +[options.packages.find] +where = . diff --git a/setup.py b/setup.py index 65af2c10..0ae45559 100755 --- a/setup.py +++ b/setup.py @@ -1,47 +1,5 @@ -#!/usr/bin/python3 -# -*- coding: utf-8 -*- - - from setuptools import setup -from slpkg.version import Version -install_requires = ['SQLAlchemy>=1.4.36', - 'PyYAML>=6.0'] - - -setup( - name='slpkg', - packages=['slpkg', 'slpkg/models', 'slpkg/views'], - scripts=['bin/slpkg'], - version=Version.version, - description='Packaging tool that interacts with the SBo repository', - long_description=open('README.rst').read(), - keywords=['slackware', 'slpkg', 'update', 'build', 'install', 'remove', - 'slackpkg', 'tool'], - author='dslackw', - url='https://dslackw.gitlab.io/slpkg/', - package_data={'': ['LICENSE.txt', 'README.rst', 'ChangeLog.txt']}, - data_files=[('/etc/slpkg', ['configs/slpkg.yaml']), - ('/etc/slpkg', ['configs/blacklist.yaml']), - ('/var/lib/slpkg/database', []), - ('/var/lib/slpkg/repository', [])], - install_requires=install_requires, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'License :: OSI Approved :: MIT License', - 'Operating System :: POSIX :: Linux', - 'Operating System :: Unix', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Unix Shell', - 'Topic :: Software Development :: Build Tools', - 'Topic :: System :: Archiving :: Packaging', - 'Topic :: System :: Software Distribution', - 'Topic :: System :: Installation/Setup', - 'Topic :: System :: Systems Administration', - 'Topic :: System :: Software Distribution', - 'Topic :: Utilities'], - python_requires='>=3.9' -) +if __name__ == '__main__': + setup() diff --git a/slackbuild/slpkg.SlackBuild b/slackbuild/slpkg.SlackBuild index 2a5e3dbb..50714a1b 100755 --- a/slackbuild/slpkg.SlackBuild +++ b/slackbuild/slpkg.SlackBuild @@ -108,7 +108,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.rst ChangeLog.txt LICENSE.txt requirements.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.rst ChangeLog.txt LICENSE requirements.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install