Skip to content

Commit 4bbb732

Browse files
authored
Merge branch 'pyscf:master' into master
2 parents b81e01b + 6c1acbd commit 4bbb732

File tree

3 files changed

+23
-26
lines changed

3 files changed

+23
-26
lines changed

.github/workflows/publish.yml

+16-19
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ jobs:
3131
run: |
3232
ls ${{ github.workspace }}/linux-wheels
3333
- name: Publish to PyPI
34-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
35-
uses: pypa/gh-action-pypi-publish@release/v1
36-
with:
37-
user: __token__
38-
#password: ${{ secrets.PYPI_TEST_API_TOKEN }}
39-
#repository_url: https://test.pypi.org/legacy/
40-
password: ${{ secrets.PYPI_API_TOKEN }}
41-
packages-dir: ${{ github.workspace }}/linux-wheels
42-
verbose: true
34+
run: |
35+
pip3 install twine
36+
export TWINE_USERNAME=__token__
37+
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
38+
twine upload --verbose linux-wheels/*
4339
4440
release-pypi-aarch64:
4541
runs-on: ubuntu-latest
@@ -64,7 +60,6 @@ jobs:
6460
mkdir -p /root/wheelhouse $src/linux-wheels && \
6561
sed -i "/if basename(fn) not in needed_libs:/s/basename.*libs/1/" /opt/_internal/pipx/venvs/auditwheel/lib/python*/site-packages/auditwheel/wheel_abi.py && \
6662
sed -i "/if src_path is None/a\ continue" /opt/_internal/pipx/venvs/auditwheel/lib/python*/site-packages/auditwheel/repair.py && \
67-
sed -i "s/numpy/h5py==3.10/" $src/pyproject.toml && \
6863
export PATH=/opt/python/cp39-cp39/bin:$PATH && \
6964
/opt/python/cp39-cp39/bin/pip wheel -v --no-deps --no-clean -w /root/wheelhouse $src && \
7065
export whl=`ls /root/wheelhouse/pyscf_forge-*-linux_*.whl` && \
@@ -73,15 +68,11 @@ jobs:
7368
run: |
7469
ls ${{ github.workspace }}/linux-wheels
7570
- name: Publish to PyPI
76-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
77-
uses: pypa/gh-action-pypi-publish@release/v1
78-
with:
79-
user: __token__
80-
#password: ${{ secrets.PYPI_TEST_API_TOKEN }}
81-
#repository_url: https://test.pypi.org/legacy/
82-
password: ${{ secrets.PYPI_API_TOKEN }}
83-
packages-dir: ${{ github.workspace }}/linux-wheels
84-
verbose: true
71+
run: |
72+
pip3 install twine
73+
export TWINE_USERNAME=__token__
74+
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
75+
twine upload --verbose linux-wheels/*
8576
8677
release-pypi-sdist:
8778
runs-on: ubuntu-latest
@@ -103,6 +94,12 @@ jobs:
10394
password: ${{ secrets.PYPI_API_TOKEN }}
10495
packages-dir: ${{ github.workspace }}/dist
10596
verbose: true
97+
- name: Publish to PyPI
98+
run: |
99+
pip3 install twine
100+
export TWINE_USERNAME=__token__
101+
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
102+
twine upload --verbose linux-wheels/*
106103
107104
# release-pypi-macos-x86:
108105
# name: Build wheels for macos

pyscf/lib/dft/libxc_itrf2.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ int LIBXC_is_hybrid(const xc_func_type *func)
710710
{
711711
int hyb;
712712

713-
#if XC_MAJOR_VERSION <= 6
713+
#if XC_MAJOR_VERSION <= 7
714714
switch(func->info->family)
715715
{
716716
#ifdef XC_FAMILY_HYB_LDA
@@ -734,7 +734,7 @@ double LIBXC_hybrid_coeff(const xc_func_type *func)
734734
{
735735
double factor;
736736

737-
#if XC_MAJOR_VERSION <= 6
737+
#if XC_MAJOR_VERSION <= 7
738738
switch(func->info->family)
739739
{
740740
#ifdef XC_FAMILY_HYB_LDA
@@ -769,7 +769,7 @@ void LIBXC_rsh_coeff(const xc_func_type *func, double *rsh_pars) {
769769
rsh_pars[1] = 0.0;
770770
rsh_pars[2] = 0.0;
771771

772-
#if XC_MAJOR_VERSION <= 6
772+
#if XC_MAJOR_VERSION <= 7
773773
XC(hyb_cam_coef)(func, &rsh_pars[0], &rsh_pars[1], &rsh_pars[2]);
774774
#else
775775
switch(xc_hyb_type(func)) {
@@ -781,7 +781,7 @@ void LIBXC_rsh_coeff(const xc_func_type *func, double *rsh_pars) {
781781
}
782782

783783
int LIBXC_is_cam_rsh(const xc_func_type *func) {
784-
#if XC_MAJOR_VERSION <= 6
784+
#if XC_MAJOR_VERSION <= 7
785785
return func->info->flags & XC_FLAGS_HYB_CAM;
786786
#else
787787
return (xc_hyb_type(func) == XC_HYB_CAM);
@@ -1084,7 +1084,7 @@ void LIBXC_xc_func_set_params(const int nfn, xc_func_type *fn_obj, const double
10841084
// set the range-separated parameter
10851085
if (omega[i] != 0) {
10861086
// skip if func is not a RSH functional
1087-
#if XC_MAJOR_VERSION <= 6
1087+
#if XC_MAJOR_VERSION <= 7
10881088
if (func->cam_omega != 0) {
10891089
func->cam_omega = omega[i];
10901090
}
@@ -1096,7 +1096,7 @@ void LIBXC_xc_func_set_params(const int nfn, xc_func_type *fn_obj, const double
10961096
// Recursively set the sub-functionals if they are RSH
10971097
// functionals
10981098
for (j = 0; j < func->n_func_aux; j++) {
1099-
#if XC_MAJOR_VERSION <= 6
1099+
#if XC_MAJOR_VERSION <= 7
11001100
if (func->func_aux[j]->cam_omega != 0) {
11011101
func->func_aux[j]->cam_omega = omega[i];
11021102
}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
NAME = 'pyscf-forge'
16+
NAME = 'pyscf_forge'
1717
AUTHOR = 'Pyscf Developer'
1818
AUTHOR_EMAIL = None
1919
DESCRIPTION = 'Staging ground for PySCF core features'

0 commit comments

Comments
 (0)