Skip to content

Commit 47ddc42

Browse files
committed
Add cookiecutter src init
1 parent bbae242 commit 47ddc42

File tree

2 files changed

+21
-24
lines changed

2 files changed

+21
-24
lines changed

src/diffpy/__init__.py

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
#!/usr/bin/env python
22
##############################################################################
33
#
4-
# diffpy by DANSE Diffraction group
5-
# Simon J. L. Billinge
6-
# (c) 2008 trustees of the Michigan State University.
7-
# All rights reserved.
4+
# (c) 2024 The Trustees of Columbia University in the City of New York.
5+
# All rights reserved.
86
#
9-
# File coded by: Pavol Juhas
7+
# File coded by: Billinge Group members and community contributors.
108
#
11-
# See AUTHORS.txt for a list of people who contributed.
12-
# See LICENSE.txt for license information.
9+
# See GitHub contributions for a more detailed list of contributors.
10+
# https://github.com/diffpy/diffpy.pdfgui/graphs/contributors
11+
#
12+
# See LICENSE.rst for license information.
1313
#
1414
##############################################################################
1515

16-
"""diffpy - tools for structure analysis by diffraction.
17-
18-
Blank namespace package.
19-
"""
16+
"""Blank namespace package for module diffpy."""
2017

2118

2219
from pkgutil import extend_path
2320

2421
__path__ = extend_path(__path__, __name__)
2522

26-
2723
# End of file

src/diffpy/pdfgui/version.py

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
#!/usr/bin/env python
22
##############################################################################
33
#
4-
# PDFgui by DANSE Diffraction group
5-
# Simon J. L. Billinge
6-
# (c) 2008 trustees of the Michigan State University.
7-
# All rights reserved.
4+
# (c) 2024 The Trustees of Columbia University in the City of New York.
5+
# All rights reserved.
86
#
9-
# File coded by: Pavol Juhas
7+
# File coded by: Billinge Group members and community contributors.
108
#
11-
# See AUTHORS.txt for a list of people who contributed.
12-
# See LICENSE.txt for license information.
9+
# See GitHub contributions for a more detailed list of contributors.
10+
# https://github.com/diffpy/diffpy.pdfgui/graphs/contributors
11+
#
12+
# See LICENSE.rst for license information.
1313
#
1414
##############################################################################
1515

16-
"""Definition of __version__ and __date__."""
16+
"""Definition of __version__."""
17+
18+
# We do not use the other three variables, but can be added back if needed.
19+
# __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]
1720

18-
import os
19-
import time
20-
from importlib.metadata import distribution, version
21+
# obtain version information
22+
from importlib.metadata import version
2123

22-
__date__ = time.ctime(os.path.getctime(distribution("diffpy.pdfgui")._path))
2324
__version__ = version("diffpy.pdfgui")
2425

2526
# End of file

0 commit comments

Comments
 (0)