зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1427568 - Adding python 3 support for mozversion. r=wlach
MozReview-Commit-ID: HyRVFvMBNek --HG-- extra : rebase_source : 6ae11d8f8f770b655990e098ae836f7ec0b9d7ab
This commit is contained in:
Родитель
1e02011a6f
Коммит
9d20fe6b18
|
@ -5,10 +5,10 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
import argparse
|
||||
import ConfigParser
|
||||
from StringIO import StringIO
|
||||
import os
|
||||
import re
|
||||
from six import StringIO
|
||||
from six.moves import configparser
|
||||
import sys
|
||||
import tempfile
|
||||
import xml.dom.minidom
|
||||
|
@ -40,7 +40,7 @@ class Version(object):
|
|||
self._logger.warning('Unable to find %s' % config_file)
|
||||
|
||||
def _parse_ini_file(self, fp, type, section):
|
||||
config = ConfigParser.RawConfigParser()
|
||||
config = configparser.RawConfigParser()
|
||||
config.readfp(fp)
|
||||
name_map = {'codename': 'display_name',
|
||||
'milestone': 'version',
|
||||
|
|
|
@ -13,7 +13,8 @@ setup(name='mozversion',
|
|||
version=PACKAGE_VERSION,
|
||||
description='Library to get version information for applications',
|
||||
long_description="see https://firefox-source-docs.mozilla.org/mozbase/index.html",
|
||||
classifiers=[],
|
||||
classifiers=['Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3'],
|
||||
keywords='mozilla',
|
||||
author='Mozilla Automation and Testing Team',
|
||||
author_email='tools@lists.mozilla.org',
|
||||
|
@ -22,7 +23,9 @@ setup(name='mozversion',
|
|||
packages=['mozversion'],
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=['mozfile >= 1.0', 'mozlog >= 3.0'],
|
||||
install_requires=['mozfile >= 1.0',
|
||||
'mozlog >= 3.0',
|
||||
'six >= 1.10.0'],
|
||||
extras_require={'device': ['mozdevice >= 0.44']},
|
||||
entry_points="""
|
||||
# -*- Entry points: -*-
|
||||
|
|
Загрузка…
Ссылка в новой задаче