Parse all IMPORTS clauses
[third_party/asn1ate.git] / setup.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 import os
5
6 try:
7     from setuptools import setup
8 except:
9     from distutils.core import setup
10
11
12 def get_version():
13     version_file = os.path.join(os.path.dirname(__file__),
14                                 'asn1ate', '__init__.py')
15
16     environment = {}
17     with open(version_file) as fp:
18         exec(fp.read(), environment)
19
20     return environment['__version__']
21
22
23 setup(
24     name='asn1ate',
25     version=get_version(),
26     description='ASN.1 translation library.',
27     author='Kim Gräsman',
28     author_email='kim.grasman@gmail.com',
29     license='BSD',
30     long_description=open('README.txt').read(),
31     url='http://github.com/kimgr/asn1ate',
32     packages=[
33         'asn1ate',
34         'asn1ate.support',
35     ],
36     platforms=['any'],
37     install_requires=[
38         'pyparsing>=2.0.0',
39     ],
40     classifiers=[
41         'Development Status :: 3 - Alpha',
42         'Intended Audience :: Developers',
43         'License :: OSI Approved :: BSD License',
44         'Operating System :: OS Independent',
45         'Programming Language :: Python',
46         'Programming Language :: Python :: 3',
47         'Topic :: Software Development :: Code Generators',
48     ],
49     entry_points={
50         'console_scripts': [
51             'asn1ate = asn1ate.pyasn1gen:main'
52         ]
53     }
54 )