OLD | NEW |
(Empty) | |
| 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 import sys |
| 7 from setuptools import setup |
| 8 |
| 9 PACKAGE_VERSION = '0.4' |
| 10 |
| 11 # we only support python 2 right now |
| 12 assert sys.version_info[0] == 2 |
| 13 |
| 14 deps = ["ManifestDestiny >= 0.5.4"] |
| 15 # version-dependent dependencies |
| 16 try: |
| 17 import json |
| 18 except ImportError: |
| 19 deps.append('simplejson') |
| 20 try: |
| 21 import sqlite3 |
| 22 except ImportError: |
| 23 deps.append('pysqlite') |
| 24 |
| 25 |
| 26 # take description from README |
| 27 here = os.path.dirname(os.path.abspath(__file__)) |
| 28 try: |
| 29 description = file(os.path.join(here, 'README.md')).read() |
| 30 except (OSError, IOError): |
| 31 description = '' |
| 32 |
| 33 setup(name='mozprofile', |
| 34 version=PACKAGE_VERSION, |
| 35 description="Handling of Mozilla Gecko based application profiles", |
| 36 long_description=description, |
| 37 classifiers=['Environment :: Console', |
| 38 'Intended Audience :: Developers', |
| 39 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2
.0)', |
| 40 'Natural Language :: English', |
| 41 'Operating System :: OS Independent', |
| 42 'Programming Language :: Python', |
| 43 'Topic :: Software Development :: Libraries :: Python Modules
', |
| 44 ], |
| 45 keywords='mozilla', |
| 46 author='Mozilla Automation and Tools team', |
| 47 author_email='tools@lists.mozilla.org', |
| 48 url='https://wiki.mozilla.org/Auto-tools/Projects/MozBase', |
| 49 license='MPL 2.0', |
| 50 packages=['mozprofile'], |
| 51 include_package_data=True, |
| 52 zip_safe=False, |
| 53 install_requires=deps, |
| 54 entry_points=""" |
| 55 # -*- Entry points: -*- |
| 56 [console_scripts] |
| 57 mozprofile = mozprofile:cli |
| 58 """, |
| 59 ) |
OLD | NEW |