-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (82 loc) · 3.07 KB
/
setup.py
File metadata and controls
86 lines (82 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
Module
setup.py
Copyright
Copyright (C) 2017 - 2026 Vladimir Roncevic <elektron.ronca@gmail.com>
gen_py_module is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
gen_py_module is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
Info
Defines setup for tool gen_py_module.
'''
from __future__ import print_function
from typing import List, Optional
from os.path import abspath, dirname, join
from setuptools import setup
__author__: str = 'Vladimir Roncevic'
__copyright__: str = '(C) 2026, https://vroncevic.github.io/gen_py_module'
__credits__: List[str] = ['Vladimir Roncevic', 'Python Software Foundation']
__license__: str = 'https://github.com/vroncevic/gen_py_module/blob/dev/LICENSE'
__version__: str = '1.5.7'
__maintainer__: str = 'Vladimir Roncevic'
__email__: str = 'elektron.ronca@gmail.com'
__status__: str = 'Updated'
TOOL_DIR = 'gen_py_module/'
CONF: str = 'conf'
TEMPLATE: str = 'conf/template'
LOG: str = 'log'
THIS_DIR: str = abspath(dirname(__file__))
long_description: Optional[str] = None
with open(join(THIS_DIR, 'README.md'), encoding='utf-8') as readme:
long_description = readme.read()
PROGRAMMING_LANG: str = 'Programming Language :: Python ::'
VERSIONS: List[str] = ['3.10', '3.11', '3.12']
SUPPORTED_PY_VERSIONS: List[str] = [
f'{PROGRAMMING_LANG} {VERSION}' for VERSION in VERSIONS
]
PYP_CLASSIFIERS: List[str] = SUPPORTED_PY_VERSIONS
setup(
name='gen_py_module',
version='1.5.7',
description='Generating PY module',
author='Vladimir Roncevic',
author_email='elektron.ronca@gmail.com',
url='https://vroncevic.github.io/gen_py_module',
license='GPL-3.0-or-later',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='Unix, Linux, Development, PY, module',
platforms='POSIX',
classifiers=PYP_CLASSIFIERS,
packages=['gen_py_module', 'gen_py_module.pro'],
install_requires=['ats-utilities'],
package_data={
'gen_py_module': [
'py.typed',
f'{CONF}/gen_py_module.logo',
f'{CONF}/gen_py_module.cfg',
f'{CONF}/gen_py_module_util.cfg',
f'{CONF}/project.yaml',
f'{TEMPLATE}/abstract_abc_class.template',
f'{TEMPLATE}/abstract_base_class.template',
f'{TEMPLATE}/class.template',
f'{TEMPLATE}/empty.template',
f'{TEMPLATE}/main.template',
f'{LOG}/gen_py_module.log'
]
},
data_files=[(
'/usr/local/bin/', [
f'{TOOL_DIR}run/gen_py_module_run.py'
]
)]
)