Skip to content

Commit 9b16f3b

Browse files
authored
Merge pull request #71 from diffpy/skpkg-migration
Skpkg migration
2 parents e8292b5 + 2005b2f commit 9b16f3b

218 files changed

Lines changed: 15696 additions & 17916 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.clang-format‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
BasedOnStyle: Google
2+
3+
IndentWidth: 2
4+
ContinuationIndentWidth: 2
5+
TabWidth: 2
6+
UseTab: Never
7+
8+
ColumnLimit: 80
9+
10+
SortIncludes: false

‎.codecov.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
coverage:
2+
status:
3+
project: # more options at https://docs.codecov.com/docs/commit-status
4+
default:
5+
target: auto # use the coverage from the base commit, fail if coverage is lower
6+
threshold: 0% # allow the coverage to drop by
7+
8+
comment:
9+
layout: " diff, flags, files"
10+
behavior: default
11+
require_changes: false
12+
require_base: false # [true :: must have a base report to post]
13+
require_head: false # [true :: must have a head report to post]
14+
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]
15+
16+
# SCons compiles copies of the sources in build/coverage-<arch>/, map them back to src/
17+
fixes:
18+
- "build/coverage-x86_64/::src/"

‎.codespell/ignore_lines.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
;; Please include filenames and explanations for each ignored line.
2+
;; See https://docs.openverse.org/meta/codespell.html for docs.

‎.codespell/ignore_words.txt‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
;; Please include explanations for each ignored word (lowercase).
2+
;; See https://docs.openverse.org/meta/codespell.html for docs.
3+
4+
;; abbreviation for "materials" often used in a journal title
5+
mater
6+
7+
;; Frobenius norm used in np.linalg.norm
8+
fro
9+
10+
;; variable name for a pair type multiplicity in BaseDebyeSum.cpp
11+
multipl
12+
13+
;; custom scattering factor label used in TestScatteringFactorTable.hpp
14+
ccustom

‎.flake8‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# As of now, flake8 does not natively support configuration via pyproject.toml
2+
# https://github.com/microsoft/vscode-flake8/issues/135
3+
[flake8]
4+
exclude =
5+
.git,
6+
__pycache__,
7+
build,
8+
dist,
9+
docs/source/conf.py
10+
max-line-length = 79
11+
# Ignore some style 'errors' produced while formatting by 'black'
12+
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#labels-why-pycodestyle-warnings
13+
extend-ignore = E203

