Skip to content

Commit c932300

Browse files
authored
Merge pull request #15 from ycexiao/update-readme
docs: update `README`
2 parents d591699 + 0a48d18 commit c932300

5 files changed

Lines changed: 31 additions & 36 deletions

File tree

README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@
3636
.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue
3737
:target: https://github.com/diffpy/diffpy.apps/issues
3838

39-
User applications to help with tasks using diffpy packages
39+
User applications to help with tasks using diffpy packages. Currently it
40+
contains
4041

41-
* LONGER DESCRIPTION HERE
42+
- `runmacro`: A runner for DiffPy macro files.
4243

4344
For more information about the diffpy.apps library, please consult our `online documentation <https://diffpy.github.io/diffpy.apps>`_.
4445

@@ -63,7 +64,7 @@ To add "conda-forge" to the conda channels, run the following in a terminal. ::
6364
We want to install our packages in a suitable conda environment.
6465
The following creates and activates a new environment named ``diffpy.apps_env`` ::
6566

66-
conda create -n diffpy.apps_env diffpy.apps
67+
conda create -n diffpy.apps_env diffpy.apps python=3.13
6768
conda activate diffpy.apps_env
6869

6970
The output should print the latest version displayed on the badges above.

news/update-readme.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
**Added:**
2+
3+
* Also add ``diffpy.apps`` as an entry point.
4+
* Add ``runmacro`` in the ``README``.
5+
6+
**Changed:**
7+
8+
* Use ``python=3.13`` as default before ``python=3.14`` is supported by ``diffpy.cmi``.
9+
10+
**Deprecated:**
11+
12+
* <news item>
13+
14+
**Removed:**
15+
16+
* <news item>
17+
18+
**Fixed:**
19+
20+
* <news item>
21+
22+
**Security:**
23+
24+
* <news item>

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ exclude = [] # exclude packages matching these glob patterns (empty by default)
5151
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
5252

5353
[project.scripts]
54+
"diffpy.apps" = "diffpy.apps.apps:main"
5455
"diffpy.app" = "diffpy.apps.apps:main"
5556

5657
[tool.setuptools.dynamic]

src/diffpy/apps/apps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def main():
2929

3030
parser.add_argument(
3131
"--version",
32-
action="store_true",
33-
help="Show the program's version number and exit",
32+
action="version",
33+
version=f"diffpy.apps {__version__}",
3434
)
3535
apps_parsers = parser.add_subparsers(
3636
title="Available applications",

src/diffpy/apps/functions.py

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

0 commit comments

Comments
 (0)