forked from mirrors/gecko-dev
		
	 88e6a5d62d
			
		
	
	
		88e6a5d62d
		
	
	
	
	
		
			
			Differential Revision: https://phabricator.services.mozilla.com/D68080 --HG-- rename : third_party/python/pyasn1/doc/Makefile => third_party/python/pyasn1/docs/Makefile rename : third_party/python/pyasn1/doc/source/changelog.rst => third_party/python/pyasn1/docs/source/changelog.rst rename : third_party/python/pyasn1/doc/source/conf.py => third_party/python/pyasn1/docs/source/conf.py rename : third_party/python/pyasn1/doc/source/contents.rst => third_party/python/pyasn1/docs/source/contents.rst rename : third_party/python/pyasn1/doc/source/example-use-case.rst => third_party/python/pyasn1/docs/source/example-use-case.rst rename : third_party/python/pyasn1/doc/source/license.rst => third_party/python/pyasn1/docs/source/license.rst rename : third_party/python/pyasn1/doc/source/docs/codec/ber/contents.rst => third_party/python/pyasn1/docs/source/pyasn1/codec/ber/contents.rst rename : third_party/python/pyasn1/doc/source/docs/codec/cer/contents.rst => third_party/python/pyasn1/docs/source/pyasn1/codec/cer/contents.rst rename : third_party/python/pyasn1/doc/source/docs/codec/der/contents.rst => third_party/python/pyasn1/docs/source/pyasn1/codec/der/contents.rst rename : third_party/python/pyasn1/doc/source/docs/codec/native/contents.rst => third_party/python/pyasn1/docs/source/pyasn1/codec/native/contents.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/bmpstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/bmpstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/generalstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/generalstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/graphicstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/graphicstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/ia5string.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/ia5string.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/iso646string.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/iso646string.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/numericstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/numericstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/printablestring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/printablestring.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/t61string.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/t61string.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/teletexstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/teletexstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/universalstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/universalstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/utf8string.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/utf8string.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/videotexstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/videotexstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/char/visiblestring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/char/visiblestring.rst rename : third_party/python/pyasn1/doc/source/docs/type/namedval/namedval.rst => third_party/python/pyasn1/docs/source/pyasn1/type/namedval/namedval.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/any.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/any.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/bitstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/bitstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/boolean.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/boolean.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/choice.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/choice.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/enumerated.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/enumerated.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/integer.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/integer.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/null.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/null.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/objectidentifier.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/objectidentifier.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/octetstring.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/octetstring.rst rename : third_party/python/pyasn1/doc/source/docs/type/univ/real.rst => third_party/python/pyasn1/docs/source/pyasn1/type/univ/real.rst rename : third_party/python/pyasn1/doc/source/docs/type/useful/generalizedtime.rst => third_party/python/pyasn1/docs/source/pyasn1/type/useful/generalizedtime.rst rename : third_party/python/pyasn1/doc/source/docs/type/useful/objectdescriptor.rst => third_party/python/pyasn1/docs/source/pyasn1/type/useful/objectdescriptor.rst rename : third_party/python/pyasn1/doc/source/docs/type/useful/utctime.rst => third_party/python/pyasn1/docs/source/pyasn1/type/useful/utctime.rst rename : third_party/python/pyasn1/doc/source/docs/tutorial.rst => third_party/python/pyasn1/docs/tutorial.rst extra : moz-landing-system : lando
		
			
				
	
	
		
			121 lines
		
	
	
	
		
			3.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			121 lines
		
	
	
	
		
			3.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python
 | |
| #
 | |
| # This file is part of pyasn1 software.
 | |
| #
 | |
| # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
 | |
| # License: http://snmplabs.com/pyasn1/license.html
 | |
| #
 | |
| import os
 | |
| import sys
 | |
| 
 | |
