-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (47 loc) · 1.46 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
45
46
47
48
49
50
51
52
53
54
55
56
import unittest
import os
from setuptools import setup
from distutils.core import Command
from bfi import __version__
HERE = os.path.abspath(os.path.dirname(__file__))
README = os.path.join(HERE, "README.rst")
classifiers = [
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Natural Language :: English',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
class RunBFITests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
suite = unittest.TestLoader().discover("bfi/test")
t = unittest.TextTestRunner(verbosity = 2)
t.run(suite)
with open(README, 'r') as f:
long_description = f.read()
setup(
name='bfi',
version=__version__,
description=('A fast optimizing Brainfuck interpreter in pure python'),
long_description=long_description,
url='http://github.com/eriknyquist/bfi',
author='Erik Nyquist',
author_email='[email protected]',
license='Apache 2.0',
packages=['bfi'],
scripts=['bin/bfi'],
classifiers = classifiers,
cmdclass={'test': RunBFITests},
include_package_data=True,
zip_safe=False
)