Skip to content

Commit 4773715

Browse files
authored
Merge pull request #153 from diffpy/migration
Migration
2 parents e88eb06 + 689af53 commit 4773715

20 files changed

+141
-94
lines changed

.flake8

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
# As of now, flake8 does not natively support configuration via pyproject.toml
2+
# https://github.com/microsoft/vscode-flake8/issues/135
13
[flake8]
24
exclude =
35
.git,
46
__pycache__,
57
build,
68
dist,
7-
doc/source/conf.py
9+
docs/source/conf.py
810
max-line-length = 115
911
# Ignore some style 'errors' produced while formatting by 'black'
1012
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#labels-why-pycodestyle-warnings

.github/ISSUE_TEMPLATE/release_checklist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Please let the maintainer know that all checks are done and the package is ready
3434
<!-- After the maintainer releases the PyPI package, please check the following when creating a PR for conda-forge release.-->
3535

3636
- [ ] 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.
37+
- [ ] New package dependencies listed in `conda.txt` and `tests.txt` are added to `meta.yaml` in the feedstock.
3838
- [ ] Close any open issues on the feedstock. Reach out to the maintainer if you have questions.
3939
- [ ] Tag the maintainer for conda-forge release.
4040

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.pdffit2

.isort.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[settings]
2+
# Keep import statement below line_length character limit
23
line_length = 115
34
multi_line_output = 3
45
include_trailing_comma = True

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ python:
1010
- requirements: requirements/docs.txt
1111

1212
sphinx:
13-
configuration: doc/source/conf.py
13+
configuration: docs/source/conf.py
File renamed without changes.

LICENSE.rst

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,26 @@ For more information please visit the project web-page:
2121
or email Prof. Simon Billinge at [email protected]
2222

2323
Redistribution and use in source and binary forms, with or without
24-
modification, are permitted provided that the following conditions
25-
are met:
26-
27-
* Redistributions of source code must retain the above copyright
28-
notice, this list of conditions and the following disclaimer.
29-
30-
* Redistributions in binary form must reproduce the above copyright
31-
notice, this list of conditions and the following disclaimer in the
32-
documentation and/or other materials provided with the distribution.
33-
34-
* Neither the name of the copyright holder nor the names of its
35-
contributors may be used to endorse or promote products derived from
36-
this software without specific prior written permission.
37-
38-
THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER "AS IS". COPYRIGHT HOLDER
39-
EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS, EITHER
40-
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
41-
WARRANTIES OF MERCHANTABILITY, TITLE, FITNESS, ADEQUACY OR SUITABILITY
42-
FOR A PARTICULAR PURPOSE, AND ANY WARRANTIES OF FREEDOM FROM
43-
INFRINGEMENT OF ANY DOMESTIC OR FOREIGN PATENT, COPYRIGHTS, TRADE
44-
SECRETS OR OTHER PROPRIETARY RIGHTS OF ANY PARTY. IN NO EVENT SHALL
45-
COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR ANY DIRECT, INDIRECT,
46-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
47-
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
48-
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
49-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
50-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
51-
THIS SOFTWARE OR RELATING TO THIS AGREEMENT, EVEN IF ADVISED OF THE
52-
POSSIBILITY OF SUCH DAMAGE.
24+
modification, are permitted provided that the following conditions are met:
25+
26+
1. Redistributions of source code must retain the above copyright notice, this
27+
list of conditions and the following disclaimer.
28+
29+
2. Redistributions in binary form must reproduce the above copyright notice,
30+
this list of conditions and the following disclaimer in the documentation
31+
and/or other materials provided with the distribution.
32+
33+
3. Neither the name of the copyright holder nor the names of its contributors
34+
may be used to endorse or promote products derived from this software
35+
without specific prior written permission.
36+
37+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
38+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
41+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
42+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
44+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.rst

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

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

