add additional unit tests
[openpower-isa.git] / setup.py
1 from setuptools import setup, find_packages
2 import sys
3 import os
4
5 here = os.path.abspath(os.path.dirname(__file__))
6 README = open(os.path.join(here, 'README.md')).read()
7 NEWS = open(os.path.join(here, 'NEWS.txt')).read()
8
9 version = '0.0.1'
10
11 # using pip3 for ongoing development is a royal pain. seriously not
12 # recommended. therefore a number of these dependencies have been
13 # commented out. *they are still required* - they will need installing
14 # manually.
15
16 install_requires = [
17 # ok to install using pip3 as long as it is not with the rest of Libre-SOC. # https://git.libre-soc.org/?p=nmigen.git
18 'nmigen',
19 # can be obtained with pip3, best done manually
20 # https://git.libre-soc.org/?p=nmutil.git
21 'nmutil',
22 # these should be fine
23 'pygdbmi', # gdb machine interfave
24 'ply', # python lex yacc. very cool
25 ]
26
27 test_requires = [
28 'nose',
29 # best to install pia from Libre-SOC:
30 # https://git.libre-soc.org/?p=power-instruction-analyzer.git
31 'power-instruction-analyzer'
32 ]
33
34 setup(
35 name='libresoc-openpower-isa',
36 version=version,
37 description="OpenPOWER ISA resources including a python-based simulator",
38 long_description=README + '\n\n',
39 long_description_content_type='text/markdown',
40 classifiers=[
41 "Topic :: Software Development",
42 "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
43 "Programming Language :: Python :: 3",
44 "Operating System :: OS Independent",
45 ],
46 keywords='nmigen libre-soc openpower simulator',
47 author='Luke Kenneth Casson Leighton',
48 author_email='lkcl@libre-soc.org',
49 url='http://git.libre-soc.org/?p=openpower-isa.git',
50 license='LGPLv3+',
51 packages=find_packages('src'),
52 package_dir={'': 'src'},
53 include_package_data=True,
54 zip_safe=False,
55 install_requires=install_requires,
56 tests_require=test_requires,
57 test_suite='nose.collector',
58 entry_points = {
59 'console_scripts': [
60 'pywriter=openpower.decoder.pseudo.pywriter:pywriter',
61 'sv_analysis=openpower.sv:sv_analysis'
62 ]
63 }
64 )