Debian Codegraph @

testing/mozbase/mozinstall/setup.py

raw
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 import os
6
7 from setuptools import setup
8
9 try:
10 here = os.path.dirname(os.path.abspath(__file__))
11 description = open(os.path.join(here, "README.md")).read()
12 except OSError:
13 description = None
14
15 PACKAGE_VERSION = "2.1.0"
16
17 deps = [
18 "mozinfo >= 0.7",
19 "mozfile >= 1.0",
20 "requests",
21 "six >= 1.13.0",
22 ]
23
24 setup(
25 name="mozInstall",
26 version=PACKAGE_VERSION,
27 description="package for installing and uninstalling Mozilla applications",
28 long_description="see https://firefox-source-docs.mozilla.org/mozbase/index.html",
29 # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
30 classifiers=[
31 "Environment :: Console",
32 "Intended Audience :: Developers",
33 "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
34 "Natural Language :: English",
35 "Operating System :: OS Independent",
36 "Topic :: Software Development :: Libraries :: Python Modules",
37 "Programming Language :: Python :: 2.7",
38 "Programming Language :: Python :: 3",
39 ],
40 keywords="mozilla",
41 author="Mozilla Automation and Tools team",
42 author_email="[email protected]",
43 url="https://wiki.mozilla.org/Auto-tools/Projects/Mozbase",
44 license="MPL 2.0",
45 packages=["mozinstall"],
46 include_package_data=True,
47 zip_safe=False,
48 install_requires=deps,
49 # we have to generate two more executables for those systems that cannot run as Administrator
50 # and the filename containing "install" triggers the UAC
51 entry_points="""
52 # -*- Entry points: -*-
53 [console_scripts]
54 mozinstall = mozinstall:install_cli
55 mozuninstall = mozinstall:uninstall_cli
56 moz_add_to_system = mozinstall:install_cli
57 moz_remove_from_system = mozinstall:uninstall_cli
58 """,
59 )