Skip to content

Commit 06adaf6

Browse files
recut
1 parent f86de7e commit 06adaf6

File tree

6 files changed

+89
-26
lines changed

6 files changed

+89
-26
lines changed

.github/ISSUE_TEMPLATE/bug_feature.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Bug Report or Feature Request
3+
about: Report a bug or suggest a new feature!
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
### Problem
10+
11+
<!--
12+
For a bug report, please copy and paste any error messages from the application or command-line here.
13+
For a feature request, please state how the new functionality could benefit the community.
14+
-->
15+
16+
### Proposed solution
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Release
3+
about: Checklist and communication channel for PyPI and GitHub release
4+
title: "Ready for <version-number> PyPI/GitHub release"
5+
labels: "release"
6+
assignees: ""
7+
---
8+
9+
### Release checklist for GitHub contributors
10+
11+
- [ ] All PRs/issues attached to the release are merged.
12+
- [ ] All the badges on the README are passing.
13+
- [ ] License information is verified as correct. If you are unsure, please comment below.
14+
- [ ] Locally rendered documentation contains all appropriate pages, including API references (check no modules are
15+
missing), tutorials, and other human written text is up-to-date with any changes in the code.
16+
- [ ] Installation instructions in the README, documentation and on the website (e.g., diffpy.org) are updated and
17+
tested
18+
- [ ] Successfully run any tutorial examples or do functional testing in some other way.
19+
- [ ] Grammar and writing quality have been checked (no typos).
20+
21+
Please mention @sbillinge when you are ready for release. Include any additional comments necessary, such as
22+
version information and details about the pre-release.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release (GitHub/PyPI)
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- '*' # Trigger on all tags initially, but tag and release privilege are verified in _build-wheel-release-upload.yml
8+
9+
jobs:
10+
release:
11+
uses: Billingegroup/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0
12+
with:
13+
project: diffpy.labpdfproc
14+
secrets:
15+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
16+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}

README.rst

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ To add "conda-forge" to the conda channels, run the following in a terminal. ::
8383
We want to install our packages in a suitable conda environment.
8484
The following creates and activates a new environment named ``diffpy.labpdfproc_env`` ::
8585

86-
conda create -n diffpy.labpdfproc_env python=3
86+
conda create -n diffpy.labpdfproc_env diffpy.labpdfproc
8787
conda activate diffpy.labpdfproc_env
8888

89-
Then, to fully install ``diffpy.labpdfproc`` in our active environment, run ::
89+
To confirm that the installation was successful, type ::
9090

91-
conda install diffpy.labpdfproc
91+
python -c "import diffpy.labpdfproc; print(diffpy.labpdfproc.__version__)"
9292

93-
Another option is to use ``pip`` to download and install the latest release from
93+
The output should print the latest version displayed on the badges above.
94+
95+
If the above does not work, you can use ``pip`` to download and install the latest release from
9496
`Python Package Index <https://pypi.python.org>`_.
9597
To install using ``pip`` into your ``diffpy.labpdfproc_env`` environment, type ::
9698

@@ -102,33 +104,17 @@ and run the following ::
102104

103105
pip install .
104106

105-
Example
106-
-------
107-
108-
Navigate to the directory that contains 1D diffraction patterns that you would like to process.
109-
Activate the conda environment (`conda activate diffpy.labpdfproc_env`) that contains the package and run the following command ::
110-
111-
labpdfproc <muD> <path/to/inputfile.txt>
112-
113-
Here replace <muD> with the value of muD for your sample
114-
and <path/to/inputfile.txt> with the path and filename of your input file.
115-
For example, if the uncorrected data case is called zro2_mo.xy and is in the current directory
116-
and it has a muD of 2.5 then the command would be ::
117-
118-
labpdfproc 2.5 zro2_mo.xy
119-
120-
Please type ::
121-
122-
labpdfproc --help
107+
Getting Started
108+
---------------
123109

124-
for more information on the available options.
110+
You may consult our `online documentation <https://diffpy.github.io/diffpy.labpdfproc>`_ for tutorials and API references.
125111

126112
Support and Contribute
127113
----------------------
128114

129115
`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of diffpy.labpdfproc. Please join the diffpy.labpdfproc users community by joining the Google group. The diffpy.labpdfproc project welcomes your expertise and enthusiasm!
130116

131-
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.labpdfproc/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.labpdfproc/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
117+
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.labpdfproc/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.labpdfproc/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_.
132118

133119
Feel free to fork the project and contribute. To install diffpy.labpdfproc
134120
in a development mode, with its sources being directly used by Python

doc/source/license.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ OPEN SOURCE LICENSE AGREEMENT
99
=============================
1010
BSD 3-Clause License
1111

12-
Copyright (c) 2024, The Trustees of Columbia University in
12+
Copyright (c) 2024, The Trustees of Columbia University in
1313
the City of New York.
14-
All Rights Reserved.
14+
All Rights Reserved.
1515

1616
Redistribution and use in source and binary forms, with or without
1717
modification, are permitted provided that the following conditions are met:

news/recut.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* redo cookiecutter to add issue templates and update readme
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)