Skip to content

Commit

Permalink
Merge pull request #452 from isuruf/bump
Browse files Browse the repository at this point in the history
Require python>=3.8 and bump version to 0.11
  • Loading branch information
isuruf authored Oct 31, 2023
2 parents 748c6ca + 946e661 commit 810ef47
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 38 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
CC: gcc

- BUILD_TYPE: Release
PYTHON_VERSION: '3.7'
PYTHON_VERSION: '3.8'
BUILD_SHARED_LIBS: yes
OS: ubuntu-20.04
CC: gcc

- BUILD_TYPE: Release
PYTHON_VERSION: '3.7'
PYTHON_VERSION: '3.8'
WITH_MPFR: yes
INTEGER_CLASS: gmpxx
WITH_NUMPY: no
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
CC: clang

- BUILD_TYPE: Release
PYTHON_VERSION: '3.7'
PYTHON_VERSION: '3.8'
WITH_NUMPY: yes
OS: ubuntu-20.04
CC: clang
Expand All @@ -108,7 +108,7 @@ jobs:
EXTRA_APT_PACKAGES: 'llvm-14'

- BUILD_TYPE: Debug
PYTHON_VERSION: '3.7'
PYTHON_VERSION: '3.8'
WITH_SCIPY: yes
WITH_LLVM: 5.0
OS: macos-latest
Expand All @@ -121,7 +121,7 @@ jobs:
CC: clang

- BUILD_TYPE: Debug
PYTHON_VERSION: '3.7'
PYTHON_VERSION: '3.8'
WITH_NUMPY: no
OS: macos-latest
CC: gcc
Expand Down Expand Up @@ -183,6 +183,7 @@ jobs:
WITH_MPC: ${{ matrix.WITH_MPC }}
MAKEFLAGS: ${{ matrix.MAKEFLAGS }}
BUILD_SHARED_LIBS: ${{ matrix.BUILD_SHARED_LIBS }}
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}

- name: Deploy Documentation
if: ${{ (github.ref == 'refs/heads/main' && github.repository == 'Symengine/symengine.py') || (github.ref == 'refs/heads/master' && github.repository == 'Symengine/symengine.py')}}
Expand Down
58 changes: 33 additions & 25 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: '{build}'

# Uncomment this to enable the fast build environment if your account does not
# support it automatically:
#os: Visual Studio 2015 RC
image: "Visual Studio 2019"

environment:
global:
Expand All @@ -16,27 +14,38 @@ environment:
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
WITH_MPFR: yes
WITH_MPC: yes
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- BUILD_TYPE: "Release"
COMPILER: MSVC15
PLATFORM: "x64"
PYTHON_VERSION: 38-x64
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
- BUILD_TYPE: "Debug"
COMPILER: MinGW-w64
PYTHON_VERSION: 37-x64
WITH_NUMPY: no
- BUILD_TYPE: "Release"
COMPILER: MinGW-w64
PYTHON_VERSION: 37-x64
- BUILD_TYPE: "Debug"
COMPILER: MinGW-w64
PYTHON_VERSION: 37-x64
COMPILER: MSVC15
PLATFORM: "x64"
PYTHON_VERSION: 39-x64
WITH_SYMPY: no
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
- BUILD_TYPE: "Release"
COMPILER: MSVC15
PLATFORM: "x64"
PYTHON_VERSION: 311-x64
WITH_NUMPY: no
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
#- BUILD_TYPE: "Debug"
# COMPILER: MinGW-w64
# PYTHON_VERSION: 39-x64
# WITH_NUMPY: no
#- BUILD_TYPE: "Release"
# COMPILER: MinGW-w64
# PYTHON_VERSION: 39-x64
#- BUILD_TYPE: "Debug"
# COMPILER: MinGW-w64
# PYTHON_VERSION: 39-x64
# WITH_SYMPY: no
- BUILD_TYPE: "Release"
COMPILER: MSVC15
PLATFORM: "Win32"
PYTHON_VERSION: 37
PYTHON_VERSION: 39
CONDA_INSTALL_LOCN: C:\\Miniconda36
WITH_MPFR: yes
WITH_MPC: yes
Expand All @@ -45,7 +54,6 @@ environment:
PLATFORM: "x64"
PYTHON_VERSION: 310-x64
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
WITH_MPFR: yes
WITH_MPC: yes
WITH_LLVM: yes
Expand All @@ -65,7 +73,7 @@ install:
- if [%COMPILER%]==[MSVC15] echo %PATH%
- if [%COMPILER%]==[MSVC15] if [%WITH_MPFR%]==[yes] conda install --yes mpfr=3.1.5
- if [%COMPILER%]==[MSVC15] if [%WITH_MPC%]==[yes] conda install --yes mpc=1.0.3
- if [%COMPILER%]==[MSVC15] if [%WITH_LLVM%]==[yes] conda install --yes llvmdev=3.9
- if [%COMPILER%]==[MSVC15] if [%WITH_LLVM%]==[yes] conda install --yes llvmdev=4.0

