From 49fd7a8313de04cf0f1ddb79837838e822738962 Mon Sep 17 00:00:00 2001 From: "J. Derek Tucker" Date: Tue, 29 Mar 2022 07:10:07 -0600 Subject: [PATCH 1/2] go to oldest-supported-numpy to support API differences in numpy versions --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b79a0d12a..e798ce8c0 100644 --- a/setup.py +++ b/setup.py @@ -170,7 +170,7 @@ def ismac(): include_package_data = True, py_modules = ['GPy.__init__'], test_suite = 'GPy.testing', - setup_requires = ['numpy>=1.7'], + setup_requires = ['oldest-supported-numpy'], install_requires = install_requirements, extras_require = {'docs':['sphinx'], 'optional':['mpi4py', From 68b44f55c956bdb0f004c52df04e991feee0cb6a Mon Sep 17 00:00:00 2001 From: "J. Derek Tucker" Date: Sun, 17 Apr 2022 20:24:51 -0600 Subject: [PATCH 2/2] upgrade to pyproject.toml --- pyproject.toml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 2 -- 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..717f7b4d9 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,47 @@ +[project] +name = "GPy" +version = "1.10.0" +description = "The Gaussian Process Toolbox" +authors = [ + {name = "GPy Authors: https://github.com/SheffieldML/GPy/graphs/contributors", email = "gpy.authors@gmail.com"} +] +license = {text = "BSD 3-Clause"} +readme = "README.md" +requires-python = ">=3.6" + +keywords = ["machine-learning gaussian-processes kernels"] + +dependencies=[ + "numpy>=1.7", + "matplotlib==3.3.4", + "six", + "paramz>=0.9.0", + "cython>=0.29", + ] + +classifiers = [ + 'License :: OSI Approved :: BSD License', + 'Natural Language :: English', + 'Operating System :: MacOS :: MacOS X', + 'Operating System :: Microsoft :: Windows', + 'Operating System :: POSIX :: Linux', + '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', + 'Framework :: IPython', + 'Intended Audience :: Science/Research', + 'Intended Audience :: Developers', + 'Topic :: Software Development', + 'Topic :: Software Development :: Libraries :: Python Modules', +] + +[project.urls] +homepage = "http://sheffieldml.github.com/GPy/" +repository = "https://github.com/SheffieldML/GPy/" +documentation = "https://gpy.readthedocs.io/en/deploy/" + +[build-system] +requires = ["setuptools>=46.0", "wheel", "Cython", "oldest-supported-numpy"] # PEP 518 - what is required to build +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.py b/setup.py index e798ce8c0..6df1aeee6 100644 --- a/setup.py +++ b/setup.py @@ -170,8 +170,6 @@ def ismac(): include_package_data = True, py_modules = ['GPy.__init__'], test_suite = 'GPy.testing', - setup_requires = ['oldest-supported-numpy'], - install_requires = install_requirements, extras_require = {'docs':['sphinx'], 'optional':['mpi4py', 'ipython>=4.0.0',