Skip to content

Rm py38 add setuptools #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,28 @@ jobs:
CC: gcc

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

- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.13'
WITH_MPFR: yes
INTEGER_CLASS: gmpxx
WITH_NUMPY: no
OS: ubuntu-20.04
CC: gcc

- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.13'
WITH_MPC: yes
OS: ubuntu-20.04
CC: gcc

- BUILD_TYPE: Release
WITH_MPFR: yes
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.13'
OS: ubuntu-20.04
CC: gcc

Expand All @@ -84,14 +84,14 @@ jobs:
# CC: gcc

- BUILD_TYPE: Debug
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.13'
WITH_BFD: yes
BUILD_SHARED_LIBS: yes
OS: ubuntu-20.04
CC: clang

- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.13'
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.8'
PYTHON_VERSION: '3.13'
WITH_SCIPY: yes
WITH_LLVM: 5.0
OS: macos-13
Expand All @@ -121,13 +121,13 @@ jobs:
CC: clang

- BUILD_TYPE: Debug
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.13'
WITH_NUMPY: no
OS: macos-13
CC: gcc

- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.13'
OS: macos-13
CC: gcc

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ environment:
- BUILD_TYPE: "Release"
COMPILER: MSVC15
PLATFORM: "x64"
PYTHON_VERSION: 38-x64
PYTHON_VERSION: 312-x64
CONDA_INSTALL_LOCN: C:\\Miniconda38-x64
- BUILD_TYPE: "Release"
COMPILER: MSVC15
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build-system]
requires = [
"setuptools<=72.1.0", # <=72.1.0, see https://github.com/pypa/setuptools/issues/4748
"wheel",
"numpy",
"cython",
]
8 changes: 4 additions & 4 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, 8):
print("SymEngine requires Python 3.8 or newer. "
if sys.version_info[:2] < (3, 9):
print("SymEngine requires Python 3.9 or newer. "
"Python %d.%d detected" % sys.version_info[:2])
sys.exit(-1)

Expand Down Expand Up @@ -230,7 +230,7 @@ def finalize_options(self):
author_email="[email protected]",
license="MIT",
url="https://github.com/symengine/symengine.py",
python_requires='>=3.8,<4',
python_requires='>=3.9,<4',
zip_safe=False,
packages=['symengine', 'symengine.lib', 'symengine.tests'],
cmdclass = cmdclass,
Expand All @@ -241,10 +241,10 @@ def finalize_options(self):
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'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',
'Programming Language :: Python :: 3.13',
]
)
6 changes: 0 additions & 6 deletions symengine/lib/symengine_wrapper.in.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1213,9 +1213,6 @@ cdef class Basic(object):
def __int__(self):
return int(float(self))

def __long__(self):
return int(float(self))

def __complex__(self):
f = self.n(real=False)
if not isinstance(f, (ComplexDouble, RealDouble)):
Expand Down Expand Up @@ -1523,9 +1520,6 @@ cdef class BooleanTrue(BooleanAtom):
def _sage_(self):
return True

def __nonzero__(self):
return True

def __bool__(self):
return True

Expand Down
Loading