- if [%COMPILER%]==[MinGW] set "PATH=C:\MinGW\bin;%PATH%"
- if [%COMPILER%]==[MinGW] mingw-get update
Expand All @@ -87,8 +95,7 @@ install:

- set "PATH=C:\Python%PYTHON_VERSION%;C:\Python%PYTHON_VERSION%\Scripts;%PATH%"
- echo %PATH%
- pip install nose pytest
- pip install --install-option="--no-cython-compile" cython
- pip install nose pytest cython
- if NOT [%WITH_NUMPY%]==[no] pip install numpy
- if NOT [%WITH_SYMPY%]==[no] pip install sympy

Expand All @@ -103,15 +110,16 @@ install:
- if [%COMPILER%]==[MinGW] set "CMAKE_GENERATOR=MinGW Makefiles"
- if [%COMPILER%]==[MinGW-w64] set "CMAKE_GENERATOR=MinGW Makefiles"

- if [%COMPILER%]==[MSVC15] cmake -DCMAKE_PREFIX_PATH=%CONDA_PREFIX%\Library ..
- if [%COMPILER%]==[MinGW] cmake -DCMAKE_PREFIX_PATH=C:\MinGW -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
- if [%COMPILER%]==[MinGW-w64] cmake -DCMAKE_PREFIX_PATH=C:\mingw64 -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
- if [%COMPILER%]==[MSVC15] set "CMAKE_ARGS=-DCMAKE_PREFIX_PATH=%CONDA_PREFIX%\\Library"
- if [%COMPILER%]==[MinGW] set "CMAKE_ARGS=-DCMAKE_PREFIX_PATH=C:\MinGW -DCMAKE_BUILD_TYPE=%BUILD_TYPE%"
- if [%COMPILER%]==[MinGW-w64] set "CMAKE_ARGS=-DCMAKE_PREFIX_PATH=C:\mingw64 -DCMAKE_BUILD_TYPE=%BUILD_TYPE%"

- if [%WITH_MPFR%]==[yes] cmake -DWITH_MPFR=yes ..
- if [%WITH_MPC%]==[yes] cmake -DWITH_MPC=yes ..
- if [%WITH_LLVM%]==[yes] cmake -DWITH_LLVM=yes -DMSVC_USE_MT=no ..
- if [%WITH_MPFR%]==[yes] set "CMAKE_ARGS=%CMAKE_ARGS% -DWITH_MPFR=yes"
- if [%WITH_MPC%]==[yes] set "CMAKE_ARGS=%CMAKE_ARGS% -DWITH_MPC=yes"
- if [%WITH_LLVM%]==[yes] set "CMAKE_ARGS=%CMAKE_ARGS% -DWITH_LLVM=yes -DMSVC_USE_MT=no"

- cmake -DBUILD_SHARED_LIBS=yes -DBUILD_TESTS=no -DBUILD_BENCHMARKS=no -DCMAKE_INSTALL_PREFIX=C:\symengine ..
- echo "CMAKE_ARGS=%CMAKE_ARGS%"
- cmake %CMAKE_ARGS% -DBUILD_SHARED_LIBS=yes -DBUILD_TESTS=no -DBUILD_BENCHMARKS=no -DCMAKE_INSTALL_PREFIX=C:\symengine ..

- cmake --build . --config %BUILD_TYPE% --target install
- cd ../../
Expand Down
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import platform

# Make sure the system has the right Python version.
if sys.version_info[:2] < (3, 7):
print("SymEngine requires Python 3.7 or newer. "
if sys.version_info[:2] < (3, 8):
print("SymEngine requires Python 3.8 or newer. "
"Python %d.%d detected" % sys.version_info[:2])
sys.exit(-1)

Expand Down Expand Up @@ -222,15 +222,15 @@ def finalize_options(self):
'''

setup(name="symengine",
version="0.10.0",
version="0.11.0",
description="Python library providing wrappers to SymEngine",
setup_requires=['cython>=0.29.24'],
long_description=long_description,
author="SymEngine development team",
author_email="symengine@googlegroups.com",
license="MIT",
url="https://github.com/symengine/symengine.py",
python_requires='>=3.7,<4',
python_requires='>=3.8,<4',
zip_safe=False,
packages=['symengine', 'symengine.lib', 'symengine.tests'],
cmdclass = cmdclass,
Expand All @@ -241,9 +241,10 @@ def finalize_options(self):
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
)
4 changes: 2 additions & 2 deletions symengine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import sys

if sys.version_info >= (3, 8, 0) and sys.platform == 'win32' \
if sys.platform == 'win32' \
and 'SYMENGINE_PY_ADD_PATH_TO_SEARCH_DIRS' in os.environ:
for directory in os.environ['PATH'].split(';'):
if os.path.isdir(directory):
Expand Down Expand Up @@ -63,7 +63,7 @@ def __getattr__(name):
raise AttributeError(f"module 'symengine' has no attribute '{name}'")


__version__ = "0.10.0"
__version__ = "0.11.0"


# To not expose internals
Expand Down
2 changes: 1 addition & 1 deletion symengine_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.10.1
v0.11.1

0 comments on commit 810ef47

Please sign in to comment.