Skip to content

Commit f0a013d

Browse files
authored
Merge pull request #505 from isuruf/rm-py38
Drop python 3.8
2 parents 79049ab + ec3a605 commit f0a013d

File tree

5 files changed

+17
-23
lines changed

5 files changed

+17
-23
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@ jobs:
3737
CC: gcc
3838

3939
- BUILD_TYPE: Release
40-
PYTHON_VERSION: '3.8'
40+
PYTHON_VERSION: '3.13'
4141
BUILD_SHARED_LIBS: yes
4242
OS: ubuntu-20.04
4343
CC: gcc
4444

4545
- BUILD_TYPE: Release
46-
PYTHON_VERSION: '3.8'
46+
PYTHON_VERSION: '3.13'
4747
WITH_MPFR: yes
4848
INTEGER_CLASS: gmpxx
4949
WITH_NUMPY: no
5050
OS: ubuntu-20.04
5151
CC: gcc
5252

5353
- BUILD_TYPE: Release
54-
PYTHON_VERSION: '3.8'
54+
PYTHON_VERSION: '3.13'
5555
WITH_MPC: yes
5656
OS: ubuntu-20.04
5757
CC: gcc
5858

5959
- BUILD_TYPE: Release
6060
WITH_MPFR: yes
61-
PYTHON_VERSION: '3.8'
61+
PYTHON_VERSION: '3.13'
6262
OS: ubuntu-20.04
6363
CC: gcc
6464

@@ -84,14 +84,14 @@ jobs:
8484
# CC: gcc
8585

8686
- BUILD_TYPE: Debug
87-
PYTHON_VERSION: '3.8'
87+
PYTHON_VERSION: '3.13'
8888
WITH_BFD: yes
8989
BUILD_SHARED_LIBS: yes
9090
OS: ubuntu-20.04
9191
CC: clang
9292

9393
- BUILD_TYPE: Release
94-
PYTHON_VERSION: '3.8'
94+
PYTHON_VERSION: '3.13'
9595
WITH_NUMPY: yes
9696
OS: ubuntu-20.04
9797
CC: clang
@@ -108,7 +108,7 @@ jobs:
108108
EXTRA_APT_PACKAGES: 'llvm-14'
109109

110110
- BUILD_TYPE: Debug
111-
PYTHON_VERSION: '3.8'
111+
PYTHON_VERSION: '3.13'
112112
WITH_SCIPY: yes
113113
WITH_LLVM: 5.0
114114
OS: macos-13
@@ -121,13 +121,13 @@ jobs:
121121
CC: clang
122122

123123
- BUILD_TYPE: Debug
124-
PYTHON_VERSION: '3.8'
124+
PYTHON_VERSION: '3.13'
125125
WITH_NUMPY: no
126126
OS: macos-13
127127
CC: gcc
128128

129129
- BUILD_TYPE: Release
130-
PYTHON_VERSION: '3.8'
130+
PYTHON_VERSION: '3.13'
131131
OS: macos-13
132132
CC: gcc
133133

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ environment:
2424
- BUILD_TYPE: "Release"
2525
COMPILER: MSVC15
2626
PLATFORM: "x64"
27-
PYTHON_VERSION: 38-x64
27+
PYTHON_VERSION: 312-x64
2828
CONDA_INSTALL_LOCN: C:\\Miniconda38-x64
2929
- BUILD_TYPE: "Release"
3030
COMPILER: MSVC15
@@ -97,7 +97,7 @@ install:
9797

9898
- set "PATH=C:\Python%PYTHON_VERSION%;C:\Python%PYTHON_VERSION%\Scripts;%PATH%"
9999
- echo %PATH%
100-
- pip install nose pytest cython
100+
- pip install nose pytest cython setuptools
101101
- if NOT [%WITH_NUMPY%]==[no] pip install numpy
102102
- if NOT [%WITH_SYMPY%]==[no] pip install sympy
103103

bin/install_travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# symengine's bin/install_travis.sh will install miniconda
44

5-
export conda_pkgs="python=${PYTHON_VERSION} pip pytest gmp mpfr"
5+
export conda_pkgs="python=${PYTHON_VERSION} pip pytest setuptools gmp mpfr"
66

77
if [[ "${WITH_NUMPY}" != "no" ]]; then
88
export conda_pkgs="${conda_pkgs} numpy";

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import platform
66

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

@@ -224,13 +224,13 @@ def finalize_options(self):
224224
setup(name="symengine",
225225
version="0.14.0",
226226
description="Python library providing wrappers to SymEngine",
227-
setup_requires=['cython>=0.29.24'],
227+
setup_requires=['cython>=0.29.24', 'setuptools'],
228228
long_description=long_description,
229229
author="SymEngine development team",
230230
author_email="[email protected]",
231231
license="MIT",
232232
url="https://github.com/symengine/symengine.py",
233-
python_requires='>=3.8,<4',
233+
python_requires='>=3.9,<4',
234234
zip_safe=False,
235235
packages=['symengine', 'symengine.lib', 'symengine.tests'],
236236
cmdclass = cmdclass,
@@ -241,10 +241,10 @@ def finalize_options(self):
241241
'Topic :: Scientific/Engineering',
242242
'Topic :: Scientific/Engineering :: Mathematics',
243243
'Topic :: Scientific/Engineering :: Physics',
244-
'Programming Language :: Python :: 3.8',
245244
'Programming Language :: Python :: 3.9',
246245
'Programming Language :: Python :: 3.10',
247246
'Programming Language :: Python :: 3.11',
248247
'Programming Language :: Python :: 3.12',
248+
'Programming Language :: Python :: 3.13',
249249
]
250250
)

symengine/lib/symengine_wrapper.in.pyx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,9 +1213,6 @@ cdef class Basic(object):
12131213
def __int__(self):
12141214
return int(float(self))
12151215

1216-
def __long__(self):
1217-
return int(float(self))
1218-
12191216
def __complex__(self):
12201217
f = self.n(real=False)
12211218
if not isinstance(f, (ComplexDouble, RealDouble)):
@@ -1523,9 +1520,6 @@ cdef class BooleanTrue(BooleanAtom):
15231520
def _sage_(self):
15241521
return True
15251522

1526-
def __nonzero__(self):
1527-
return True
1528-
15291523
def __bool__(self):
15301524
return True
15311525

0 commit comments

Comments
 (0)