Permalink
Browse files

Completed alpha

  • Loading branch information...
1 parent d4511d8 commit 795fcc0573d520c991544425deec9db4e3f77924 @Lispython committed Oct 27, 2012
Showing with 820 additions and 0 deletions.
  1. +15 −0 .travis.yml
  2. +12 −0 AUTHORS
  3. +8 −0 ChangeLog
  4. +33 −0 LICENSE
  5. +14 −0 MANIFEST.in
  6. +32 −0 Makefile
  7. +54 −0 README.rst
  8. +29 −0 commandor/__init__.py
  9. +273 −0 commandor/base.py
  10. +29 −0 commandor/colors.py
  11. +16 −0 commandor/exceptions.py
  12. +24 −0 commandor/utils.py
  13. +97 −0 examples/main.py
  14. +2 −0 setup.cfg
  15. +90 −0 setup.py
  16. +10 −0 tests/.config
  17. +26 −0 tests/__init__.py
  18. +34 −0 tests/base.py
  19. +22 −0 tests/core.py
View
@@ -0,0 +1,15 @@
+language: python
+
+python:
+ - "2.6"
+ - "2.7"
+
+branches:
+ only:
+ - master
+
+install:
+ - pip install nose
+
+script:
+ - make travis
View
12 AUTHORS
@@ -0,0 +1,12 @@
+Receptor is written and maintained by Alexandr Lispython and
+various contributors:
+
+Development Lead
+~~~~~~~~~~~~~~~~
+
+- Alex Lispython <alex@obout.ru>
+
+Patches and Suggestions
+~~~~~~~~~~~~~~~~~~~~~~~
+
+
View
@@ -0,0 +1,8 @@
+Fab Magic Changelog
+====================
+
+
+# v0.0.1 (27-10-2012)
+---------------------
+
+- First version
View
33 LICENSE
@@ -0,0 +1,33 @@
+Copyright (c) 2012 by Alexandr Lispython (alex@obout.ru) and contributors.
+See AUTHORS for more details.
+
+Some rights reserved.
+
+Redistribution and use in source and binary forms of the software as well
+as documentation, with or without modification, are permitted provided
+that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* 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.
+
+* The names of the contributors may not be used to endorse or
+ promote products derived from this software without specific
+ prior written permission.
+
+THIS SOFTWARE AND DOCUMENTATION 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 OWNER
+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 AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
View
@@ -0,0 +1,14 @@
+include *.txt *.md *.rst Makefile *.py AUTHORS ChangeLog LICENSE
+recursive-include commandor *.py
+recursive-exclude commandor *.pyo *.pyc
+recursive-include docs *.txt *.py *.rst *.md *
+recursive-include docs *
+recursive-include tests *.py
+recursive-include commandor/magic_templates/ *
+recursive-include examples *
+recursive-exclude docs *.pyc
+recursive-exclude docs *.pyo
+recursive-exclude tests *.pyc
+recursive-exclude tests *.pyo
+recursive-exclude examples *.pyc
+recursive-exclude examples *.pyo
View
@@ -0,0 +1,32 @@
+all: clean-pyc test
+
+test:
+ python setup.py nosetests --stop --tests tests.py
+
+travis:
+ python setup.py nosetests --tests tests.py
+
+coverage:
+ python setup.py nosetests --with-coverage --cover-package=commandor --cover-html --cover-html-dir=coverage_out coverage
+
+
+shell:
+ ../venv/bin/ipython
+
+audit:
+ python setup.py autdit
+
+release:
+ python setup.py sdist upload
+
+clean-pyc:
+ find . -name '*.pyc' -exec rm -f {} +
+ find . -name '*.pyo' -exec rm -f {} +
+ find . -name '*~' -exec rm -f {} +
+
+clean: clean-pyc
+ find . -name '*.egg' -exec rm -f {} +
+ find . -name '*.egg-info' -exec rm -rf {} +
+
+find-print:
+ grep -r --include=*.py --exclude-dir=venv --exclude=fabfile* --exclude=tests.py --exclude-dir=tests --exclude-dir=commands 'print' ./
View
@@ -0,0 +1,54 @@
+Welcome to Commandor's documentation!
+=============================================
+
+Collections of Megic Recipes for Fabric
+
+.. image:: https://secure.travis-ci.org/Lispython/commandor.png
+ :target: https://secure.travis-ci.org/Lispython/commandor
+
+
+Overview
+--------
+
+- Servers configuration
+
+
+INSTALLATION
+------------
+
+
+You can install the most recent commandor version using `easy_install`_::
+
+ easy_install commandor
+
+or `pip`_::
+
+ pip install commandor
+
+
+.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall
+.. _pip: http://pypi.python.org/pypi/pip
+
+
+Contribute
+----------
+
+#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
+ There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.
+#. Fork `the repository`_ on Github to start making your changes to the **develop** branch (or branch off of it).
+#. Write a test which shows that the bug was fixed or that the feature works as expected.
+#. Send a pull request and bug the maintainer until it gets merged and published.
+
+
+
+CONTRIBUTE
+----------
+
+Fork https://github.com/Lispython/commandor/ , create commit and pull request.
+
+
+SEE ALSO
+--------
+
+- `Receptor <http://github.com/Lispython/receptor>`_
+.. _`the repository`: https://github.com/Lispython/commandor/
View
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+"""
+Commandor
+~~~~~~~~~
+
+Python script options and args parser
+
+:copyright: (c) 2012 by Alexandr Lispython (alex@obout.ru).
+:license: BSD, see LICENSE for more details.
+:github: http://github.com/Lispython/commandor
+"""
+
+__all__ = 'VERSION', 'VERSION_INFO',\
+ 'Commandor', 'Command'
+
+
+__author__ = "Alex Lispython (alex@obout.ru)"
+__license__ = "BSD, see LICENSE for more details"
+__version_info__ = (0, 0, 1)
+__build__ = 0x000001
+__version__ = ".".join(map(str, __version_info__))
+__maintainer__ = "Alexandr Lispython (alex@obout.ru)"
+
+VERSION = __version__
+VERSION_INFO = __version_info__
+
+
+from base import Commandor, Command
Oops, something went wrong.

0 comments on commit 795fcc0

Please sign in to comment.