toxygen/setup.py

54 lines
1.6 KiB
Python
Raw Normal View History

2016-07-27 12:45:34 +00:00
import sys
2022-09-27 12:52:32 +00:00
import os
2023-12-17 00:00:38 +00:00
from setuptools import setup
from setuptools.command.install import install
2016-08-08 09:10:18 +00:00
2023-12-17 00:00:38 +00:00
version = '1.0.0'
2022-09-27 12:52:32 +00:00
2024-02-03 04:34:10 +00:00
MODULES = open('requirements.txt', 'rt').readlines()
2022-09-27 12:52:32 +00:00
def get_packages():
2023-12-17 00:00:38 +00:00
directory = os.path.join(os.path.dirname(__file__), 'tox_wrapper')
2022-09-27 12:52:32 +00:00
for root, dirs, files in os.walk(directory):
packages = map(lambda d: 'toxygen.' + d, dirs)
packages = ['toxygen'] + list(packages)
return packages
2016-07-06 13:25:04 +00:00
class InstallScript(install):
2016-07-11 14:24:39 +00:00
"""This class configures Toxygen after installation"""
2016-07-06 13:25:04 +00:00
2016-07-05 18:43:51 +00:00
def run(self):
install.run(self)
2017-11-05 09:13:28 +00:00
2016-07-05 18:43:51 +00:00
setup(name='Toxygen',
2016-07-06 13:25:04 +00:00
version=version,
2016-07-05 18:43:51 +00:00
description='Toxygen - Tox client',
long_description='Toxygen is powerful Tox client written in Python3',
2022-10-27 07:07:28 +00:00
url='https://git.plastiras.org/emdee/toxygen/',
2022-10-18 01:15:22 +00:00
keywords='toxygen Tox messenger',
2016-07-05 18:43:51 +00:00
author='Ingvar',
2022-10-18 01:15:22 +00:00
maintainer='',
2016-07-05 18:43:51 +00:00
license='GPL3',
2022-09-27 12:52:32 +00:00
packages=get_packages(),
2016-07-06 13:25:04 +00:00
install_requires=MODULES,
2016-07-05 18:43:51 +00:00
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3 :: Only',
2024-02-03 04:34:10 +00:00
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
2023-12-17 00:00:38 +00:00
'Programming Language :: Python :: 3.11',
2016-07-05 18:43:51 +00:00
],
entry_points={
2022-09-27 12:52:32 +00:00
'console_scripts': ['toxygen=toxygen.main:main']
2016-07-05 18:43:51 +00:00
},
2024-02-03 04:34:10 +00:00
package_data={"": ["*.ui"],},
2016-07-05 18:43:51 +00:00
cmdclass={
2023-12-17 00:00:38 +00:00
'install': InstallScript,
2022-10-18 01:15:22 +00:00
},
zip_safe=False
)