-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
48 lines (39 loc) · 1.39 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
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
py_version = sys.version_info[:2]
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, "README.rst")).read()
README += open(os.path.join(here, "HISTORY.rst")).read()
except IOError:
README = "https://github.com/ikame/automaton"
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name="Automaton",
version="0.1",
description="State machines generator for regular expressions.",
long_description=README,
author="ikame",
author_email="[email protected]",
url="https://github.com/ikame/automaton",
license="MIT",
install_requires=["six"],
tests_require=["pytest", "mock"],
cmdclass={"test": PyTest},
keywords="automaton regex regular expressions state machines dfa nfa",
classifiers=[
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Libraries :: Python Modules"])