Added setup.cfg file

This commit is contained in:
Dimitris Zlatanidis 2022-06-28 17:56:05 +03:00
parent 321eb7e102
commit 19f77bd114
4 changed files with 49 additions and 45 deletions

46
setup.cfg Normal file
View file

@ -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 = .

View file

@ -1,47 +1,5 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from setuptools import setup from setuptools import setup
from slpkg.version import Version
install_requires = ['SQLAlchemy>=1.4.36', if __name__ == '__main__':
'PyYAML>=6.0'] setup()
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'
)

View file

@ -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 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 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install