2930
.. |PyPI| image:: https://img.shields.io/pypi/v/diffpy.pdffit2
3031
:target: https://pypi.org/project/diffpy.pdffit2/
@@ -116,16 +117,18 @@ Install pdffit2 using ``pip`` to download and install the latest version from `P
116117

117118
pip install diffpy.pdffit2
118119

119-
To confirm that the installation was successful, type ::
120-
121-
python -c "import diffpy.pdffit2; print(diffpy.pdffit2.__version__)"
122-
123120
If you prefer to install from sources, after installing the dependencies, obtain the source archive from
124121
`GitHub <https://github.com/diffpy/diffpy.pdffit2/>`_. Once installed, ``cd`` into your ``diffpy.pdffit2`` directory
125122
and run the following ::
126123

127124
pip install .
128125

126+
127+
You can type the following command to verify the installation is successful. ::
128+
129+
python -c "import diffpy.pdffit2; print(diffpy.pdffit2.__version__)"
130+
131+
129132
Getting Started
130133
---------------
131134

@@ -170,7 +173,7 @@ trying to commit again.
170173

171174
Improvements and fixes are always appreciated.
172175

173-
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.pdffit2/blob/main/CODE_OF_CONDUCT.rst>`_.
176+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.pdffit2/blob/main/CODE-OF-CONDUCT.rst>`_.
174177

175178
Contact
176179
-------

cookiecutter.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"maintainer_name": "Simon Billinge",
3+
"maintainer_email": "[email protected]",
4+
"maintainer_github_username": "sbillinge",
5+
"contributors": "Pavol Juhas, Chris Farrow, Simon Billinge, Billinge Group members",
6+
"license_holders": "The Trustees of Columbia University in the City of New York",
7+
"project_name": "diffpy.pdffit2",
8+
"github_username_or_orgname": "diffpy",
9+
"github_repo_name": "diffpy.pdffit2",
10+
"conda_pypi_package_dist_name": "diffpy.pdffit2",
11+
"package_dir_name": "diffpy.pdffit2",
12+
"project_short_description": "PDFfit2 - real space structure refinement program.",
13+
"project_keywords": "PDF, structure refinement",
14+
"minimum_supported_python_version": "3.11",
15+
"maximum_supported_python_version": "3.13",
16+
"project_needs_c_code_compiled": "Yes",
17+
"project_has_gui_tests": "No"
18+
}

docs/source/conf.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
#
4-
# diffpy.pdffit2 documentation build configuration file, created by
4+
# diffpy.pdffit2 documentation build configuration file, created by # noqa: E501
55
# sphinx-quickstart on Thu Jan 30 15:49:41 2014.
66
#
77
# This file is execfile()d with the current directory set to its
@@ -22,17 +22,19 @@
2222
try:
2323
fullversion = version("diffpy.pdffit2")
2424
except Exception:
25-
fullversion = "No version found. The correct version will appear in the released version."
25+
fullversion = "No version found. The correct version will appear in the released version." # noqa: E501
2626

2727
# If extensions (or modules to document with autodoc) are in another directory,
2828
# add these directories to sys.path here. If the directory is relative to the
29-
# documentation root, use Path().resolve() to make it absolute, like shown here.
29+
# documentation root, use Path().resolve() to make it absolute, like shown here. # noqa: E501
3030
# sys.path.insert(0, str(Path(".").resolve()))
3131
sys.path.insert(0, str(Path("../..").resolve()))
3232
sys.path.insert(0, str(Path("../../src").resolve()))
3333

3434
# abbreviations
35-
ab_authors = "Billinge group and community members."
35+
ab_authors = (
36+
"Pavol Juhas, Chris Farrow, Simon Billinge, Billinge Group members"
37+
)
3638

3739
# -- General configuration ------------------------------------------------
3840

@@ -56,7 +58,6 @@
5658
autodoc_mock_imports = [
5759
"diffpy.pdffit2.pdffit2",
5860
]
59-
6061
# Add any paths that contain templates here, relative to this directory.
6162
templates_path = ["_templates"]
6263

@@ -144,7 +145,7 @@
144145
"github_user": "diffpy",
145146
"github_repo": "diffpy.pdffit2",
146147
"github_version": "main",
147-
"conf_py_path": "/doc/source/",
148+
"conf_py_path": "/docs/source/",
148149
}
149150

150151
# Theme options are theme-specific and customize the look and feel of a theme

0 commit comments

Comments
 (0)