-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
52 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it as below." | ||
authors: | ||
- family-names: "Tannous" | ||
given-names: "Jaad Antoun" | ||
orcid: "XXX" | ||
- family-names: "Meyer" | ||
given-names: "Bradley Stewart" | ||
orcid: "https://orcid.org/0000-0001-6307-9818" | ||
title: "wnutils" | ||
version: 4.0.0 | ||
doi: 10.5281/zenodo.8193378 | ||
date-released: 2025-02-14 | ||
url: "https://github.com/jaadt7/lvlspy" |
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,11 +1,25 @@ | ||
# Script to automate build for PyPI. | ||
|
||
rm -fr dist | ||
cd lvlspy/IO | ||
cd lvlspy/IO/xml | ||
rm -fr xsd_pub | ||
git clone https://bitbucket.org/mbradle/liblvls_xsd.git xsd_pub | ||
cd .. | ||
cd ../../.. | ||
|
||
python -m pip install --upgrade build | ||
python -m build | ||
|
||
echo "" | ||
echo "All version numbers must be the same:" | ||
echo "" | ||
|
||
grep version lvlspy/__about__.py | grep -v "," | ||
grep version CITATION.cff | grep -v "cff-version" | ||
grep Version doc/source/changelog.rst | grep -v Versioning | head -1 | ||
|
||
echo "" | ||
echo "Check the release date:" | ||
echo "" | ||
grep date CITATION.cff | ||
echo "" | ||
|
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 |
---|---|---|
@@ -1,14 +1,7 @@ | ||
""" | ||
A subdirectoy of lvlspy to handle input and output | ||
A submodule of lvlspy to handle input and output | ||
""" | ||
|
||
import os | ||
from lvlspy.io.xml import * | ||
from lvlspy.io.ensdf import * | ||
|
||
xml_catalog = os.path.join(os.path.dirname(__file__), "xsd_pub/catalog") | ||
|
||
if "XML_CATALOG_FILES" in os.environ: | ||
os.environ["XML_CATALOG_FILES"] += " " + xml_catalog | ||
else: | ||
os.environ["XML_CATALOG_FILES"] = xml_catalog |
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,6 @@ | ||
""" | ||
A submodule to handle input and output of data in ENSDF format. | ||
""" | ||
|
||
import os | ||
from ._ensdf import * |
File renamed without changes.
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,13 @@ | ||
""" | ||
A module to handle input and output of xml. | ||
""" | ||
|
||
import os | ||
from ._xml import * | ||
|
||
xml_catalog = os.path.join(os.path.dirname(__file__), "xsd_pub/catalog") | ||
|
||
if "XML_CATALOG_FILES" in os.environ: | ||
os.environ["XML_CATALOG_FILES"] += " " + xml_catalog | ||
else: | ||
os.environ["XML_CATALOG_FILES"] = xml_catalog |
File renamed without changes.