Skip to content

Commit 5ef5ea5

Browse files
authored
Merge pull request #74 from cadenmyers13/profile-docstring
doc: Example profile docstring
2 parents 6c1ca2c + dca7577 commit 5ef5ea5

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

news/profile-docstring.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* No news added.
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

src/diffpy/cmi/profilesmanager.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ class Profile:
4545
Extra requirement lines (scripts or packages).
4646
source : path-like
4747
Absolute path to the YAML file that defined the profile.
48+
49+
Profile Format
50+
--------------
51+
All profile `.yaml` files must have the following structure::
52+
53+
packs:
54+
- <pack_name>
55+
56+
extras:
57+
- <additional_package_name>
58+
59+
The file name is the profile identifier used for installing profiles.
60+
See `requirements/profiles/all.yml` for an example.
4861
"""
4962

5063
name: str

0 commit comments

Comments
 (0)