forked from kevinpt/hdlparse
-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
executable file
·44 lines (39 loc) · 1.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from setuptools import setup
# Use README.rst for the long description
with open('README.rst') as fh:
long_description = fh.read()
# Scan the script for the version string
version_file = 'hdlparse/minilexer.py'
version = None
with open(version_file) as fh:
try:
version = [line.split('=')[1].strip().strip("'") for line in fh if
line.startswith('__version__')][0]
except IndexError:
pass
if version is None:
raise RuntimeError('Unable to find version string in file: {0}'.format(version_file))
setup(name='hdlparse',
version=version,
author='Kevin Thibedeau',
author_email='[email protected]',
url='http://kevinpt.github.io/hdlparse',
download_url='http://kevinpt.github.io/hdlparse',
description='HDL parser',
long_description=long_description,
platforms=['Any'],
install_requires=[],
packages=['hdlparse'],
py_modules=[],
include_package_data=True,
keywords='HDL parser',
license='MIT',
classifiers=['Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Topic :: Text Processing :: General',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License'
]
)