diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | LICENSE | 29 | ||||
-rw-r--r-- | README.md | 7 | ||||
-rwxr-xr-x | __init__.py | 4 | ||||
-rwxr-xr-x | pyfarbpracht/__init__.py | 4 | ||||
-rwxr-xr-x | pyfarbpracht/pyfarbpracht.py (renamed from pyfarbpracht.py) | 0 | ||||
-rwxr-xr-x | pyfarbpracht/test.py (renamed from test.py) | 2 | ||||
-rw-r--r-- | setup.py | 23 |
8 files changed, 66 insertions, 6 deletions
@@ -1,2 +1,5 @@ __pycache__ *.py[cod] +build/ +dist/ +pyfarbpracht.egg-info @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2020, Oliver Meckmann +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..a2174b9 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# pyfarbpracht + +## ANSI and BBCode support for CLI + +### LICENSE + +see [LICENSE](LICENSE) diff --git a/__init__.py b/__init__.py deleted file mode 100755 index f5afe4c..0000000 --- a/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -__pkg__name = 'pyfarbpracht' -__version_ = 1 - -import pyfarbpracht diff --git a/pyfarbpracht/__init__.py b/pyfarbpracht/__init__.py new file mode 100755 index 0000000..dc03860 --- /dev/null +++ b/pyfarbpracht/__init__.py @@ -0,0 +1,4 @@ +__pkg__name = 'pyfarbpracht' +__version_ = '0.1' + +from .pyfarbpracht import * diff --git a/pyfarbpracht.py b/pyfarbpracht/pyfarbpracht.py index 62ef308..62ef308 100755 --- a/pyfarbpracht.py +++ b/pyfarbpracht/pyfarbpracht.py diff --git a/test.py b/pyfarbpracht/test.py index 380a5bb..ac74add 100755 --- a/test.py +++ b/pyfarbpracht/test.py @@ -18,7 +18,5 @@ def test(): print(pyfarbpracht.colored( \ 'green', 'print(colored(... test in green no newline'), end='') - - if __name__ == '__main__': test() diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..33fc587 --- /dev/null +++ b/setup.py @@ -0,0 +1,23 @@ +import os +from setuptools import setup + +def read(fname): + return open(os.path.join(os.path.dirname(__file__), fname)).read() + +setup( + name = 'pyfarbpracht', + version = '0.1', + author = 'Oliver Meckmann', + author_email = 'omeckman@omeckman.net', + description = ('ANSI and BBCode color support'), + license = 'BSD 3-Clause', + keywords = 'ansi bbcode cli', + url = """https://git.omeckman.net/pyfarbpracht.git/""", + packages=['pyfarbpracht'], + long_description=read('README.md'), + classifiers=[ + "Development Status :: 3 - Alpha", + "Topic :: Utilities", + "License :: BSD 3-Clause License", + ], +) |