‎.gitattributes‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
3-
/.travis* export-ignore
4-
/conda-recipe/ export-ignore
5-
/doc export-ignore
3+
/docs export-ignore
64
gitarchive.cfg export-subst
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Bug Report or Feature Request
3+
about: Report a bug or suggest a new feature!
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
### Problem
10+
11+
<!--
12+
For a bug report, please copy and paste any error messages from the application or command-line here.
13+
For a feature request, please state how the new functionality could benefit the community.
14+
-->
15+
16+
### Proposed solution
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: Release
3+
about: Checklist and communication channel for GitHub and conda-forge release
4+
title: "Ready for <version-number> GitHub/conda-forge release"
5+
labels: "release"
6+
assignees: ""
7+
---
8+
9+
### GitHub rc-release preparation checklist:
10+
11+
- [ ] All PRs/issues attached to the release are merged.
12+
- [ ] All the badges on the README are passing.
13+
- [ ] License information is verified as correct. If you are unsure, please comment below.
14+
- [ ] Locally rendered documentation contains all appropriate pages and other human-written text is up-to-date with any changes in the code.
15+
- [ ] Installation instructions in the README, documentation, and the website are updated.
16+
- [ ] Grammar and writing quality are checked (no typos).
17+
- [ ] `FALLBACK_VERSION` in `site_scons/fallback_version.py` is updated to `<version-number>.post0`. Without this, the SCons build fails after tagging.
18+
- [ ] `scons test` passes locally with the latest conda-forge compilers and dependencies.
19+
- [ ] Dispatch matrix testing to test the release on all systems. If you do not have permission to run this workflow, tag the maintainer and say `@maintainer, please dispatch matrix testing workflow`. Matrix testing also runs automatically after a GitHub release is published, but it does not block the release, so check that it passes.
20+
21+
Please tag the maintainer (e.g., @username) in the comment here when you are ready for the GitHub release. Include any additional comments necessary, such as version information and details about the pre-release here:
22+
23+
### GitHub full-release preparation checklist:
24+
25+
- [ ] The rc GitHub release and its source tarball appear correctly on the releases page.
26+
- [ ] Docs are deployed successfully to `https://www.diffpy.org/libdiffpy`.
27+
- [ ] Successfully run all tests and do functional testing, e.g., with `diffpy.srreal` built against the rc.
28+
29+
Please let the maintainer know that all checks are done and the package is ready for full release.
30+
31+
### conda-forge release preparation checklist:
32+
33+
<!-- After the maintainer releases on GitHub, please check the following when creating a PR for conda-forge release.-->
34+
35+
- [ ] Ensure that the full release has appeared on GitHub successfully.
36+
- [ ] `version` and `sha256` of the GitHub source tarball are updated in `meta.yaml` in the feedstock.
37+
- [ ] New package dependencies listed in `build.txt`, `conda.txt` and `tests.txt` are added to `meta.yaml` in the feedstock.
38+
- [ ] `license_file` in `meta.yaml` points to `LICENSE.rst` (renamed from `LICENSE.txt`).
39+
- [ ] Close any open issues on the feedstock. Reach out to the maintainer if you have questions.
40+
- [ ] Tag the maintainer for conda-forge release.
41+
42+
### Post-release checklist
43+
44+
<!-- Before closing this issue, please complete the following: -->
45+
46+
- [ ] Install the released package from conda-forge and conduct functional testing using the installation guide in the README. Attach screenshots/results as comments.
47+
- [ ] Documentation (README, API references, and websites) is deployed without broken links or missing figures.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### What problem does this PR address?
2+
3+
<!-- Provide a brief overview and link to the issue. Attach outputs, including screenshots (before/after), if helpful for the reviewer. -->
4+
5+
### What should the reviewer(s) do?
6+
7+
<!-- Merge the code, provide feedback, initiate a discussion, etc. -->
8+
9+
<!--
10+
Use the following checklist items when applicable (select only what applies):
11+
- [ ] This PR introduces a public-facing change (e.g., figures, CLI input/output, API).
12+
- [ ] Documentation (e.g., tutorials, examples, README) has been updated.
13+
- [ ] A tracking issue or plan to update documentation exists.
14+
- [ ] This PR affects internal functionality only (no user-facing change).
15+
-->
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Set up C++ tests
2+
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Fetch upstream release tags
7+
shell: bash
8+
run: git fetch --tags https://github.com/diffpy/libdiffpy.git
9+
10+
- name: Check out CxxTest 4.4
11+
uses: actions/checkout@v6
12+
with:
13+
repository: CxxTest/cxxtest
14+
ref: 191adddb3876ab389c0c856e1c03874bf70f8ee4
15+
path: build/cxxtest
16+
17+
- name: Prepare C++ test configuration
18+
shell: python {0}
19+
run: |
20+
import runpy
21+
runpy.run_path('.github/scripts/configure-tests.py')
22+
23+
- name: Create build environment
24+
uses: conda-incubator/setup-miniconda@v3
25+
with:
26+
activate-environment: test
27+
channels: conda-forge
28+
conda-remove-defaults: "true"
29+
auto-update-conda: false
30+
auto-activate-base: false
31+
python-version: "3.14"
32+
environment-file: build/test-environment.yml
33+
channel-priority: strict

0 commit comments

Comments
 (0)