2021-05-19 18:07:42 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from setuptools import find_packages
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
|
2022-04-27 17:12:00 +02:00
|
|
|
extras_require={
|
|
|
|
'dev': [
|
|
|
|
'pytest',
|
|
|
|
'mocker',
|
|
|
|
'pytest-mock',
|
|
|
|
'pylint',
|
|
|
|
],
|
|
|
|
'config': [
|
|
|
|
'argcomplete',
|
|
|
|
'keyring',
|
|
|
|
'systemd-python',
|
|
|
|
],
|
|
|
|
'ldap': [
|
|
|
|
'python-ldap',
|
|
|
|
'python-dateutil',
|
|
|
|
'pytz',
|
|
|
|
],
|
|
|
|
'email': [
|
|
|
|
'mako',
|
|
|
|
],
|
|
|
|
'pgsql': [
|
|
|
|
'psycopg2',
|
|
|
|
],
|
|
|
|
'oracle': [
|
|
|
|
'cx_Oracle',
|
|
|
|
],
|
|
|
|
'mysql': [
|
|
|
|
'mysqlclient',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
install_requires = ['progressbar']
|
|
|
|
for extra, deps in extras_require.items():
|
|
|
|
if extra != 'dev':
|
|
|
|
install_requires.extend(deps)
|
|
|
|
|
|
|
|
version = '0.1'
|
2021-05-19 18:07:42 +02:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name="mylib",
|
2022-04-27 17:12:00 +02:00
|
|
|
version=version,
|
|
|
|
description='A set of helpers small libs to make common tasks easier in my script development',
|
2021-05-19 18:07:42 +02:00
|
|
|
classifiers=[
|
|
|
|
'Programming Language :: Python',
|
|
|
|
],
|
2022-04-27 17:12:00 +02:00
|
|
|
install_requires=install_requires,
|
|
|
|
extras_require=extras_require,
|
2021-05-19 18:07:42 +02:00
|
|
|
author='Benjamin Renard',
|
|
|
|
author_email='brenard@zionetrix.net',
|
|
|
|
url='https://gogs.zionetrix.net/bn8/python-mylib',
|
|
|
|
packages=find_packages(),
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
|
|
|
'mylib-test-email = mylib.scripts.email_test:main',
|
2022-01-19 17:31:40 +01:00
|
|
|
'mylib-test-email-with-config = mylib.scripts.email_test_with_config:main',
|
2021-05-19 18:07:42 +02:00
|
|
|
'mylib-test-pbar = mylib.scripts.pbar_test:main',
|
|
|
|
'mylib-test-report = mylib.scripts.report_test:main',
|
|
|
|
'mylib-test-ldap = mylib.scripts.ldap_test:main',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
)
|