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

Commit 64ef463

Browse files
committed
Merge branch 'skeleton'
2 parents 9b575e6 + b788584 commit 64ef463

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

.github/workflows/code.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@ jobs:
100100
- name: Install with locked dependencies
101101
if: matrix.lock
102102
run: |
103-
touch requirements.txt requirements_dev.txt
103+
echo '# runtime dependencies' > requirements.txt
104+
echo '# developer dependencies' > requirements_dev.txt
105+
# above avoids zero length requirements files
104106
pip install -r requirements.txt -e .
105-
pip freeze --exclude-editable > requirements.txt
107+
pip freeze --exclude-editable >> requirements.txt
106108
pip install -r requirements_dev.txt -e .[dev]
107-
pip freeze --exclude-editable > requirements_dev.txt
109+
pip freeze --exclude-editable >> requirements_dev.txt
108110
109111
- name: Install with latest dependencies
110112
if: ${{ ! matrix.lock }}

CONTRIBUTING.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,38 @@ Use vscode devcontainer as follows::
3030
$ tox -p
3131

3232

33+
To run locally
34+
~~~~~~~~~~~~~~
35+
36+
Get the source source code and run the unit tests directly
37+
on your workstation as follows::
38+
39+
$ git clone git://github.com/epics-containers/python3-pip-skeleton.git
40+
$ cd python3-pip-skeleton
41+
$ virtualenv .venv
42+
$ source .venv/bin/activate
43+
$ pip install -e .[dev]
44+
$ tox -p
45+
46+
In both cases tox -p runs in parallel the following checks:
47+
48+
- Build Spinx Documentation
49+
- run pytest on all tests in ./tests
50+
- run mypy linting on all files in ./src ./tests
51+
- run pre-commit checks:
52+
53+
- run flake8 style checks against all source
54+
- run black formatting checks against all source
55+
56+
Use vscode devcontainer as follows::
57+
58+
$ git clone git://github.com/epics-containers/python3-pip-skeleton.git
59+
$ vscode python3-pip-skeleton
60+
Click on 'Reopen in Container' when prompted
61+
In a vscode Terminal:
62+
$ tox -p
63+
64+
3365
To run locally
3466
~~~~~~~~~~~~~~
3567

@@ -142,6 +174,14 @@ When this happens:
142174

143175
.. _release: https://github.com/epics-containers/python3-pip-skeleton/releases
144176

177+
178+
Checking Dependencies
179+
---------------------
180+
181+
To see a graph of the python package dependency tree type::
182+
183+
pipdeptree
184+
145185
Apart from this, ``main`` and ``skeleton`` should always be deployable,
146186
and are considered the latest release.
147187

0 commit comments

Comments
 (0)