Skip to content

Commit 54f5142

Browse files
committed
Tweaks to PyPI packaging and GitHub front-page
PyPI changes: - Changed overall cmd2 description - Fixed pip install warning due to unknown "docs_require" distribution option - No longer include examples and tests in PyPI *.tar.gz package GitHub README.md changes: - Changed top-level cmd2 description - Improved labels on build badges so it says "unix build: passing" and "windows build: passing" instead of two "build passing" badges right next to each other - Reorganized layout a little to hopefully do a better job explaining what cmd2 is earlier
1 parent 936e656 commit 54f5142

File tree

3 files changed

+72
-58
lines changed

3 files changed

+72
-58
lines changed

MANIFEST.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
include CHANGES.md README.md LICENSE
2-
recursive-include tests *.py *.txt
3-
recursive-include examples *.py *.txt
1+
include LICENSE
2+
include README.md
3+
include CHANGES.md

README.md

Lines changed: 45 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,57 @@
1-
cmd2
2-
====
3-
[![Build status](https://secure.travis-ci.org/python-cmd2/cmd2.png?branch=master)](https://travis-ci.org/python-cmd2/cmd2)
4-
[![Appveyor build status](https://ci.appveyor.com/api/projects/status/github/python-cmd2/cmd2?branch=master)](https://ci.appveyor.com/project/FedericoCeratto/cmd2)
5-
[![Documentation Status](https://readthedocs.org/projects/cmd2/badge/?version=latest)](http://cmd2.readthedocs.io/en/latest/?badge=latest)
6-
[![Latest Version](https://img.shields.io/pypi/v/cmd2.svg)](https://pypi.python.org/pypi/cmd2/)
1+
cmd2: a tool for building interactive command line applications
2+
===============================================================
3+
[![Latest Version](https://img.shields.io/pypi/v/cmd2.svg?style=flat-square&label=latest%20stable%20version)](https://pypi.python.org/pypi/cmd2/)
4+
[![Build status](https://img.shields.io/travis/python-cmd2/cmd2.svg?style=flat-square&label=unix%20build)](https://travis-ci.org/python-cmd2/cmd2)
5+
[![Appveyor build status](https://img.shields.io/appveyor/ci/FedericoCeratto/cmd2.svg?style=flat-square&label=windows%20build)](https://ci.appveyor.com/project/FedericoCeratto/cmd2)
76
[![codecov](https://codecov.io/gh/python-cmd2/cmd2/branch/master/graph/badge.svg)](https://codecov.io/gh/python-cmd2/cmd2)
8-
[![License](https://img.shields.io/pypi/l/cmd2.svg)](https://pypi.python.org/pypi/cmd2/)
7+
[![Documentation Status](https://readthedocs.org/projects/cmd2/badge/?version=latest)](http://cmd2.readthedocs.io/en/latest/?badge=latest)
98

10-
cmd2 is a tool for writing interactive command-line applications for Python 2.7 and Python 3.3+. It is based on the
11-
Python Standard Library's [cmd](https://docs.python.org/3/library/cmd.html) module, and can be used any place cmd is used simply by importing cmd2 instead. It is
12-
pure Python code with the only 3rd-party dependencies being on [six](https://pypi.python.org/pypi/six), [pyparsing](http://pyparsing.wikispaces.com),
13-
and [pyperclip](https://github.com/asweigart/pyperclip).
9+
cmd2 is a tool for building interactive command line applications in Python. Its goal is to make it quick and easy for developers to build feature-rich and user-friendly interactive command line applications. It provides a simple API which is an extension of Python's built-in [cmd](https://docs.python.org/3/library/cmd.html) module. cmd2 provides a wealth of features on top of cmd to make your life easier.
10+
11+
Main Features
12+
-------------
13+
- Searchable command history (`history` command and `<Ctrl>+r`)
14+
- Text file scripting of your application with `load` (`@`) and `_relative_load` (`@@`)
15+
- Python scripting of your application with ``pyscript``
16+
- Run shell commands with ``!``
17+
- Pipe command output to shell commands with `|`
18+
- Redirect command output to file with `>`, `>>`; input from file with `<`
19+
- Bare `>`, `>>` with no filename send output to paste buffer (clipboard)
20+
- `py` enters interactive Python console (opt-in `ipy` for IPython console)
21+
- Multi-line, case-insensitive, and abbreviated commands
22+
- Special-character command shortcuts (beyond cmd's `@` and `!`)
23+
- Settable environment parameters
24+
- Parsing commands with flags
25+
- Unicode character support (*Python 3 only*)
26+
- Good tab-completion of commands, file system paths, and shell commands`
27+
- Python 2.7 and 3.3+ support
28+
- Linux, macOS and Windows support
29+
- Trivial to provide built-in help for all commands
30+
- Built-in regression testing framework for your applications (transcript-based testing)
1431

15-
The latest documentation for cmd2 can be read online here: https://cmd2.readthedocs.io/en/latest/
32+
Installation
33+
------------
34+
On all operating systems, the latest stable version of `cmd2` can be installed using pip:
35+
36+
```bash
37+
pip install -U cmd2
38+
```
1639

17-
See the [Installation Instructions](https://cmd2.readthedocs.io/en/latest/install.html) in the cmd2 documentation for instructions on installing, upgrading, and
18-
uninstalling cmd2.
40+
cmd2 works with Python 2.7 and Python 3.3+ on Windows, macOS, and Linux. It is pure Python code with the only 3rd-party dependencies being on [six](https://pypi.python.org/pypi/six), [pyparsing](http://pyparsing.wikispaces.com),
41+
and [pyperclip](https://github.com/asweigart/pyperclip).
1942

20-
Bug reports may be submitted directly to the [issue tracker](https://github.com/python-cmd2/cmd2/issues). Pull Requests are welcome, see the
21-
[Contributor's Guide](https://github.com/python-cmd2/cmd2/blob/master/CONTRIBUTING.md) for more information.
43+
For information on other installation options, see [Installation Instructions](https://cmd2.readthedocs.io/en/latest/install.html) in the cmd2 documentation.
2244

23-
Feature Support
24-
---------------
45+
Documentation
46+
-------------
47+
The latest documentation for cmd2 can be read online here: https://cmd2.readthedocs.io/en/latest/
48+
49+
It is available in HTML, PDF, and ePub formats.
2550

26-
cmd2 provides the following features, in addition to those already existing in cmd:
2751

28-
- Searchable command history
29-
- Load commands from file, save to file, edit commands in file
30-
- Multi-line commands
31-
- Case-insensitive commands
32-
- Special-character shortcut commands (beyond cmd's `@` and `!`)
33-
- Settable environment parameters
34-
- Parsing commands with flags
35-
- Redirection to file with `>`, `>>`; input from file with `<`
36-
- Bare `>`, `>>` with no filename send output to paste buffer
37-
- Pipe output to shell commands with `|`
38-
- Simple transcript-based application testing
39-
- Unicode character support (*Python 3 only*)
40-
- Tab completion of file system paths for ``edit``, ``load``, ``pyscript``, ``save``, and ``shell`` commands
41-
- Integrated Python scripting capability via ``pyscript`` and ``py`` commands
42-
- (Optional) Embedded IPython shell integration via optional opt-in ``ipy`` command
4352

53+
Feature Overview
54+
----------------
4455
Instructions for implementing each feature follow.
4556

4657
- Searchable command history

setup.py

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,35 @@
66
from setuptools import setup
77

88
VERSION = '0.7.4'
9-
DESCRIPTION = "Extra features for standard library's cmd module"
10-
11-
LONG_DESCRIPTION = """cmd2 is an enhancement to the standard library's cmd module for Python 2.7
12-
and Python 3.3+. It is pure Python code with dependencies only on the six and pyparsing modules.
9+
DESCRIPTION = "cmd2 - a tool for building interactive command line applications in Python"
10+
LONG_DESCRIPTION = """cmd2 is a tool for building interactive command line applications in Python. Its goal is to make
11+
it quick and easy for developers to build feature-rich and user-friendly interactive command line applications. It
12+
provides a simple API which is an extension of Python's built-in cmd module. cmd2 provides a wealth of features on top
13+
of cmd to make your life easier.
1314
1415
The latest documentation for cmd2 can be read online here:
1516
https://cmd2.readthedocs.io/
1617
17-
Drop-in replacement adds several features for command-prompt tools:
18+
Main features:
1819
19-
* Searchable command history (commands: "history", "run")
20-
* Load commands from file, save to file, edit commands in file
21-
* Multi-line commands
22-
* Case-insensitive commands
23-
* Special-character shortcut commands (beyond cmd's "@" and "!")
24-
* Settable environment parameters
25-
* Parsing commands with flags
26-
* > (filename), >> (filename) redirect output to file
27-
* < (filename) gets input from file
28-
* bare >, >>, < redirect to/from paste buffer
29-
* accepts abbreviated commands when unambiguous
30-
* `py` enters interactive Python console
31-
* `pyscript` executes a Python script
32-
* Good tab-completion of commands and file system paths
33-
* test apps against sample session transcript (see examples/example.py)
20+
- Searchable command history (`history` command and `<Ctrl>+r`)
21+
- Text file scripting of your application with `load` (`@`) and `_relative_load` (`@@`)
22+
- Python scripting of your application with ``pyscript``
23+
- Run shell commands with ``!``
24+
- Pipe command output to shell commands with `|`
25+
- Redirect command output to file with `>`, `>>`; input from file with `<`
26+
- Bare `>`, `>>` with no filename send output to paste buffer (clipboard)
27+
- `py` enters interactive Python console (opt-in `ipy` for IPython console)
28+
- Multi-line, case-insensitive, and abbreviated commands
29+
- Special-character command shortcuts (beyond cmd's `@` and `!`)
30+
- Settable environment parameters
31+
- Parsing commands with flags
32+
- Unicode character support (*Python 3 only*)
33+
- Good tab-completion of commands, file system paths, and shell commands`
34+
- Python 2.7 and 3.3+ support
35+
- Linux, macOS and Windows support
36+
- Trivial to provide built-in help for all commands
37+
- Built-in regression testing framework for your applications (transcript-based testing)
3438
3539
Usable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd.
3640
"""
@@ -76,5 +80,4 @@
7680
keywords='command prompt console cmd',
7781
install_requires=INSTALL_REQUIRES,
7882
tests_require=TESTS_REQUIRE,
79-
docs_require=DOCS_REQUIRE,
8083
)

0 commit comments

Comments
 (0)