Skip to content

Commit 25d6efd

Browse files
authored
Merge pull request #152 from stevenhua0320/skpkg-update
skpkg: redo scikit-package with latest version with minimal fix
2 parents 730a91e + 64d4e59 commit 25d6efd

38 files changed

Lines changed: 686 additions & 142 deletions

‎.github/ISSUE_TEMPLATE/release_checklist.md‎

Lines changed: 3 additions & 2 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

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.structure
16+
c_extension: false
17+
headless: false
18+
python_version: ${{ fromJSON(needs.get-python-version.outputs.latest_python_version) }}

‎.github/workflows/build-wheel-release-upload.yml‎

Lines changed: 2 additions & 2 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,7 +7,7 @@ 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.structure
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Matrix and Codecov
2+
3+
on:
4+
# push:
5+
# branches:
6+
# - main
7+
release:
8+
types:
9+
- prereleased
10+
- published
11+
workflow_dispatch:
12+
13+
jobs:
14+
matrix-coverage:
15+
uses: scikit-package/release-scripts/.github/workflows/_matrix-and-codecov-on-merge-to-main.yml@v0
16+
with:
17+
project: diffpy.structure
18+
c_extension: false
19+
headless: false
20+
secrets:
21+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

‎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+
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.

‎README.rst‎

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

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

2930
.. |PyPI| image:: https://img.shields.io/pypi/v/diffpy.structure
3031
:target: https://pypi.org/project/diffpy.structure/
@@ -99,6 +100,19 @@ and run the following ::
99100

100101
pip install .
101102

103+
This package also provides command-line utilities. To check the software has been installed correctly, type ::
104+
105+
diffpy.structure --version
106+
107+
You can also type the following command to verify the installation. ::
108+
109+
python -c "import diffpy.structure; print(diffpy.structure.__version__)"
110+
111+
112+
To view the basic usage and available commands, type ::
113+
114+
diffpy.structure -h
115+
102116
Getting Started
103117
---------------
104118

@@ -134,8 +148,15 @@ Improvements and fixes are always appreciated.
134148

135149
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.structure/blob/main/CODE-OF-CONDUCT.rst>`_.
136150

137-
Acknowledgement
138-
---------------
151+
Contact
152+
-------
153+
154+
For more information on diffpy.structure please visit the project `web-page <https://diffpy.github.io/>`_ or email the maintainer``Simon Billinge(sbillinge@ucsb.edu)``.
155+
156+
Acknowledgements
157+
----------------
158+
159+
``diffpy.structure`` is built and maintained with `scikit-package <https://scikit-package.github.io/scikit-package/>`_.
139160

140161
Space group codes in *spacegroupmod.py* and *mmlibspacegroups.py*
141162
originate from the `pymmlib project <http://pymmlib.sourceforge.net>`_.
@@ -144,8 +165,3 @@ Less common settings of space groups were generating using the
144165
`Computational Crystallography Toolbox <http://cctbx.sourceforge.net>`_.
145166

146167
``diffpy.structure`` is built and maintained with `scikit-package <https://scikit-package.github.io/scikit-package/>`_.
147-
148-
Contact
149-
-------
150-
151-
For more information on diffpy.structure please visit the project `web-page <https://diffpy.github.io/>`_ or email Prof. Simon Billinge at sb2896@columbia.edu.

‎cookiecutter.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"author_names": "Simon Billinge, Sangjoon Bob Lee",
3+
"author_emails": "sbillinge@ucsb.edu, sl5400@columbia.edu",
4+
"maintainer_names": "Simon Billinge, Sangjoon Bob Lee",
5+
"maintainer_emails": "sbillinge@ucsb.edu, sl5400@columbia.edu",
6+
"maintainer_github_usernames": "sbillinge, bobleesj",
7+
"contributors": "Chris Farrow, Pavol Juhas, Simon Billinge, Billinge Group members",
8+
"license_holders": "The Trustees of Columbia University in the City of New York",
9+
"project_name": "diffpy.structure",
10+
"github_username_or_orgname": "diffpy",
11+
"github_repo_name": "diffpy.structure",
12+
"conda_pypi_package_dist_name": "diffpy.structure",
13+
"package_dir_name": "diffpy.structure",
14+
"project_short_description": "Crystal structure container and parsers for structure formats.",
15+
"project_keywords": "diffpy, crystal structure data storage, CIF, PDB",
16+
"minimum_supported_python_version": "3.12",
17+
"maximum_supported_python_version": "3.14",
18+
"project_needs_c_code_compiled": "No",
19+
"project_has_gui_tests": "No"
20+
}

