Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Python CLI GSoC15 - #437

Open
agentmilindu wants to merge 79 commits into
apache:gsoc-projects-2015from
agentmilindu:python-cli-gsoc15
Open

Python CLI GSoC15#437
agentmilindu wants to merge 79 commits into
apache:gsoc-projects-2015from
agentmilindu:python-cli-gsoc15

Conversation

@agentmilindu

Copy link
Copy Markdown
Contributor

No description provided.

 On branch python-cli
new file: components/org.apache.stratos.python.cli/src/main/python/cli/__init__.py
 On branch python-cli
new file: components/org.apache.stratos.python.cli/src/main/python/cli/setup.cfg
new file: components/org.apache.stratos.python.cli/src/main/python/cli/setup.py
 On branch python-cli
new file: components/org.apache.stratos.python.cli/src/main/python/tests/__init__.py
 On branch python-cli
renamed: components/org.apache.stratos.python.cli/src/main/python/cli/setup.cfg -> components/org.apache.stratos.python.cli/src/main/python/setup.cfg
renamed: components/org.apache.stratos.python.cli/src/main/python/cli/setup.py -> components/org.apache.stratos.python.cli/src/main/python/setup.py
Refer https://pythonhosted.org/an_example_pypi_project/setuptools.html#directory-structure
 On branch python-cli
new file: components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
Main file contains the main() method, the entry point of the CLI
 On branch python-cli
new file: components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
new file: components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py
 On branch python-cli
modified: components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
 On branch python-cli
modified: cli/CLI.py
modified: cli/Main.py
modified: cli/Stratos.py
modified: setup.py
Now anyone build and install stratos CLI by,
$ python setup.py build
$ python setup.py install
or use
$ python setup.py develop
instead `install` if developing
 On branch python-cli
renamed: README.md -> README.rst
Using rst(reStructuredText) file as setup.py's description, this will become the description of stratos on Pip.
Therefor adding the default Stratos CLI guide there.
Python CLI specific details would reside on README.md
 On branch python-cli
new file: .gitignore
Ignoring
build/
dist/
stratos.egg-info/
 On branch python-cli
new file: README.md
Python CLI specific README
 On branch python-cli
modified: setup.py
 On branch python-cli
new file: cli/Utils.py
 On branch python-cli
new file: cli/Logging.py
 On branch python-cli
modified: cli/CLI.py
new file: cli/Configs.py
modified: cli/Logging.py
 On branch python-cli
modified: components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py
modified: components/org.apache.stratos.python.cli/src/main/python/cli/Logging.py
 Using python os.path.join() to avoid forward/back slash problems
Setting empty strings as defaults for username and password evn vars instead of None

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like parameters are missing in the method comment.

@imesh

Copy link
Copy Markdown
Contributor

I think we have merged this PR (Python CLI) to master branch. If so shall we close this?
Thanks

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@agentmilindu@imesh