Skip to content

Commit 90658de

Browse files
committed
Add readme, doc, project.toml
1 parent f644142 commit 90658de

9 files changed

+102
-204
lines changed

.pre-commit-config.yaml

-45
This file was deleted.

Makefile

-106
This file was deleted.

README.rst

+8-10
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
.. |Black| image:: https://img.shields.io/badge/code_style-black-black
1616
:target: https://github.com/psf/black
1717

18-
.. |CI| image:: https://github.com/diffpy/diffpy.pdffit2/actions/workflows/main.yml/badge.svg
19-
:target: https://github.com/diffpy/diffpy.pdffit2/actions/workflows/main.yml
18+
.. |CI| image:: https://github.com/diffpy/diffpy.pdffit2/actions/workflows/matrix-and-codecov-on-merge-to-main.yml/badge.svg
19+
:target: https://github.com/diffpy/diffpy.pdffit2/actions/workflows/matrix-and-codecov-on-merge-to-main.yml
2020

2121
.. |Codecov| image:: https://codecov.io/gh/diffpy/diffpy.pdffit2/branch/main/graph/badge.svg
2222
:target: https://codecov.io/gh/diffpy/diffpy.pdffit2
@@ -35,7 +35,7 @@
3535
.. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue
3636
:target: https://github.com/diffpy/diffpy.pdffit2/issues
3737

38-
Real space structure refinement to atomic pair distribution function.
38+
PDFfit2 - space structure refinement to atomic pair distribution function
3939

4040
The diffpy.pdffit2 package provides functions for calculation and
4141
refinement of atomic Pair Distribution Function (PDF) from crystal
@@ -58,6 +58,8 @@ To learn more about diffpy.pdffit2 library, see the examples directory
5858
included in this distribution or the API documentation at
5959
http://www.diffpy.org/doc/pdffit2.
6060

61+
For more information about the diffpy.pdffit2 library, please consult our `online documentation <https://diffpy.github.io/diffpy.pdffit2>`_.
62+
6163
Citation
6264
--------
6365

@@ -102,11 +104,7 @@ Then, to fully install ``diffpy.pdffit2`` in our active environment, run ::
102104

103105
Another option is to use ``pip`` to download and install the latest release from
104106
`Python Package Index <https://pypi.python.org>`_.
105-
To install using ``pip`` into your ``diffpy.pdffit2_env`` environment, we will also have to install dependencies ::
106-
107-
pip install -r https://raw.githubusercontent.com/diffpy/diffpy.pdffit2/main/requirements/run.txt
108-
109-
and then install the package ::
107+
To install using ``pip`` into your ``diffpy.pdffit2_env`` environment, type ::
110108

111109
pip install diffpy.pdffit2
112110

@@ -155,9 +153,9 @@ trying to commit again.
155153

156154
Improvements and fixes are always appreciated.
157155

158-
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.pdffit2/blob/main/CODE_OF_CONDUCT.rst>`_.
156+
Before contribuing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.pdffit2/blob/main/CODE_OF_CONDUCT.rst>`_.
159157

160158
Contact
161159
-------
162160

163-
For more information on diffpy.pdffit2 please visit the project `web-page <https://diffpy.github.io/>`_ or email Prof. Simon Billinge at [email protected].
161+
For more information on diffpy.pdffit2 please visit the project `web-page <https://diffpy.github.io/>`_ or email Prof. Simon Billinge at [email protected].

doc/make.bat

+36-36
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
@ECHO OFF
2-
3-
pushd %~dp0
4-
5-
REM Command file for Sphinx documentation
6-
7-
if "%SPHINXBUILD%" == "" (
8-
set SPHINXBUILD=sphinx-build
9-
)
10-
set SOURCEDIR=source
11-
set BUILDDIR=build
12-
set SPHINXPROJ=PackagingScientificPython
13-
14-
if "%1" == "" goto help
15-
16-
%SPHINXBUILD% >NUL 2>NUL
17-
if errorlevel 9009 (
18-
echo.
19-
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
20-
echo.installed, then set the SPHINXBUILD environment variable to point
21-
echo.to the full path of the 'sphinx-build' executable. Alternatively you
22-
echo.may add the Sphinx directory to PATH.
23-
echo.
24-
echo.If you don't have Sphinx installed, grab it from
25-
echo.http://sphinx-doc.org/
26-
exit /b 1
27-
)
28-
29-
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
30-
goto end
31-
32-
:help
33-
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
34-
35-
:end
36-
popd
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
set SPHINXPROJ=PackagingScientificPython
13+
14+
if "%1" == "" goto help
15+
16+
%SPHINXBUILD% >NUL 2>NUL
17+
if errorlevel 9009 (
18+
echo.
19+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
20+
echo.installed, then set the SPHINXBUILD environment variable to point
21+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
22+
echo.may add the Sphinx directory to PATH.
23+
echo.
24+
echo.If you don't have Sphinx installed, grab it from
25+
echo.http://sphinx-doc.org/
26+
exit /b 1
27+
)
28+
29+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
30+
goto end
31+
32+
:help
33+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
34+
35+
:end
36+
popd