‎docs/source/api/diffpy.structure.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
:tocdepth: -1
22

3-
diffpy.structure package
4-
========================
3+
|title|
4+
=======
5+
6+
.. |title| replace:: diffpy.structure package
57

68
.. automodule:: diffpy.structure
79
:members:

‎docs/source/conf.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
sys.path.insert(0, str(Path("../../src").resolve()))
3333

3434
# abbreviations
35-
ab_authors = "Chris Farrow, Pavol Juhas, Simon Billinge, Billinge Group members"
35+
ab_authors = "Chris Farrow, Pavol Juhas, Simon Billinge, Billinge Group members"
3636

3737
# -- General configuration ------------------------------------------------
3838

@@ -50,7 +50,7 @@
5050
"sphinx.ext.intersphinx",
5151
"sphinx_rtd_theme",
5252
"sphinx_copybutton",
53-
"m2r",
53+
"m2r2",
5454
]
5555

5656
# Add any paths that contain templates here, relative to this directory.
@@ -222,7 +222,7 @@
222222

223223
# Output file base name for HTML help builder.
224224
basename = "diffpy.structure".replace(" ", "").replace(".", "")
225-
htmlhelp_basename = basename + "docs"
225+
htmlhelp_basename = basename + "doc"
226226

227227

228228
# -- Options for LaTeX output ---------------------------------------------

‎docs/source/index.rst‎

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44

55
.. |title| replace:: diffpy.structure documentation
66

7-
diffpy.structure - Crystal structure container and parsers for structure formats.
7+
``diffpy.structure`` - Crystal structure container and parsers for structure formats.
88

9-
| Software version |release|.
9+
| Software version |release|
1010
| Last updated |today|.
1111
12+
===============
13+
Getting started
14+
===============
15+
1216
The diffpy.structure package provides objects for storing atomic
1317
coordinates, displacement parameters and other crystal structure data.
1418
diffpy.structure supports import and export of structure data in several
@@ -22,16 +26,19 @@ includes definitions of all space groups in over 500 symmetry settings.
2226
Authors
2327
=======
2428

25-
diffpy.structure is developed by members of the Billinge Group at
26-
Columbia University and at Brookhaven National Laboratory including
27-
Pavol Juhás, Christopher L. Farrow, Xiaohao Yang, Simon J.L. Billinge.
28-
29-
For a detailed list of contributors see
29+
``diffpy.structure`` is developed by Chris Farrow, Pavol Juhas, Simon Billinge, Billinge Group members. This project is maintained by Simon Billinge. For a detailed list of contributors see
3030
https://github.com/diffpy/diffpy.structure/graphs/contributors.
3131

32-
===============
33-
Acknowledgments
34-
===============
32+
============
33+
Installation
34+
============
35+
36+
See the `README <https://github.com/diffpy/diffpy.structure#installation>`_
37+
file included with the distribution.
38+
39+
================
40+
Acknowledgements
41+
================
3542

3643
Space group codes in *spacegroupmod.py* and *mmlibspacegroups.py*
3744
originate from the pymmlib project, http://pymmlib.sourceforge.net.
@@ -58,23 +65,15 @@ by citing the following paper in your publication:
5865
<http://dx.doi.org/10.1107/S2053273315014473>`__,
5966
*Acta Crystallogr. A* **71**, 562-568 (2015).
6067

61-
============
62-
Installation
63-
============
64-
65-
See the `README <https://github.com/diffpy/diffpy.structure#installation>`_
66-
file included with the distribution.
67-
6868
=================
6969
Table of contents
7070
=================
71-
7271
.. toctree::
73-
:titlesonly:
72+
:maxdepth: 2
7473

75-
license
76-
release
7774
Package API <api/diffpy.structure>
75+
release
76+
license
7877

7978
=======
8079
Indices

0 commit comments

Comments
 (0)