| classifiers = """\
 | |
| Development Status :: 5 - Production/Stable
 | |
| Environment :: Console
 | |
| Intended Audience :: Developers
 | |
| Intended Audience :: Education
 | |
| Intended Audience :: Information Technology
 | |
| Intended Audience :: System Administrators
 | |
| Intended Audience :: Telecommunications Industry
 | |
| License :: OSI Approved :: BSD License
 | |
| Natural Language :: English
 | |
| Operating System :: OS Independent
 | |
| Programming Language :: Python :: 2
 | |
| Programming Language :: Python :: 2.4
 | |
| Programming Language :: Python :: 2.5
 | |
| Programming Language :: Python :: 2.6
 | |
| Programming Language :: Python :: 2.7
 | |
| Programming Language :: Python :: 3
 | |
| Programming Language :: Python :: 3.2
 | |
| Programming Language :: Python :: 3.3
 | |
| Programming Language :: Python :: 3.4
 | |
| Programming Language :: Python :: 3.5
 | |
| Programming Language :: Python :: 3.6
 | |
| Programming Language :: Python :: 3.7
 | |
| Topic :: Communications
 | |
| Topic :: Software Development :: Libraries :: Python Modules
 | |
| """
 | |
| 
 | |
| 
 | |
| def howto_install_setuptools():
 | |
|     print("""
 | |
|    Error: You need setuptools Python package!
 | |
| 
 | |
|    It's very easy to install it, just type:
 | |
| 
 | |
|    wget https://bootstrap.pypa.io/ez_setup.py
 | |
|    python ez_setup.py
 | |
| 
 | |
|    Then you could make eggs from this package.
 | |
| """)
 | |
| 
 | |
| 
 | |
| if sys.version_info[:2] < (2, 4):
 | |
|     print("ERROR: this package requires Python 2.4 or later!")
 | |
|     sys.exit(1)
 | |
| 
 | |
| try:
 | |
|     from setuptools import setup, Command
 | |
| 
 | |
|     params = {
 | |
|         'zip_safe': True
 | |
|     }
 | |
| 
 | |
| except ImportError:
 | |
|     for arg in sys.argv:
 | |
|         if 'egg' in arg:
 | |
|             howto_install_setuptools()
 | |
|             sys.exit(1)
 | |
|     from distutils.core import setup, Command
 | |
| 
 | |
|     params = {}
 | |
| 
 | |
| params.update({
 | |
|     'name': 'pyasn1',
 | |
|     'version': open(os.path.join('pyasn1', '__init__.py')).read().split('\'')[1],
 | |
|     'description': 'ASN.1 types and codecs',
 | |
|     'long_description': 'Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)',
 | |
|     'maintainer': 'Ilya Etingof <etingof@gmail.com>',
 | |
|     'author': 'Ilya Etingof',
 | |
|     'author_email': 'etingof@gmail.com',
 | |
|     'url': 'https://github.com/etingof/pyasn1',
 | |
|     'platforms': ['any'],
 | |
|     'classifiers': [x for x in classifiers.split('\n') if x],
 | |
|     'license': 'BSD',
 | |
|     'packages': ['pyasn1',
 | |
|                  'pyasn1.type',
 | |
|                  'pyasn1.compat',
 | |
|                  'pyasn1.codec',
 | |
|                  'pyasn1.codec.ber',
 | |
|                  'pyasn1.codec.cer',
 | |
|                  'pyasn1.codec.der',
 | |
|                  'pyasn1.codec.native']})
 | |
| 
 | |
| # handle unittest discovery feature
 | |
| try:
 | |
|     import unittest2 as unittest
 | |
| except ImportError:
 | |
|     import unittest
 | |
| 
 | |
| 
 | |
| class PyTest(Command):
 | |
|     user_options = []
 | |
| 
 | |
|     def initialize_options(self):
 | |
|         pass
 | |
| 
 | |
|     def finalize_options(self):
 | |
|         pass
 | |
| 
 | |
|     def run(self):
 | |
|         suite = unittest.TestLoader().loadTestsFromNames(
 | |
|             ['tests.__main__.suite']
 | |
|         )
 | |
| 
 | |
|         unittest.TextTestRunner(verbosity=2).run(suite)
 | |
| 
 | |
| params['cmdclass'] = {
 | |
|     'test': PyTest,
 | |
|     'tests': PyTest,
 | |
| }
 | |
| 
 | |
| setup(**params)
 |