-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial CITATION.cff * Remove distutils support from setup.py It doesn't support some setup kwargs (e.g. package_data) and is actually not recommended to be used directly. setuptools should be used instead * Remove unused argument from setup * Enable installation of citation and license files with Euphonic * Update CITATION.cff - Add authors - Update description - Add CASTEP and Phonopy to keywords * Update readme * Add simple tests for LICENSE/CITATION.cff install * Add citation mention to docs * Update changelog
- Loading branch information
1 parent
a5174b3
commit f074c62
Showing
7 changed files
with
122 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
cff-version: "1.1.0" | ||
message: "If you have used Euphonic in your research, please cite it as below" | ||
abstract: "Euphonic is a Python package for efficient simulation of phonon bandstructures, density of states and inelastic neutron scattering intensities from force constants" | ||
authors: | ||
- family-names: "Fair" | ||
given-names: "Rebecca L." | ||
- family-names: "Jackson" | ||
given-names: "Adam J." | ||
orcid: "https://orcid.org/0000-0001-5272-6530" | ||
- family-names: "King" | ||
given-names: "James Charles" | ||
- family-names: "Le" | ||
given-names: "Manh Duc" | ||
- family-names: "Pettitt" | ||
given-names: "Connor" | ||
- family-names: "Tucker" | ||
given-names: "Gregory Scott" | ||
orcid: "https://orcid.org/0000-0002-2787-8054" | ||
- family-names: "Voneshen" | ||
given-names: "D. J." | ||
title: "Euphonic" | ||
version: "0.5.2" | ||
date-released: "2021-06-02" | ||
license: "GPL-3.0-only" | ||
repository: "https://github.com/pace-neutrons/Euphonic" | ||
url: "euphonic.readthedocs.io/en/latest" | ||
keywords: | ||
- "Python" | ||
- "physics" | ||
- "phonons" | ||
- "inelastic neutron scattering" | ||
- "CASTEP" | ||
- "Phonopy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
include euphonic/LICENSE | ||
include euphonic/CITATION.cff | ||
include euphonic/data/* | ||
include euphonic/_version.py | ||
include versioneer.py | ||
include c/*.h | ||
include c/*.c | ||
include versioneer.py | ||
include euphonic/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from importlib_resources import open_text | ||
import yaml | ||
|
||
import euphonic | ||
|
||
|
||
class TestInstalledFiles: | ||
|
||
def test_license_is_installed(self): | ||
with open_text(euphonic, 'LICENSE') as fp: | ||
license_data = fp.readlines() | ||
assert 'GNU GENERAL PUBLIC LICENSE' in license_data[0] | ||
|
||
def test_citation_cff_is_installed(self): | ||
with open_text(euphonic, 'CITATION.cff') as fp: | ||
citation_data = yaml.safe_load(fp) | ||
assert 'cff-version' in citation_data |