doc/source/api/diffpy.pdffit2.rst

+1
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ diffpy.pdffit2.ipy_ext module
3434
:members:
3535
:undoc-members:
3636
:show-inheritance:
37+

doc/source/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ https://github.com/diffpy/diffpy.pdffit2/graphs/contributors.
5050
Reference
5151
=========
5252

53-
If you use this program for a scientific research that leads to publication,
54-
we ask that you acknowledge use of the program by citing the following paper
53+
If you use this program for a scientific research that leads to publication,
54+
we ask that you acknowledge use of the program by citing the following paper
5555
in your publication:
5656

5757
C. L. Farrow, P. Juhás, J. W. Liu, D. Bryndin, E. S. Božin, J. Bloch, Th. Proffen
5858
and S. J. L. Billinge, PDFfit2 and PDFgui: computer programs for studying nanostructure
5959
in crystals (https://stacks.iop.org/0953-8984/19/335219), *J. Phys.: Condens. Matter*, 19, 335219 (2007)
60-
60+
6161
============
6262
Installation
6363
============

doc/source/license.rst

+52-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,55 @@
22

33
.. index:: license
44

5-
.. include:: ../../LICENSE.rst
5+
License
6+
#######
7+
8+
This program is part of the DiffPy and DANSE open-source projects
9+
and is available subject to the conditions and terms laid out below.
10+
11+
If you use this program to do productive scientific research that leads
12+
to publication, we ask that you acknowledge use of the program by citing
13+
the following paper in your publication:
14+
15+
C\. L. Farrow, P. Juhás, J. W. Liu, D. Bryndin, E. S. Božin, J. Bloch, Th. Proffen
16+
and S. J. L. Billinge, PDFfit2 and PDFgui: computer programs for studying nanostructure
17+
in crystals (https://stacks.iop.org/0953-8984/19/335219), *J. Phys.: Condens. Matter*, 19, 335219 (2007)
18+
19+
Copyright 2006-2007, Board of Trustees of Michigan State University,
20+
Copyright 2008-2024, Board of Trustees of Columbia University in the
21+
city of New York. (Copyright holder indicated in each source file).
22+
23+
For more information please visit the project web-page:
24+
http://www.diffpy.org/
25+
or email Prof. Simon Billinge at [email protected]
26+
27+
Redistribution and use in source and binary forms, with or without
28+
modification, are permitted provided that the following conditions
29+
are met:
30+
31+
* Redistributions of source code must retain the above copyright
32+
notice, this list of conditions and the following disclaimer.
33+
34+
* Redistributions in binary form must reproduce the above copyright
35+
notice, this list of conditions and the following disclaimer in the
36+
documentation and/or other materials provided with the distribution.
37+
38+
* Neither the name of the copyright holder nor the names of its
39+
contributors may be used to endorse or promote products derived from
40+
this software without specific prior written permission.
41+
42+
THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER "AS IS". COPYRIGHT HOLDER
43+
EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS, EITHER
44+
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
45+
WARRANTIES OF MERCHANTABILITY, TITLE, FITNESS, ADEQUACY OR SUITABILITY
46+
FOR A PARTICULAR PURPOSE, AND ANY WARRANTIES OF FREEDOM FROM
47+
INFRINGEMENT OF ANY DOMESTIC OR FOREIGN PATENT, COPYRIGHTS, TRADE
48+
SECRETS OR OTHER PROPRIETARY RIGHTS OF ANY PARTY. IN NO EVENT SHALL
49+
COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR ANY DIRECT, INDIRECT,
50+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
51+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
52+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
53+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
54+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
55+
THIS SOFTWARE OR RELATING TO THIS AGREEMENT, EVEN IF ADVISED OF THE
56+
POSSIBILITY OF SUCH DAMAGE.

environment.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ name: diffpy.pdffit2
22
channels:
33
- conda-forge
44
dependencies:
5-
- python>=3.10
5+
- python=3
66
- pip
7-
- conda

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dirty_template = "{tag}"
4545
[tool.setuptools.packages.find]
4646
where = ["src"] # list of folders that contain the packages (["."] by default)
4747
include = ["*"] # package names should match these glob patterns (["*"] by default)
48-
exclude = ["diffpy.pdffit2.tests*"] # exclude packages matching these glob patterns (empty by default)
48+
exclude = [] # exclude packages matching these glob patterns (empty by default)
4949
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
5050

5151
[tool.setuptools.dynamic]

0 commit comments

Comments
 (0)