Skip to content

Commit

Permalink
Merge pull request #23 from SiLab-Bonn/wheel_testing
Browse files Browse the repository at this point in the history
Numba support in pylandau environment
  • Loading branch information
cbespin authored Apr 25, 2022
2 parents be2086b + a8f9dc8 commit 7760fc6
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
with:
python-version: ${{matrix.python-version}}
cache: 'pip'
- name: Install dependencies
run: pip install cython numpy scipy hypothesis pytest
- name: Install package
run: pip install -e .
- name: Install test dependencies
run: pip install hypothesis pytest
- name: Run tests
run: pytest
8 changes: 5 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ jobs:
env:
CIBW_ARCHS: auto64 # Build 64bit versions only
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux2014"
CIBW_BUILD: "cp38-* cp39-* cp310-*" # Build on CPython 3.8 - 3.10 only
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
CIBW_BUILD: cp38-* cp39-* cp310-* # Build on CPython 3.8 - 3.10 only
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
CIBW_SKIP: "*-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_TEST_COMMAND: "echo Wheel installed"
CIBW_TEST_REQUIRES: hypothesis pytest
CIBW_TEST_COMMAND: pytest {package}/tests
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"

- uses: actions/upload-artifact@v2
with:
Expand Down
26 changes: 18 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,31 @@
name = 'pylandau'
version = '2.2.0'
description = 'A Landau PDF definition to be used in Python.'
repository = 'https://github.com/SiLab-Bonn/pyLandau'
license = 'LGPL-2.1-only'
python = '^3.8'
license = {file = 'LICENSE'}
requires-python = '>=3.8'
readme = 'README.md'
authors = 'David-Leon Pohl, Christian Bespin'
maintainers ='David-Leon Pohl, Christian Bespin'
author_email = 'pohl@physik.uni-bonn.de, bespin@physik.uni-bonn.de'
maintainer_email = 'pohl@physik.uni-bonn.de, bespin@physik.uni-bonn.de'
authors = [
{name = 'David-Leon Pohl', email = 'pohl@physik.uni-bonn.de'},
{name = 'Christian Bespin', email = 'bespin@physik.uni-bonn.de'}
]
maintainers = [
{name = 'Christian Bespin', email = 'bespin@physik.uni-bonn.de'}
]
dependencies = [
"cython>=0.29",
"numpy>=1.21",
"scipy>=1.7",
]

[project.urls]
repository = 'https://github.com/SiLab-Bonn/pyLandau'

[build-system]
# Minimum requirements for the build system to execute.
requires = [
"setuptools",
"wheel",
"numpy>=1.22",
"numpy>=1.21",
"cython>=0.29",
] # PEP 508 specifications
build-backend = "setuptools.build_meta"
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
numpy>=1.22
scipy>=1.8
cython>=0.29
numpy>=1.21
scipy>=1.7
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def finalize_options(self):
sources=['pyLandau/cpp/pylandau.cpp'],
language="c++")]

install_requires = ['numpy>=1.22', 'scipy>=1.8']
install_requires = ['cython>=0.29', 'numpy>=1.21']

setup(
cmdclass={'build_ext': build_ext},
Expand Down

0 comments on commit 7760fc6

Please sign in to comment.