Skip to content

Commit

Permalink
Merge pull request #32 from afedynitch/afedynitch-patch-1
Browse files Browse the repository at this point in the history
Compatibility of CI with python 3.9
  • Loading branch information
afedynitch authored Jul 2, 2021
2 parents e85167e + 114ca8a commit 23108b1
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 33 deletions.
12 changes: 9 additions & 3 deletions .ci/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@ pys=(/opt/python/*/bin)
# Print list of Python's available
echo "All Pythons on $arch: ${pys[@]}"

# Filter out Python 3.4
# Filter out Python 3.4 and 3.10 (due to lack of other wheels)
pys=(${pys[@]//*34*/})
pys=(${pys[@]//*310*/})
pys=(${pys[@]//*pypy*/})

# Print list of Python's available
echo "All Pythons after filtering on $arch: ${pys[@]}"

# # Filter out Python 3.8 for 32bit due to h5py failure
if [ $arch = "i686" ];
then
echo "Do not build for Python 3.8 on i686"
echo "Do not build for Python >3.8 on i686"
pys=(${pys[@]//*38*/})
pys=(${pys[@]//*39*/})
fi

# Print list of Python's being used
Expand All @@ -51,4 +57,4 @@ for PYBIN in "${pys[@]}"; do
else
"${PYBIN}/pytest" --pyargs $package_name
fi
done
done
7 changes: 5 additions & 2 deletions .ci/macos-install-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ case $PYTHON_VERSION in
FULL_VERSION=3.7.6
;;
3.8)
FULL_VERSION=3.8.1
FULL_VERSION=3.8.9
;;
3.9)
FULL_VERSION=3.9.5
;;
esac

Expand All @@ -35,4 +38,4 @@ which python
python --version
python -m ensurepip
python -m pip install pip --upgrade
python -m pip install setuptools twine wheel
python -m pip install setuptools twine wheel
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changes in MCEq since moving from MCEq_classic to the 1.X.X versions:

Version 1.2.2:
- Added wheels for Python 3.9 on 64 bit systems
- Removed binary wheels for 32bit due to lack of h5py wheels and mainstream has transitioned to 64bit. 32bit users can build MCEq from source.

Version 1.2.0:
- New data tables: physics will be affected mostly low energies < 30 GeV and minor
corrections can be visible for particle ratios at higher energies.
Expand Down
2 changes: 1 addition & 1 deletion MCEq/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.1'
__version__ = '1.2.2'
56 changes: 32 additions & 24 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.9'
- script: |
python -m pip install --upgrade pip
python -m pip install setuptools
Expand All @@ -43,16 +43,16 @@ jobs:
plat: manylinux2010_x86_64
image: quay.io/pypa/manylinux2010_x86_64
python.architecture: x64
# 64Bit:
# arch: x86_64
# plat: manylinux1_x86_64
# image: $(many_linux_base)x86_64
# python.architecture: x64
32Bit:
arch: i686
plat: manylinux1_i686
image: $(many_linux_base)i686
python.architecture: x86
# 64Bit:
# arch: x86_64
# plat: manylinux1_x86_64
# image: $(many_linux_base)x86_64
# python.architecture: x64
# 32Bit:
# arch: i686
# plat: manylinux1_i686
# image: $(many_linux_base)i686
# python.architecture: x86
pool:
vmImage: 'ubuntu-latest'
steps:
Expand All @@ -72,6 +72,8 @@ jobs:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
pool:
vmImage: 'macOS-latest'
steps:
Expand All @@ -95,22 +97,28 @@ jobs:
Python38:
python.version: '3.8'
python.architecture: 'x64'
Python27_32:
python.version: '2.7'
python.architecture: 'x86'
Python36_32:
python.version: '3.6'
python.architecture: 'x86'
Python37_32:
python.version: '3.7'
python.architecture: 'x86'
Python38_32:
python.version: '3.8'
python.architecture: 'x86'
Python39:
python.version: '3.9'
python.architecture: 'x64'
# Python27_32:
# python.version: '2.7'
# python.architecture: 'x86'
# Python36_32:
# python.version: '3.6'
# python.architecture: 'x86'
# Python37_32:
# python.version: '3.7'
# python.architecture: 'x86'
# Python38_32:
# python.version: '3.8'
# python.architecture: 'x86'
# Python39_32:
# python.version: '3.9'
# python.architecture: 'x86'
pool:
vmImage: 'vs2017-win2016'
steps:
- template: .ci/azure-setup.yml
- template: .ci/azure-steps.yml
- template: .ci/azure-tests.yml
- template: .ci/azure-publish-dist.yml
- template: .ci/azure-publish-dist.yml
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_version():
'MCEq.geometry.nrlmsise00', 'MCEq.geometry.corsikaatm'],
setup_requires=[] + pytest_runner,
package_data={
'MCEq': ['data/README.md'],
'MCEq': ['data/README.md', "geometry/nrlmsise00/nrlmsise-00.h"],
},
install_requires=[
'six',
Expand All @@ -88,8 +88,8 @@ def get_version():
py_modules=['mceq_config'],
ext_modules=[libnrlmsise00, libcorsikaatm],
extras_require={
'MKL': ['mkl==2019.0'],
'CUDA': ['cupy-cuda101==6.2.0']
'MKL': ['mkl==2020.0'],
'CUDA': ['cupy-cuda112==9.2.0']
},
classifiers=[
'Programming Language :: Python',
Expand All @@ -100,6 +100,8 @@ def get_version():
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering :: Physics',
'Intended Audience :: Science/Research',
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 23108b1

Please sign in to comment.