-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5 from p141592/source_object
Релиз базового функционала
- Loading branch information
Showing
9 changed files
with
59 additions
and
35 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 |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
venv | ||
.env | ||
.DS_Store | ||
.vscode | ||
.vscode | ||
.egg-info | ||
dist/ |
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,22 @@ | ||
from formatter.source import BaseSource | ||
from formatter.parser import Parser | ||
from formatter.tree import BaseTree | ||
from formatter.tree.nodes import Root, Document, Paragraph, Block, Line | ||
|
||
__package_name__ = 'stformatter' | ||
__version__ = '0.1.1' | ||
__author__ = 'Baryshnikov Nikolay' | ||
__author_email__ = 'root@k0d.ru' | ||
__description__ = '''A Python formatter from formats like rst and markdown to the content tree''' | ||
__url__ = 'https://github.com/p141592/stformatter' | ||
|
||
__all__ = ( | ||
'BaseSource', | ||
'Parser', | ||
'BaseTree', | ||
'Root', | ||
'Document', | ||
'Paragraph', | ||
'Block', | ||
'Line' | ||
) |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from tree.nodes import Line, Root | ||
from formatter.tree.nodes import Root | ||
|
||
|
||
class Parser: | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import os | ||
|
||
from tree import BaseTree | ||
from formatter.tree import BaseTree | ||
|
||
|
||
class Root(BaseTree): | ||
|
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
pytest | ||
psycopg2-binary | ||
marshmallow==3.0.1 |
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,30 @@ | ||
import os | ||
import formatter as metadata | ||
from setuptools import setup, find_packages | ||
|
||
long_description = open('README.md').read() | ||
|
||
setup( | ||
name=metadata.__package_name__, | ||
version=metadata.__version__, | ||
author=metadata.__author__, | ||
author_email=metadata.__author_email__, | ||
description=metadata.__description__, | ||
url=metadata.__url__, | ||
license='BSD', | ||
packages=find_packages(), | ||
long_description=long_description, | ||
test_suite='nose.collector', | ||
install_requires=[ | ||
'marshmallow', | ||
], | ||
py_modules=['formatter'], | ||
classifiers=[ | ||
'License :: OSI Approved :: BSD License', | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
'formatter = formatter.main:main', | ||
], | ||
}, | ||
) |