Skip to content

Commit

Permalink
moving to python3.6 (#39)
Browse files Browse the repository at this point in the history
extra files
  • Loading branch information
hentt30 committed Aug 12, 2023
1 parent e17a814 commit bce302d
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build and upload to PyPI

env:
CIBW_BUILD: cp36-* cp37-* cp38-*
CIBW_BUILD: cp36-*
CIBW_BEFORE_BUILD: pip install --upgrade pip
CIBW_BEFORE_TEST: pip install pytest
CIBW_TEST_COMMAND: pytest {package}/tests
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: "3.8"
python-version: "3.6"

- name: Before build
run: pip install --upgrade pip
Expand All @@ -61,10 +61,10 @@ jobs:
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: "3.8"
python-version: "3.6"

- name: Build sdist
run: pip install --upgrade pip && pip install numpy==1.22.0 && python setup.py sdist build_src --inplace
run: pip install --upgrade pip && pip install numpy==1.19.5 && python setup.py sdist build_src --inplace

- uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
python: ["3.6", "3.7", "3.8"]
python: ["3.6"]

steps:
- uses: actions/checkout@v2
Expand Down
213 changes: 212 additions & 1 deletion minushalf/atomic_program/atomic_program-f2pywrappers.f
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
C -*- fortran -*-
C This file is autogenerated with f2py (version:1.21.1)
C This file is autogenerated with f2py (version:2)
C It contains Fortran 77 wrappers to fortran functions.

subroutine f2pywrapnucl_z (nucl_zf2pywrap, name)
Expand Down Expand Up @@ -35,6 +35,158 @@ subroutine f2pywrapchg_mism (chg_mismf2pywrap, xdelta)
end


subroutine f2pywrapleqi (leqif2pywrap, strng1, strng2)
external leqi
character*(*) strng1
character*(*) strng2
logical leqif2pywrap, leqi
leqif2pywrap = .not.(.not.leqi(strng1, strng2))
end


subroutine f2pywrapzbrent (zbrentf2pywrap, func, x1, x2, tol
&)
external zbrent
external func
double precision x1
double precision x2
double precision tol
double precision zbrentf2pywrap, zbrent
zbrentf2pywrap = zbrent(func, x1, x2, tol)
end


subroutine f2pywraprtbis (rtbisf2pywrap, func, x1, x2, xacc)
external rtbis
external func
double precision x1
double precision x2
double precision xacc
double precision rtbisf2pywrap, rtbis
rtbisf2pywrap = rtbis(func, x1, x2, xacc)
end


subroutine f2pywrapbrent (brentf2pywrap, func, x1, x2, tol)
external brent
external func
double precision x1
double precision x2
double precision tol
double precision brentf2pywrap, brent
brentf2pywrap = brent(func, x1, x2, tol)
end


subroutine f2pywrapsdot (sdotf2pywrap, n, sx, incx, sy, incy
&)
external sdot
integer n
integer incx
integer incy
double precision sx(*)
double precision sy(*)
double precision sdotf2pywrap, sdot
sdotf2pywrap = sdot(n, sx, incx, sy, incy)
end


subroutine f2pywrapepslon (epslonf2pywrap, x)
external epslon
double precision x
double precision epslonf2pywrap, epslon
epslonf2pywrap = epslon(x)
end


subroutine f2pywrappythag (pythagf2pywrap, a, b)
external pythag
double precision a
double precision b
double precision pythagf2pywrap, pythag
pythagf2pywrap = pythag(a, b)
end


subroutine f2pywrapsasum (sasumf2pywrap, n, sx, incx)
external sasum
integer n
integer incx
double precision sx(*)
double precision sasumf2pywrap, sasum
sasumf2pywrap = sasum(n, sx, incx)
end


subroutine f2pywrapisamax (isamaxf2pywrap, n, sx, incx)
external isamax
integer n
integer incx
double precision sx(*)
integer isamaxf2pywrap, isamax
isamaxf2pywrap = isamax(n, sx, incx)
end


subroutine f2pywrapisrchfgt (isrchfgtf2pywrap, n, array, inc
&, target)
external isrchfgt
integer n
integer inc
double precision target
double precision array(*)
integer isrchfgtf2pywrap, isrchfgt
isrchfgtf2pywrap = isrchfgt(n, array, inc, target)
end


subroutine f2pywrapdivdif (divdiff2pywrap, f, x, n, z, m)
external divdif
integer n
double precision z
integer m
double precision f(n)
double precision x(n)
double precision divdiff2pywrap, divdif
divdiff2pywrap = divdif(f, x, n, z, m)
end


subroutine f2pywrapdefined (definedf2pywrap, name)
external defined
character*(*) name
logical definedf2pywrap, defined
definedf2pywrap = .not.(.not.defined(name))
end


subroutine f2pywrapput_pair (put_pairf2pywrap, name, num_str
&)
external put_pair
character*(*) name
character*(*) num_str
logical put_pairf2pywrap, put_pair
put_pairf2pywrap = .not.(.not.put_pair(name, num_str))
end


subroutine f2pywrapset_value (set_valuef2pywrap, name, defau
&lt_str)
external set_value
character*(*) name
character*(*) default_str
double precision set_valuef2pywrap, set_value
set_valuef2pywrap = set_value(name, default_str)
end


subroutine f2pywrapsecond (secondf2pywrap)
external second
double precision secondf2pywrap, second
secondf2pywrap = second()
end


subroutine f2pyinitradial(setupfunc)
external setupfunc
double precision a
Expand Down Expand Up @@ -317,4 +469,63 @@ subroutine f2pyinitinput_chr(setupfunc)
call setupfunc(ray,title)
end

subroutine f2pyinitfordes(setupfunc)
external setupfunc
character*200 form_spec
integer form_length
common /fordes/ form_spec,form_length
call setupfunc(form_spec,form_length)
end

subroutine f2pyinitode_blk(setupfunc)
external setupfunc
double precision energ
double precision v(1500)
integer jint
common /ode_blk/ energ,v,jint
call setupfunc(energ,v,jint)
end

subroutine f2pyinitpath(setupfunc)
external setupfunc
integer kmax
integer kount
double precision dxsav
double precision xp(200)
double precision yp(10,200)
common /path/ kmax,kount,dxsav,xp,yp
call setupfunc(kmax,kount,dxsav,xp,yp)
end

subroutine f2pyinitdivcof(setupfunc)
external setupfunc
double precision arg(11)
double precision val(11)
double precision cof(11)
common /divcof/ arg,val,cof
call setupfunc(arg,val,cof)
end

subroutine f2pyinitdivint(setupfunc)
external setupfunc
integer mm
common /divint/ mm
call setupfunc(mm)
end

subroutine f2pyinitset_num(setupfunc)
external setupfunc
double precision el_val(50)
integer nels
common /set_num/ el_val,nels
call setupfunc(el_val,nels)
end

subroutine f2pyinitset_chr(setupfunc)
external setupfunc
character el_name(50,30)
common /set_chr/ el_name
call setupfunc(el_name)
end


2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ requires = ["setuptools","numpy==1.19.5"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{36,37,38}
envlist = py{36}
skipsdist=True
install_command = python -m pip install .
Expand Down

0 comments on commit bce302d

Please sign in to comment.