forked from teleological/camxes-py
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from olpa/adapt-for-pip
Adapt the package for pip
- Loading branch information
Showing
30 changed files
with
79 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include camxes_py/parsers/camxes_ilmen.peg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from .parsers import camxes_ilmen | ||
from .transformers import camxes_json | ||
|
||
|
||
def parse(text, parser=None, rule=None, transformer=None): | ||
if parser is None: | ||
parser = camxes_ilmen.Parser(rule) | ||
if transformer is None: | ||
transformer = camxes_json.Transformer() | ||
parsed = parser.parse(text) | ||
transformed = transformer.transform(parsed) | ||
return transformed |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
structures/jbovlaste_types.py → camxes_py/structures/jbovlaste_types.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
transformers/camxes_json.py → camxes_py/transformers/camxes_json.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import setuptools | ||
|
||
PACKAGE_NAME = 'camxes_py' | ||
PACKAGE_DIR = 'camxes_py' | ||
|
||
|
||
packages = setuptools.find_packages(PACKAGE_DIR) | ||
packages.append('') | ||
packages = list(map(lambda n: PACKAGE_NAME+"."+n, packages)) | ||
|
||
|
||
with open("README.txt", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
|
||
setuptools.setup( | ||
name=PACKAGE_NAME, | ||
version="0.8.1", | ||
author="Robin Lee Powell", | ||
author_email="rlpowell@digitalkingdom.org", | ||
description="A pure Python implementation of the lojban 'camxes' PEG parser.", | ||
long_description=long_description, | ||
long_description_content_type="text/plain", | ||
url="https://github.com/lojban/camxes-py", | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
"Text Processing :: Linguistic", | ||
], | ||
package_dir={PACKAGE_NAME: PACKAGE_DIR}, | ||
packages=packages, | ||
include_package_data=True, | ||
python_requires=">=3.6", | ||
install_requires=["parsimonious==0.8.1"], | ||
scripts=["camxes.py"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters