Skip to content

Commit 0ef0ed0

Browse files
authored
Merge pull request #164 from cadenmyers13/update030
skpkg: run `package update` for skpkg 0.3.0
2 parents a391b7a + cee67de commit 0ef0ed0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+350
-156
lines changed

.github/ISSUE_TEMPLATE/release_checklist.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ assignees: ""
1111
- [ ] All PRs/issues attached to the release are merged.
1212
- [ ] All the badges on the README are passing.
1313
- [ ] 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.
14+
- [ ] Locally rendered documentation contains all appropriate pages, tutorials, and other human-written text is up-to-date with any changes in the code.
15+
- [ ] All API references are included. To check this, run `conda install scikit-package` and then `package build api-doc`. Review any edits made by rerendering the docs locally.
1616
- [ ] Installation instructions in the README, documentation, and the website are updated.
1717
- [ ] Successfully run any tutorial examples or do functional testing with the latest Python version.
1818
- [ ] Grammar and writing quality are checked (no typos).
1919
- [ ] Install `pip install build twine`, run `python -m build` and `twine check dist/*` to ensure that the package can be built and is correctly formatted for PyPI release.
20+
- [ ] Dispatch matrix testing to test the release on all Python versions and systems. If you do not have permission to run this workflow, tag the maintainer and say `@maintainer, please dispatch matrix testing workflow`.
2021

2122
Please tag the maintainer (e.g., @username) in the comment here when you are ready for the PyPI/GitHub release. Include any additional comments necessary, such as version information and details about the pre-release here:
2223

@@ -34,7 +35,7 @@ Please let the maintainer know that all checks are done and the package is ready
3435
<!-- After the maintainer releases the PyPI package, please check the following when creating a PR for conda-forge release.-->
3536

3637
- [ ] Ensure that the full release has appeared on PyPI successfully.
37-
- [ ] New package dependencies listed in `conda.txt` and `test.txt` are added to `meta.yaml` in the feedstock.
38+
- [ ] New package dependencies listed in `conda.txt` and `tests.txt` are added to `meta.yaml` in the feedstock.
3839
- [ ] Close any open issues on the feedstock. Reach out to the maintainer if you have questions.
3940
- [ ] Tag the maintainer for conda-forge release.
4041

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build and Publish Docs on Dispatch
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
get-python-version:
8+
uses: scikit-package/release-scripts/.github/workflows/_get-python-version-latest.yml@v0
9+
with:
10+
python_version: 0
11+
12+
docs:
13+
uses: scikit-package/release-scripts/.github/workflows/_release-docs.yml@v0
14+
with:
15+
project: diffpy.srfit
16+
c_extension: false
17+
headless: false
18+
python_version: ${{ fromJSON(needs.get-python-version.outputs.latest_python_version) }}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release (GitHub/PyPI) and Deploy Docs
1+
name: Build Wheel, Release on GitHub/PyPI, and Deploy Docs
22

33
on:
44
workflow_dispatch:
@@ -7,12 +7,12 @@ on:
77
- "*" # Trigger on all tags initially, but tag and release privilege are verified in _build-wheel-release-upload.yml
88

99
jobs:
10-
release:
10+
build-release:
1111
uses: scikit-package/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0
1212
with:
1313
project: diffpy.srfit
1414
c_extension: false
15-
maintainer_GITHUB_username: sbillinge
15+
maintainer_GITHUB_username: cadenmyers13, sbillinge
1616
secrets:
1717
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
1818
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}

.github/workflows/matrix-and-codecov-on-merge-to-main.yml renamed to .github/workflows/matrix-and-codecov.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
name: CI
1+
name: Matrix and Codecov
22

33
on:
4+
# push:
5+
# branches:
6+
# - main
47
release:
58
types:
69
- prereleased

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Authors
22
=======
33

4-
Christopher Farrow, Pavol Juhas, Simon J. L. Billinge, and members of the Billinge Group
4+
Christopher Farrow, Pavol Juhas, Caden Myers, Simon J. L. Billinge, and members of the Billinge Group
55

66
Contributors
77
------------

CODE-OF-CONDUCT.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Enforcement
6767

6868
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6969
reported to the community leaders responsible for enforcement at
70-
sb2896@columbia.edu. All complaints will be reviewed and investigated promptly and fairly.
70+
cjm2304@columbia.edu and sbillinge@ucsb.edu. All complaints will be reviewed and investigated promptly and fairly.
7171

7272
All community leaders are obligated to respect the privacy and security of the
7373
reporter of any incident.

LICENSE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ OPEN SOURCE LICENSE AGREEMENT
99
- Copyright (c) 2008-2012, The Trustees of Columbia University in the City of New York
1010
- Copyright (c) 2014-2019, Brookhaven Science Associates, Brookhaven National Laboratory
1111
- Copyright (c) 2020-2025, The Trustees of Columbia University in the City of New York
12-
12+
- Copyright (c) 2026-present, The DiffPy Team.
1313

1414
The "DiffPy-CMI" is distributed subject to the following license conditions:
1515

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ global-exclude __pycache__ # Exclude Python cache directories.
1111
global-exclude .git* # Exclude git files and directories.
1212
global-exclude .idea # Exclude PyCharm project settings.
1313
exclude .codecov.yml
14-
exclude .coveragerc

README.rst

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
:target: https://anaconda.org/conda-forge/diffpy.srfit
2626

2727
.. |PR| image:: https://img.shields.io/badge/PR-Welcome-29ab47ff
28+
:target: https://github.com/diffpy/diffpy.srfit/pulls
2829

2930
.. |PyPI| image:: https://img.shields.io/pypi/v/diffpy.srfit
3031
:target: https://pypi.org/project/diffpy.srfit/
@@ -38,7 +39,7 @@
3839
diffpy.srfit
3940
============
4041

41-
Configurable code for solving atomic structures.
42+
Generalized code base for modeling problems.
4243

4344
The diffpy.srfit package provides the framework for building a global optimizer
4445
on the fly from components such as function calculators (that calculate
@@ -62,6 +63,23 @@ obtain the total cost function. Additionally, diffpy.srfit is designed to be
6263
extensible, allowing the user to integrate external calculators to perform
6364
co-refinements with other techniques.
6465

66+
67+
SrFit has tools for coherently combining known information about a
68+
material to derive other properties, in particular material structure.
69+
SrFit allows the customization and creation of structure
70+
representations, profile calculators, constraints, restraints and file
71+
input parsers. The customized pieces can be glued together within SrFit
72+
to optimize a structure, or other physically relevant information from
73+
one or more experimental profiles. Other known information about the
74+
system of interest can be included with arbitrarily complex constraints
75+
and restraints. In this way, the end user creates a customized fitting
76+
application that suits the problem to the available information.
77+
78+
The subpackages herein define various pieces of the SrFit framework.
79+
Developers are encouraged to work through the examples described in the
80+
documentation to learn how to use and customize the various parts of
81+
SrFit.
82+
6583
For more information about the diffpy.srfit library, please consult our `online documentation <https://diffpy.github.io/diffpy.srfit>`_.
6684

6785
Citation
@@ -94,10 +112,6 @@ The following creates and activates a new environment named ``diffpy.srfit_env``
94112
conda create -n diffpy.srfit_env diffpy.srfit
95113
conda activate diffpy.srfit_env
96114

97-
To confirm that the installation was successful, type ::
98-
99-
python -c "import diffpy.srfit; print(diffpy.srfit.__version__)"
100-
101115
The output should print the latest version displayed on the badges above.
102116

103117
This will install the minimal `diffpy.srfit` installation. It will often be used
@@ -136,6 +150,19 @@ and run the following ::
136150

137151
pip install .
138152

153+
This package also provides command-line utilities. To check the software has been installed correctly, type ::
154+
155+
diffpy.srfit --version
156+
157+
You can also type the following command to verify the installation. ::
158+
159+
python -c "import diffpy.srfit; print(diffpy.srfit.__version__)"
160+
161+
162+
To view the basic usage and available commands, type ::
163+
164+
diffpy.srfit -h
165+
139166
Getting Started
140167
---------------
141168

@@ -167,12 +194,12 @@ trying to commit again.
167194

168195
Improvements and fixes are always appreciated.
169196

170-
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.srfit/blob/main/CODE_OF_CONDUCT.rst>`_.
197+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.srfit/blob/main/CODE-OF-CONDUCT.rst>`_.
171198

172199
Contact
173200
-------
174201

175-
For more information on diffpy.srfit please visit the project `web-page <https://diffpy.github.io/>`_ or email Simon Billinge at sb2896@columbia.edu.
202+
For more information on diffpy.srfit please visit the project `web-page <https://diffpy.github.io/>`_ or email the maintainers ``Caden Myers (cjm2304@columbia.edu) and Simon J. L. Billinge (sbillinge@ucsb.edu)``.
176203

177204
Acknowledgements
178205
----------------

cookiecutter.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"author_names": "Christopher Farrow, Pavol Juhas, Caden Myers, Simon J. L. Billinge",
3+
"author_emails": "farrowch@gmail.com, pavol.juhas@gmail.com, cjm2304@columbia.edu, sbillinge@ucsb.edu",
4+
"maintainer_names": "Caden Myers, Simon J. L. Billinge",
5+
"maintainer_emails": "cjm2304@columbia.edu, sbillinge@ucsb.edu",
6+
"maintainer_github_usernames": "cadenmyers13, sbillinge",
7+
"contributors": "Christopher Farrow, Pavol Juhas, Caden Myers, Simon J. L. Billinge, and members of the DiffPy community.",
8+
"license_holders": "The DiffPy Team",
9+
"project_name": "diffpy.srfit",
10+
"github_username_or_orgname": "diffpy",
11+
"github_repo_name": "diffpy.srfit",
12+
"conda_pypi_package_dist_name": "diffpy.srfit",
13+
"package_dir_name": "diffpy.srfit",
14+
"project_short_description": "Generalized code base for modeling problems.",
15+
"project_keywords": "regression, modeling, fitting, diffraction, PDF",
16+
"minimum_supported_python_version": "3.11",
17+
"maximum_supported_python_version": "3.13",
18+
"project_needs_c_code_compiled": "No",
19+
"project_has_gui_tests": "No"
20+
}

0 commit comments

Comments
 (0)