Skip to content

Commit fdceb92

Browse files
authored
Merge pull request #47 from Tieqiong/cookie
Refactor: Cookiecut (merge the other ones first)
2 parents 3ce7204 + 178507a commit fdceb92

Some content is hidden

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

59 files changed

+1005
-1051
lines changed

.codecov.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1-
fixes:
2-
- ".*/site-packages/::src/"
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]

.codespell/ignore_words.txt

-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ socio-economic
1010
;; Frobenius norm used in np.linalg.norm
1111
fro
1212

13-
;; abbreviation for "structure"
14-
struc
15-
16-
;; method name within JournalPanel class
17-
onText
18-
19-
;; a method name within JournalPanel class
20-
delt
21-
2213
;; structure file format
2314
discus
2415

.coveragerc

-22
This file was deleted.

.gitarchive.cfg

-5
This file was deleted.

.gitattributes

-7
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release (GitHub/PyPI) and Deploy Docs
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*" # Trigger on all tags initially, but tag and release privilege are verified in _build-wheel-release-upload.yml
8+
9+
jobs:
10+
release:
11+
uses: Billingegroup/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0
12+
with:
13+
project: diffpy.srreal
14+
c_extension: true
15+
github_admin_username: sbillinge
16+
secrets:
17+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
18+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}

.github/workflows/check-news-item.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Check for News
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
8+
jobs:
9+
check-news-item:
10+
uses: Billingegroup/release-scripts/.github/workflows/_check-news-item.yml@v0
11+
with:
12+
project: diffpy.srreal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
release:
8+
types:
9+
- prereleased
10+
- published
11+
workflow_dispatch:
12+
13+
jobs:
14+
matrix-coverage:
15+
uses: Billingegroup/release-scripts/.github/workflows/_matrix-and-codecov-on-merge-to-main.yml@v0
16+
with:
17+
project: diffpy.srreal
18+
c_extension: true
19+
headless: false
20+
secrets:
21+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Deploy Documentation on Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
docs:
8+
uses: Billingegroup/release-scripts/.github/workflows/_publish-docs-on-release.yml@v0
9+
with:
10+
project: diffpy.srreal
11+
c_extension: true
12+
headless: false

.gitignore

+69-29
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,92 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
13
*.py[cod]
4+
*$py.class
25

36
# C extensions
47
*.so
58

6-
# Packages
7-
*.egg
8-
*.egg-info
9-
dist
10-
build
11-
eggs
12-
parts
13-
bin
14-
var
15-
sdist
16-
temp
17-
develop-eggs
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
venv/
24+
*.egg-info/
1825
.installed.cfg
19-
lib
20-
lib64
21-
tags
26+
*.egg
27+
bin/
28+
temp/
29+
tags/
2230
errors.err
2331

32+
# PyInstaller
33+
# Usually these files are written by a python script from a template
34+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
35+
*.manifest
36+
*.spec
37+
2438
# Installer logs
2539
pip-log.txt
40+
pip-delete-this-directory.txt
2641
MANIFEST
2742

2843
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
2946
.coverage
30-
.tox
47+
.coverage.*
48+
.cache
3149
nosetests.xml
50+
coverage.xml
51+
*,cover
52+
.hypothesis/
3253

3354
# Translations
3455
*.mo
56+
*.pot
3557

3658
# Mr Developer
3759
.mr.developer.cfg
3860
.project
3961
.pydevproject
40-
.settings
41-
42-
# SCons build files
43-
.gdb_history
44-
.sconf_temp/
45-
.sconsign.dblite
46-
config.log
47-
/sconscript.local
48-
/sconsvars.py
49-
50-
# version information
51-
setup.cfg
52-
/src/diffpy/*/version.cfg
62+
63+
# Django stuff:
64+
*.log
65+
66+
# Sphinx documentation
67+
docs/build/
68+
docs/source/generated/
69+
70+
# pytest
71+
.pytest_cache/
72+
73+
# PyBuilder
74+
target/
75+
76+
# Editor files
77+
# mac
78+
.DS_Store
79+
*~
80+
81+
# vim
82+
*.swp
83+
*.swo
84+
85+
# pycharm
86+
.idea/
87+
88+
# VSCode
89+
.vscode/
90+
91+
# Ipython Notebook
92+
.ipynb_checkpoints

AUTHORS.rst

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Authors
2+
=======
3+
4+
Pavol Juhas,
5+
Chris Farrow,
6+
Simon J.L. Billinge
7+
8+
Contributors
9+
------------
10+
11+
For a list of contributors, visit
12+
https://github.com/diffpy/diffpy.srreal/graphs/contributors

AUTHORS.txt

-9
This file was deleted.

CHANGELOG.md

-41
This file was deleted.

CHANGELOG.rst

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
=============
2+
Release Notes
3+
=============
4+
5+
.. current developments
6+
7+
8+
Version 1.3.0 2019-03-13
9+
=========================
10+
11+
Main differences from version 1.2.
12+
13+
**Added:**
14+
15+
* Support for Python 3.7, 3.6, 3.5 in addition to 2.7.
16+
* Validation of compiler options from `python-config`.
17+
* Make scons scripts compatible with Python 3 and Python 2.
18+
* `ConstantPeakWidth` attributes `uisowidth`, `bisowidth` to ease
19+
PDF simulation with uniform isotropic atom displacements.
20+
21+
**Changed:**
22+
23+
* Require libdiffpy 1.4 or later.
24+
* Build Anaconda package with Anaconda C++ compiler.
25+
* Allow language standard c++11.
26+
* Pickle format for `PDFCalculator`, `DebyePDFCalculator`,
27+
`OverlapCalculator`, `PeakWidthModel`, `PeakProfile`, `PDFEnvelope`,
28+
`PDFBaseline`, and `ScatteringFactorTable` objects.
29+
30+
**Deprecated:**
31+
32+
* Variable `__gitsha__` in the `version` module renamed to `__git_commit__`.
33+
* `libdiffpy_version_info` attribute `git_sha` renamed to `git_commit`.
34+
35+
**Removed**
36+
37+
* Unused method `BVParam.__hash__`.
38+
* Disable pickling of `BasePairQuantity` as it is in effect abstract.
39+
* Pickling of Python-added attributes to exported C++ classes.
40+
* Function `get_libdiffpy_version_info` from the `version` module.
41+
42+
**Fixed**
43+
44+
* Return value conversion of `CrystalStructureAdapter` methods
45+
`expandLatticeAtom` and `getEquivalentAtoms` methods.
46+
Make them return a `list` of `Atom` objects.
47+
* Name suffix resolution of `boost_python` shared library.

0 commit comments

Comments
 (0)