-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
74 lines (58 loc) · 2.26 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
import os
import pathlib
import re
from setuptools import setup, find_packages
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
def get_requirements(filename):
requirements = []
with open(filename, "rt") as req_file:
for line in req_file.read().splitlines():
if not line.strip().startswith("#"):
requirements.append(line)
return requirements
def get_version():
""" Get application version from the metadata file """
filename = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"conanguide", "info.py"))
with open(filename, "rt") as info_file:
conanguide_info = info_file.read()
version = re.search(r'__version__ = "([0-9a-z.-]+)"', conanguide_info).group(1)
return version
project_requirements = get_requirements("requirements.txt")
setup(
name="conan-guide",
version=get_version(),
description="Qt based Graphical User Interface (GUI) to interact with local cache of conan package manager",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/afri-bit/conan-guide",
author="Afrizal Herlambang",
author_email="[email protected]",
license="MIT",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Environment :: X11 Applications :: Qt",
"Environment :: Win32 (MS Windows)",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: POSIX :: Linux"
],
packages=find_packages(),
install_requires=project_requirements,
# Project relation
keywords=["conan", "conan.io", "GUI", "Conan GUI", "PySide2"],
package_data={"": ["requirements.txt", "resources/*"]},
entry_points={
"console_scripts": [
"conan-guide=conanguide.app:main"
]
}
)