-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38cfa12
commit 8eba104
Showing
14 changed files
with
196 additions
and
114 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.* | ||
*.pyc | ||
__pycache__/ |
Empty file.
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 @@ | ||
beeprint: Beautiful Print | ||
=== | ||
|
||
Features | ||
=== | ||
|
||
Examples | ||
=== | ||
|
||
Plain Variables | ||
--- | ||
|
Empty file.
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,22 @@ | ||
# -*- coding:utf-8 -*- | ||
from __future__ import print_function | ||
from __future__ import absolute_import | ||
from __future__ import unicode_literals | ||
from __future__ import division | ||
from . import settings as S | ||
from . import constants as C | ||
|
||
|
||
### global variables | ||
G_leading_char = ' ' | ||
|
||
def add_leading(depth, text): | ||
text = G_leading_char*depth + text | ||
text = text.replace('\n', '\n' + G_leading_char*depth) | ||
return text | ||
|
||
def debug(level, depth, text): | ||
if S.debug is False: | ||
return | ||
text = add_leading(depth, text) | ||
print(text) |
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,15 @@ | ||
sdist: | ||
python setup.py sdist || true | ||
|
||
edist: | ||
python setup.py bdist_egg || true | ||
|
||
dist: | ||
python setup.py sdist bdist_egg || true | ||
|
||
register: | ||
python setup.py register -r pypi || true | ||
python setup.py register -r pypitest || true | ||
|
||
full: | ||
python setup.py sdist bdist_egg upload |
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,25 @@ | ||
from distutils.core import setup | ||
setup( | ||
name = 'beeprint', | ||
packages = ['beeprint'], # this must be the same as the name above | ||
version = '0.1', | ||
description = 'print object in beautiful format, like pprint', | ||
author = 'Yangyang Pan', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/panyanyany/beeprint', # use the URL to the github repo | ||
download_url = 'https://github.com/panyanyany/beeprint/archive/master.zip', # I'll explain this in a second | ||
keywords = ['print', 'pprint', 'format'], # arbitrary keywords | ||
classifiers = [ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
|
||
"Environment :: Console", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development", | ||
"Topic :: Utilities", | ||
], | ||
) |
Oops, something went wrong.