2021-05-19 18:07:42 +02:00
|
|
|
#!/usr/bin/env python
|
2023-01-16 12:56:12 +01:00
|
|
|
"""Setuptools script"""
|
2021-05-19 18:07:42 +02:00
|
|
|
|
2023-01-16 12:56:12 +01:00
|
|
|
from setuptools import find_packages, setup
|
2021-05-19 18:07:42 +02:00
|
|
|
|
2022-06-28 11:05:43 +02:00
|
|
|
extras_require = {
|
2023-01-16 12:56:12 +01:00
|
|
|
"dev": [
|
|
|
|
"pytest",
|
|
|
|
"mocker",
|
|
|
|
"pytest-mock",
|
|
|
|
"pylint == 2.15.10",
|
|
|
|
"pre-commit",
|
2022-04-27 17:12:00 +02:00
|
|
|
],
|
2023-01-16 12:56:12 +01:00
|
|
|
"config": [
|
|
|
|
"argcomplete",
|
|
|
|
"keyring",
|
|
|
|
"systemd-python",
|
2022-04-27 17:12:00 +02:00
|
|
|
],
|
2023-01-16 12:56:12 +01:00
|
|
|
"ldap": [
|
|
|
|
"python-ldap",
|
|
|
|
"python-dateutil",
|
|
|
|
"pytz",
|
2022-04-27 17:12:00 +02:00
|
|
|
],
|
2023-01-16 12:56:12 +01:00
|
|
|
"email": [
|
|
|
|
"mako",
|
2022-04-27 17:12:00 +02:00
|
|
|
],
|
2023-01-16 12:56:12 +01:00
|
|
|
"pgsql": [
|
|
|
|
"psycopg2",
|
2022-04-27 17:12:00 +02:00
|
|
|
],
|
2023-01-16 12:56:12 +01:00
|
|
|
"oracle": [
|
|
|
|
"cx_Oracle",
|
2022-04-27 17:12:00 +02:00
|
|
|
],
|
2023-01-16 12:56:12 +01:00
|
|
|
"mysql": [
|
|
|
|
"mysqlclient",
|
2022-04-27 17:12:00 +02:00
|
|
|
],
|
2023-01-16 12:56:12 +01:00
|
|
|
"sftp": [
|
|
|
|
"paramiko",
|
2022-06-28 11:05:43 +02:00
|
|
|
],
|
2022-04-27 17:12:00 +02:00
|
|
|
}
|
|
|
|
|
2023-01-16 12:56:12 +01:00
|
|
|
install_requires = ["progressbar"]
|
2022-04-27 17:12:00 +02:00
|
|
|
for extra, deps in extras_require.items():
|
2023-01-16 12:56:12 +01:00
|
|
|
if extra != "dev":
|
2022-04-27 17:12:00 +02:00
|
|
|
install_requires.extend(deps)
|
|
|
|
|
2023-01-16 12:56:12 +01:00
|
|
|
version = "0.1"
|
2021-05-19 18:07:42 +02:00
|
|
|
|
2023-07-10 16:04:56 +02:00
|
|
|
with open("README.md", encoding="utf-8") as fd:
|
|
|
|
long_description = fd.read()
|
|
|
|
|
2021-05-19 18:07:42 +02:00
|
|
|
setup(
|
|
|
|
name="mylib",
|
2022-04-27 17:12:00 +02:00
|
|
|
version=version,
|
2023-01-16 12:56:12 +01:00
|
|
|
description="A set of helpers small libs to make common tasks easier in my script development",
|
2023-07-10 16:04:56 +02:00
|
|
|
long_description=long_description,
|
2021-05-19 18:07:42 +02:00
|
|
|
classifiers=[
|
2023-01-16 12:56:12 +01:00
|
|
|
"Programming Language :: Python",
|
2021-05-19 18:07:42 +02:00
|
|
|
],
|
2022-04-27 17:12:00 +02:00
|
|
|
install_requires=install_requires,
|
|
|
|
extras_require=extras_require,
|
2023-01-16 12:56:12 +01:00
|
|
|
author="Benjamin Renard",
|
|
|
|
author_email="brenard@zionetrix.net",
|
|
|
|
url="https://gogs.zionetrix.net/bn8/python-mylib",
|
2021-05-19 18:07:42 +02:00
|
|
|
packages=find_packages(),
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
entry_points={
|
2023-01-16 12:56:12 +01:00
|
|
|
"console_scripts": [
|
|
|
|
"mylib-test-email = mylib.scripts.email_test:main",
|
|
|
|
"mylib-test-email-with-config = mylib.scripts.email_test_with_config:main",
|
|
|
|
"mylib-test-map = mylib.scripts.map_test:main",
|
|
|
|
"mylib-test-pbar = mylib.scripts.pbar_test:main",
|
|
|
|
"mylib-test-report = mylib.scripts.report_test:main",
|
|
|
|
"mylib-test-ldap = mylib.scripts.ldap_test:main",
|
|
|
|
"mylib-test-sftp = mylib.scripts.sftp_test:main",
|
2023-07-10 11:56:03 +02:00
|
|
|
"mylib-test-telltale = mylib.scripts.telltale_test:main",
|
|
|
|
"mylib-test-telltale-check = mylib.scripts.telltale_check_test:main",
|
2021-05-19 18:07:42 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
)
|