Skip to content

Commit 1fb41a6

Browse files
authored
Merge pull request #37 from cadenmyers13/update-installation
docs: update installation for cmi packs
2 parents 9e435b9 + c4b589f commit 1fb41a6

File tree

3 files changed

+91
-6
lines changed

3 files changed

+91
-6
lines changed

README.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,30 +92,35 @@ Use the `cmi` command-line interface to install and manage modular optional depe
9292
and to configure or execute user-defined workflows that combine multiple packs with optional post-installation steps,
9393
known as `profiles`. To use `cmi`, you can run the following example commands:
9494

95+
Show available commands and options,
96+
9597
.. code-block:: bash
96-
:caption: Show available commands and options
9798
9899
cmi -h
99100
101+
List installed and available packs and profiles,
102+
100103
.. code-block:: bash
101-
:caption: List installed and available packs and profiles
102104
103105
cmi pack list
104106
cmi profile list
105107
108+
Show details of a specific pack or profile,
109+
106110
.. code-block:: bash
107-
:caption: Show details of a specific pack or profile
108111
109112
cmi pack show <pack_name>
110113
cmi profile show <profile_name>
111114
115+
Install a pack or profile (by name or path),
116+
112117
.. code-block:: bash
113-
:caption: Install a pack or profile (by name or path)
114118
115119
cmi install <pack_name|profile_name|/absolute/path/to/profile>
116120
121+
List and get installed examples,
122+
117123
.. code-block:: bash
118-
:caption: List and get installed examples
119124
120125
cmi example list
121126
cmi example (copy) <example_name>

docs/source/getting-started.rst

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,69 @@ Installation
2424

2525
To install ``diffpy.cmi``, create a new conda environment or activate an existing environment and install the package from the conda-forge channel.
2626

27-
.. code-block:: console
27+
.. code-block:: bash
2828
2929
conda create -n diffpy.cmi-env
3030
conda install -c conda-forge diffpy.cmi
3131
conda activate diffpy.cmi-env
3232
33+
To confirm that the installation was successful, type
34+
35+
.. code-block:: bash
36+
37+
python -c "import diffpy.cmi; print(diffpy.cmi.__version__)"
38+
39+
The output should print the latest version.
40+
41+
If the above does not work, you can use ``pip`` to download and install the latest release from
42+
`Python Package Index <https://pypi.python.org>`_.
43+
To install using ``pip`` into your ``diffpy.cmi_env`` environment, type
44+
45+
.. code-block:: bash
46+
47+
pip install diffpy.cmi
48+
49+
Pack and Profile Installation
50+
-----------------------------
51+
52+
Use the `cmi` command-line interface to install and manage modular optional dependencies, known as `packs`,
53+
and to configure or execute user-defined workflows that combine multiple packs with optional post-installation steps,
54+
known as `profiles`. To use `cmi`, you can run the following example commands:
55+
56+
Show available commands and options with,
57+
58+
.. code-block:: bash
59+
60+
cmi -h
61+
62+
List installed and available packs and profiles,
63+
64+
.. code-block:: bash
65+
66+
cmi pack list
67+
cmi profile list
68+
69+
Show details of a specific pack or profile,
70+
71+
.. code-block:: bash
72+
73+
cmi pack show <pack_name>
74+
cmi profile show <profile_name>
75+
76+
Install a pack or profile (by name or path),
77+
78+
.. code-block:: bash
79+
80+
cmi install <pack_name>
81+
cmi install <profile_name>
82+
cmi install </absolute/path/to/profile>
83+
84+
List and get installed examples,
85+
86+
.. code-block:: bash
87+
88+
cmi example list
89+
cmi example (copy) <example_name>
3390
3491
Data and Examples
3592
-----------------

news/update-installation.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* Add installation instructions for packs.
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>

0 commit comments

Comments
 (0)