Skip to content

Commit 8bbe424

Browse files
author
Oleksii Okhrymenko
committed
Added tests and TravisCI integration
1 parent 4b9e746 commit 8bbe424

62 files changed

Lines changed: 754 additions & 17 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: python
2+
python:
3+
- "2.6"
4+
- "2.7"
5+
# command to install dependencies
6+
install:
7+
- pip install .
8+
# command to run tests
9+
script: nosetests

setup.py

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ def readme():
88
license = f.read()
99

1010
setup(name='simplepeg',
11-
version='1.0.1',
12-
description='Python version of SimplePEG',
13-
long_description=readme(),
14-
classifiers=[
15-
'Development Status :: 5 - Production/Stable',
16-
'License :: OSI Approved :: MIT License',
17-
'Programming Language :: Python :: 2.7',
18-
'Topic :: Text Processing :: Linguistic',
19-
],
20-
url='https://github.com/SimplePEG/Python',
21-
author='Oleksii Okhrymenko',
22-
author_email='ai_boy@live.ru',
23-
keywords='peg parser grammar',
24-
license=license,
25-
packages=['simplepeg'],
26-
include_package_data=True,
27-
zip_safe=False)
11+
version='1.0.1',
12+
description='Python version of SimplePEG',
13+
long_description=readme(),
14+
classifiers=[
15+
'Development Status :: 5 - Production/Stable',
16+
'License :: OSI Approved :: MIT License',
17+
'Programming Language :: Python :: 2.7',
18+
'Topic :: Text Processing :: Linguistic',
19+
],
20+
url='https://github.com/SimplePEG/Python',
21+
author='Oleksii Okhrymenko',
22+
author_email='ai_boy@live.ru',
23+
keywords='peg parser grammar',
24+
license=license,
25+
test_suite='nose.collector',
26+
tests_require=['nose'],
27+
packages=['simplepeg'],
28+
include_package_data=True,
29+
zip_safe=False)

simplepeg/tests/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GRAMMAR test
2+
3+
a -> &"A";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GRAMMAR test
2+
3+
a -> "A" EOF;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GRAMMAR test
2+
3+
a -> !"A";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GRAMMAR test
2+
3+
a -> "A"+;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GRAMMAR test
2+
3+
a -> "A"?;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GRAMMAR test
2+
3+
a -> "A" / "B";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GRAMMAR test
2+
3+
a -> [0-9];

0 commit comments

Comments
 (0)