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