This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
68 lines (62 loc) · 2.28 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
import plistlib
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '1.3.2'
__author__ = "Microsoft Apex Lab"
__copyright__ = 'Copyright © 2017 Microsoft. All rights reserved.'
__credits__ = ["Eric Hanko", "Jacob Zaval", "Michael Brown", "Andre Shields", "Ryan Dominguez", "Eammon Hanlon"]
__license__ = 'MIT'
__email__ = 'apxlab@microsoft.com'
__description__ = '''
InQRy is a cross-platform application that generates a single QR code containing the machine's hardware specifications.
This application is designed primarily to be used during a physical inventory procedure.
The QR code contains detailed information about the client machine or device, which can then be scanned it quickly add
assets into a Snipe-IT database.
'''
try:
with open('Info.plist', 'rb') as plist_file:
plist = plistlib.load(plist_file)
plist.update(dict(
CFBundleVersion=__version__,
CFBundleShortVersionString=__version__,
CFBundleName='InQRy',
NSHumanReadableCopyright=__copyright__
))
except FileNotFoundError:
plist = None
setup(
name='inqry',
app=['inqry/__main__.py'],
author=[__author__],
author_email=__email__,
description='A cross-platform utility used to generate a QR code containing hardware specs',
license=__license__,
long_description=__description__,
packages=['inqry', 'inqry.system_specs'],
install_requires=['Pillow',
'pytest',
'PyYAML',
'qrcode',
'wmi;platform_system=="Windows"',
'pypiwin32;platform_system=="Windows"'],
tests_require=['pytest'],
url='https://github.com/Microsoft/InQRy',
version=__version__,
classifiers=[
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3 :: Only'],
options=dict(
py2app=dict(
plist=plist
)
)
)