aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpux <pux@pux.dom>2020-03-31 12:52:29 +0200
committerpux <pux@pux.dom>2020-03-31 12:52:29 +0200
commit2bb8a00af99e83f5607983fd648c2a6fc1ad6fdc (patch)
tree6d2aac735acea3e28a7e64d0f36e186eb7340d64
parent77d19e68d4148cbee32756645c59ccf2fdc31f10 (diff)
downloadpyfarbpracht-2bb8a00af99e83f5607983fd648c2a6fc1ad6fdc.tar.gz
pyfarbpracht-2bb8a00af99e83f5607983fd648c2a6fc1ad6fdc.tar.bz2
pyfarbpracht-2bb8a00af99e83f5607983fd648c2a6fc1ad6fdc.zip
add setuptools
-rw-r--r--.gitignore3
-rwxr-xr-xLICENSE29
-rw-r--r--README.md7
-rwxr-xr-x__init__.py4
-rwxr-xr-xpyfarbpracht/__init__.py4
-rwxr-xr-xpyfarbpracht/pyfarbpracht.py (renamed from pyfarbpracht.py)0
-rwxr-xr-xpyfarbpracht/test.py (renamed from test.py)2
-rw-r--r--setup.py23
8 files changed, 66 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 58af8a2..80be5b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
__pycache__
*.py[cod]
+build/
+dist/
+pyfarbpracht.egg-info
diff --git a/LICENSE b/LICENSE
new file mode 100755
index 0000000..7caae61
--- /dev/null
+++ b/LICENSE
@@ -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",
+ ],
+)
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa