Commit 605e2150 authored by David Seaward's avatar David Seaward
Browse files

click application skeleton


Signed-off-by: David Seaward's avatarDavid Seaward <david.seaward@puri.sm>
parents
.idea
Pipfile.lock
*.egg-info
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
click = '>=6.0,<7.0'
shipwright = {path = ".", editable = true}
[dev-packages]
[requires]
python_version = "3.6"
# PSH Shipwright
*Shipwright* is a command-line maintenance tool for operating a Purist
Services Host (PSH).
## Prerequisites
* Python 3.x
* pipenv (use `pip install --user pipenv`)
* See `Pipfile` for additional Python prerequisites
* Download Git repo
## Installation
```bash
cd /path/to/shipwright
pipenv install
```
## Usage
```bash
cd /path/to/shipwright
pipenv run shipwright --help
```
## Sharing and contributions
PSH Shipwright
<https://source.puri.sm/purist/shipwright>
Copyright 2018 Purism SPC
SPDX-License-Identifier: AGPL-3.0-or-later
Shared under AGPL-3.0-or-later. We adhere to the Contributor Covenant
1.4 without modification, and certify origin per DCO 1.1 with a
signed-off-by line. Contributions under the same terms are welcome.
from setuptools import setup
setup(
name='shipwright',
version='0.0.1',
py_modules=['shipwright'],
install_requires=[
'Click',
],
entry_points='''
[console_scripts]
shipwright=shipwright:cli
''',
)
import click
@click.command()
def cli():
"""Example script."""
click.echo('Hello World!')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment