Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 3831601

Browse files
committed
changes in features.rst
1 parent a77de3f commit 3831601

File tree

11 files changed

+15
-94
lines changed

11 files changed

+15
-94
lines changed

.github/workflows/code.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99

1010
jobs:
1111
lint:
12+
# pull requests are a duplicate of a branch push if they are from within the
13+
# same repo. Skip these
1214
if: github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
1315
runs-on: "ubuntu-latest"
1416
steps:

README.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ python3-pip-skeleton
33

44
|code_ci| |docs_ci| |coverage| |pypi_version| |license|
55

6+
.. note::
7+
8+
This project contains template code only. For documentation on how to
9+
adopt this skeleton project see
10+
https://epics-containers.github.io/python3-pip-skeleton-cli
11+
612
This is where you should write a short paragraph that describes what your module does,
713
how it does it, and why people should use it.
814

@@ -15,18 +21,9 @@ Releases https://github.com/epics-containers/python3-pip-skeleton/releases
1521

1622
This is where you should put some images or code snippets that illustrate
1723
some relevant examples. If it is a library then you might put some
18-
introductory code here:
19-
20-
.. code:: python
21-
22-
from python3_pip_skeleton.hello import HelloClass
23-
24-
hello = HelloClass("me")
25-
print(hello.format_greeting())
26-
27-
Or if it is a commandline tool then you might put some example commands here::
24+
introductory code here.
2825

29-
python3-pip-skeleton person --times=2
26+
Or if it is a commandline tool then you might put some example commands here.
3027

3128
.. |code_ci| image:: https://github.com/epics-containers/python3-pip-skeleton/workflows/Code%20CI/badge.svg?branch=main
3229
:target: https://github.com/epics-containers/python3-pip-skeleton/actions?query=workflow%3A%22Code+CI%22

docs/how-to.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Practical step-by-step guides for the more experienced user.
88
.. toctree::
99
:caption: How-to Guides
1010

11-
how-to/accomplish-a-task
11+
how-to/contributing

docs/how-to/accomplish-a-task.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.

docs/reference.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Practical step-by-step guides for the more experienced user.
99
:caption: Reference
1010

1111
reference/api
12-
reference/contributing
1312
Releases <https://github.com/epics-containers/python3-pip-skeleton/releases>
1413
Index <genindex.html#http://>
1514

docs/reference/api.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ API
99
This is the internal API reference for python3_pip_skeleton
1010

1111
You can mix verbose text with docstring and signature extraction by
12-
using ``autoclass`` and ``autofunction`` directives instead of
13-
``automodule`` below.
12+
using ``autoclass`` and ``autofunction`` directives. Or use
13+
``automodule`` to generate the text entirely from a .py file.
1414

1515
.. data:: python3_pip_skeleton.__version__
1616
:type: str
1717

1818
Version number as calculated by https://github.com/pypa/setuptools_scm
19-
20-
.. automodule:: python3_pip_skeleton.hello
21-
:members:
22-
23-
``python3_pip_skeleton.hello``
24-
-----------------------------------------

docs/tutorials/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Installation
88
inside DLS, they are intended for external use.
99

1010
If you want to contribute to the library itself, please follow
11-
the `../reference/contributing` instructions.
11+
the `../how-to/contributing` instructions.
1212

1313

1414
Check your version of python

src/python3_pip_skeleton/__main__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
from argparse import ArgumentParser
22

33
from . import __version__
4-
from .hello import HelloClass, say_hello_lots
54

65
__all__ = ["main"]
76

87

98
def main(args=None):
109
parser = ArgumentParser()
1110
parser.add_argument("--version", action="version", version=__version__)
12-
parser.add_argument("name", help="Name of the person to greet")
13-
parser.add_argument("--times", type=int, default=5, help="Number of times to greet")
1411
args = parser.parse_args(args)
15-
say_hello_lots(HelloClass(args.name), args.times)
1612

1713

1814
# test with: pipenv run python -m python3_pip_skeleton

src/python3_pip_skeleton/hello.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)