-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
setup.py
98 lines (82 loc) · 2.93 KB
/
setup.py
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
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2016-2020:
# Matthieu Estrada, ttamalfor@gmail.com
# Pavel Liavonau, liavonlida@gmail.com
#
# This file is part of (CMakeConverter).
#
# (CMakeConverter) is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# (CMakeConverter) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with (CMakeConverter). If not, see <http://www.gnu.org/licenses/>.
import sys
try:
from setuptools import setup, find_packages
except Exception:
sys.exit("Error: missing python-setuptools library")
try:
python_version = sys.version_info
except Exception:
python_version = (1, 5)
if python_version < (3, 6):
sys.exit(
"This application requires a minimum of Python 3.6 !"
" Please update your Python version."
)
from cmake_converter import __description__, __version__, __license__, __author__, __project_url__
from cmake_converter import __name__ as __pkg_name__
# Requirements
install_requires = [
'lxml',
'colorama',
]
setup(
name=__pkg_name__,
version=__version__,
license=__license__,
# metadata for upload to PyPI
author=__author__,
author_email="liavonlida@gmail.com",
keywords="cmake sln vcxproj vfproj visual cpp fortran CMakeLists",
url=__project_url__,
description=__description__,
long_description=open('README.rst').read(),
zip_safe=False,
packages=find_packages(),
python_requires='>=3.6',
include_package_data=True,
install_requires=install_requires,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Libraries'
],
entry_points={
'console_scripts': [
'cmake-converter = cmake_converter.main:main'
],
}
)