Răsfoiți Sursa

template: initial

Fabian Peter Hammerle 9 ani în urmă
comite
320371c901
6 a modificat fișierele cu 161 adăugiri și 0 ștergeri
  1. 75 0
      .gitignore
  2. 21 0
      LICENSE
  3. 0 0
      README.md
  4. 45 0
      scripts/script
  5. 2 0
      setup.cfg
  6. 18 0
      setup.py

+ 75 - 0
.gitignore

@@ -0,0 +1,75 @@
+# Editing
+.*.swp
+.~lock.*#
+
+# Auto Completion
+.ycm_extra_conf.py
+
+# Build Process
+CMakeCache.txt
+CMakeFiles
+Makefile
+cmake_install.cmake
+
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+.hypothesis/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+#Ipython Notebook
+.ipynb_checkpoints

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Fabian Peter Hammerle
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 0 - 0
README.md


+ 45 - 0
scripts/script

@@ -0,0 +1,45 @@
+#!/usr/bin/env python
+# PYTHON_ARGCOMPLETE_OK
+
+import re
+import os
+import sys
+import yaml
+import pprint
+import datetime
+import subprocess
+
+def compute():
+
+    raise Exception('nothing implemented yet.')
+
+def _init_argparser():
+
+    import argparse
+    argparser = argparse.ArgumentParser(description = None)
+    # argparser.add_argument('a', nargs = '*')
+    # argparser.add_argument('--b')
+    # argparser.add_argument('--flag', action='store_true')
+    # argparser.add_argument('file', type = argparse.FileType('r'))
+    # exclusive_group = argparser.add_mutually_exclusive_group(required = False)
+    # exclusive_group.add_argument('--exclusive-1', action='store_true')
+    # exclusive_group.add_argument('--exclusive-2', action='store_true')
+    # subparsers = argparser.add_subparsers(help = None, dest = 'command')
+    return argparser
+
+def main(argv):
+
+    argparser = _init_argparser()
+    try:
+        import argcomplete
+        argcomplete.autocomplete(argparser)
+    except ImportError:
+        pass
+    args = argparser.parse_args(argv)
+
+    compute(**vars(args))
+
+    return 0
+
+if __name__ == "__main__":
+    sys.exit(main(sys.argv[1:]))

+ 2 - 0
setup.cfg

@@ -0,0 +1,2 @@
+[metadata]
+description-file = README.md

+ 18 - 0
setup.py

@@ -0,0 +1,18 @@
+from setuptools import setup
+
+import glob
+
+setup(
+    name = '',
+    version = '0.1',
+    description = '',
+    author = 'Fabian Peter Hammerle',
+    author_email = 'fabian.hammerle@gmail.com',
+    url = 'https://github.com/fphammerle/',
+    download_url = 'https://github.com/fphammerle//tarball/0.1',
+    keywords = [],
+    classifiers = [],
+    scripts = glob.glob('scripts/*'),
+    install_requires = [],
+    tests_require = ['pytest']
+    )