Commit Graph

154 Commits

Author SHA1 Message Date
Thomas J. Fan 8a6cf1a33e
BLD Monkeypatch windows build to stablize build (#22693) 2022-03-24 16:36:27 +01:00
Thomas J. Fan f1d3417b08
MNT Drops Python 3.7 in CI, wheel building, and docs (#22617)
* MNT Drops Python 3.7

* MNT Bump NumPy and SciPy

* FIX Fix build

* FIX Bump versions improved

* DOC Fixes numpy version [pypy]

* BLD [pypy] [icc-build]

* Update docs

* MAINT use scipy.optimize.LinearConstraint in test

* MAINT scipy 1.1.0 related code clean-up

* scipy>=1.3.2 in pyproject.toml's build deps

* [cd build]

* DOC Adds comment about pypy

* MAINT remove _astype_copy_false

* FIX Update check for python version in setup.py

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-02-28 18:23:02 +01:00
Thomas J. Fan 6f39cab2ba
DOC Use wheelhouse_uploader directly to publish to pypi (#22234) 2022-01-27 14:52:40 +01:00
David Poznik 0ea1fd04ea
MAINT Indicate Python 3.10 compatibility in `README.rst` and `setup.py` (#22251)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-01-24 17:00:47 +01:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 351ace7935
STY Uses black's with target_version >= 3.7 (#20294) 2021-06-17 15:50:27 -04:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Thomas J. Fan 9a13bdfaf1
MNT Adds black config and fixes formatting before black (#19031)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 17:14:09 +02:00
Thomas J. Fan 07a0cf37c9
MNT Finish removing python 3.6 (#20185) 2021-06-01 22:06:28 +02:00
Thomas J. Fan 5efcb10c3e
MAINT Vendors packaging/version.py for pep440 versioning (#19826)
* MAINT Vendors packaging/version for pep440 versioning

* ENH Uses folder structure of packaging

* ENH Uses fixes parse_version

* ENH Uses packaging name

* MAINT Adds packaging

* BLD Use vendored version [cd build]
2021-04-19 17:06:38 +02:00
Geoffrey Thomas 4beb0c27fc
MNT Make setup.py command parsing more robust (#19650)
Separate arguments into options and commands, and use setuptools.setup
if all the requested commands can / should run without NumPy installed,
even if there are options present.

This fixes a bug where `setup.py --no-user-site egg_info` wants NumPy to
be installed, even though `setup.py egg_info` works fine.
2021-03-10 14:26:22 +01:00
Juan Carlos Alfaro Jiménez d953f74902
BLD Add clean command to skip list (#18999) 2020-12-14 16:39:43 +01:00
Olivier Grisel 7149558f67
CI Enable parallel build on CI via an env variable (#18826)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-11-13 10:30:10 -05:00
Terence Honles 8af5f611bd
MNT Support and test Python 3.9 (#18761)
* MNT Support and test Python 3.9

The following were used as references when updating pyproject.toml:

- https://github.com/scipy/scipy/issues/12940
- https://github.com/scikit-image/scikit-image/pull/4920
- https://github.com/scikit-image/scikit-image/pull/4920#discussion_r471467159

* Trigger wheel builder [cd build]

* Fix typo when optionally installing scikit-image

Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>

* Update build_tools/azure/install.sh [ci skip]

Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-11-10 17:22:01 +01:00
Thomas J. Fan 1ea9ae2245
MNT Move min_dependencies up a level (#18610) 2020-10-14 16:11:05 +02:00
Guillaume Lemaitre 13bccedeb0
MNT add development status in setup.py (#18475) 2020-09-28 16:59:29 -04:00
Jérémie du Boisberranger d8ab62a389
MNT import setuptools before distutils + add some comments (#17956) 2020-07-21 11:33:31 +02:00
Thomas J. Fan 0f114b610d
MNT Places all minimum dependencies in one central location (#17573)
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
2020-06-27 16:55:25 +02:00
Jérémie du Boisberranger d3e4f24015
BUILD Make sure PKG-INFO contains Requires-Python (#17683) 2020-06-26 18:52:02 -04:00
Julien Jerphanion 2c377eba97
MNT Add extra requirements in setup.py (#17328)
* Add extra requirements

This list is based on requirements given in:

 - contributing.rst
 - build_doc.sh
 - README.rst

* Move extras_require in extra_setuptools_args

* Add versions for extra requirements

* Add variables for extra requirements min version

* (lint) Add extra space

* Change syntax to use f-strings

* Add joblib and threadpoolctl to extras_require

Numpy as Scipy were listed in the extras_require even though
they are necessary requirements.

This just add the other necessary requirements in extras_require
to keep follow the logic.

* Propose dict keys for extras_require

* Remove packing from extras_require

* Remove Cython from extras_require

* Remove install dependencies

* Move packages to appropriate sections

* Remove variables for packages versions

* Revert back to format syntax

This way python <=3.5 users will get appropriate error messages.
2020-06-09 14:02:56 -04:00
Jérémie du Boisberranger 769794249c
[MRG] new K-means implementation for improved performances (#11950) 2020-02-20 13:39:16 +01:00
Adrin Jalali 42706ebf2d
MNT CI dropping python-3.5 (#15106)
* dropping python-3.5

* fix install guide

* fix setup.py

* fix circleci

* advanced_installation

* index.html

* readme

* pyparsing.py

* remove clean_warning_registry

* 1.13.1 and 1.19.1

* don't use 16.04

* 18.04 libatlas-dev -> libatlas-base-dev

* min pillow version for 3.6 is 4.2.1

* echo commands

* fix conflict, and 32 bit

* fix conflict for circle

* fix scikit-image version dep

* mark tests as xfail on 32bit py3.6

* move to 1.13.3 min numpy version, and simplify old code

* remove the rest of _object_dtype_isnan usages

* Revert "remove the rest of _object_dtype_isnan usages"

This reverts commit c6e867ea1f.

* fix issues raised by jeremy

* minor fix

* minor fixes mentioned by Olivier
2020-02-10 12:28:42 +01:00
Adrin Jalali a91304ecd7
DOC Pre 0.22 release (#15735)
* add python 3.8 to setup.py

* add authors to whats_new

* update release date

* move whats new entry to 0.23

* add news section to index.html

* pep8

Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>
2019-12-02 12:03:25 +01:00
Jérémie du Boisberranger 9e5819aa41 MNT Include all pxd files in the package (#15626)
* include all pxd files in package

* _libsvm _liblinear to pxi + add a test

* simplify stuff + use pathlib

* cln

* more cln
2019-11-26 17:37:26 +01:00
Adrin Jalali db6c12fc11
MNT require scipy in setup.py (#15597)
* require scipy in setup

* refactor code
2019-11-13 10:34:28 +01:00
Jérémie du Boisberranger 9876f748b0 [MRG] BUILD: warn instead of raise when openmp unsupported (#15174) 2019-11-13 10:03:12 +01:00
Olivier Grisel 82e2f54565 BLD: Do not pre-cythonize when calling sdist (#15567) 2019-11-08 13:04:30 +01:00
Roman Yurchak 2a1e9686ee MAINT Add python_requires>=3.5 to setup.py (#13861)
* Add python_requires to setup.py
* FIX make it possible to run egg_info from Python 2 without numpy
* Informative error message for python2.7 setup.py install (without breaking python2.7 setup.py egg_info)
2019-05-13 14:52:58 +10:00
Roman Yurchak fc33d303c4 MAINT Unvendor joblib (#13531) 2019-04-17 09:22:09 -04:00
jeremiedbb 0fb7cc7520 BLD: check OpenMP support and add a switch to build without it (#13543) 2019-04-17 08:29:37 +10:00
Jarrod Millman a8f417eb04 DOC Add project_urls to setup.py (#13623) 2019-04-12 09:32:58 -07:00
jeremiedbb f652b95ada MNT Use openmp flags for all cython extensions (#13252) 2019-02-28 19:17:52 +01:00
Olivier Grisel 8ee134748d MAINT: explicit error on unsupported Python versions in setup.py (#13272) 2019-02-26 12:20:08 +01:00
Roman Yurchak 0e3bb17e62 MAINT Run pyupgrade following Python2 deprecation (#12997) 2019-02-08 20:13:34 +08:00
jeremiedbb 7307b56992 MNT Update setup and travis to support OpenMP (#13053) 2019-02-04 21:41:11 +11:00
Adrin Jalali 2bd87f6ed8 Remove python < 3.5 from CI (#12746) 2018-12-14 10:53:12 +01:00
Joel Nothman 1984dac419 MAINT CI [scipy-dev] now uses python 3.7 (#11409) 2018-07-20 09:11:20 -07:00
Ronan Lamy 5592a2eda9 [MRG] PyPy support for all but a couple of estimators (#11010) 2018-07-20 14:39:53 +10:00
Barry Hart 66bf80938b MAINT Use install_requires for numpy and scipy (#10402) 2018-01-14 20:55:28 +11:00
Olivier Grisel d15128b9ea MAINT update links and instructions to download and upload from PyPI 2017-06-23 16:14:00 +02:00
Naoya Kanai 83d65b84fe Update numpy refs to 1.8.2 (#8926) 2017-05-24 11:53:37 +10:00
Joel Nothman db25f57781 [MRG+1] Update version dependencies to numpy 1.8.2, scipy 1.13.3 (#8855) 2017-05-24 08:24:04 +10:00
Shubham Bhardwaj 5135c56bc9 [MRG] removed download_url from setup.py (#8513) 2017-03-06 08:59:39 +01:00
Loïc Estève 53f8082f3a MAINT add Python 3.6 classifier in setup.py 2017-02-02 10:21:54 +01:00
Andreas Mueller b7a1ad2673 Revert "CI report which doc files were likely affected (#7938)" 2016-12-09 15:31:58 +11:00
Loïc Estève e5bf61eee1 [MRG+1] Dropping python 2.6 support (#7890)
* Remove Python 2.6 support

Some details about some slightly orthogonal changes:
* Note about cheking safely for nan is likely not valid any more (commit
  introducing it is c80ca91b)
* scipy.linalg.qr econ parameter removed since scipy 0.9 in favour of
  mode='economic'
* Remove unnecessary libgfortran in conda create command

* Putative fix by setting the random seed

* Revert unintended change

* Reinstate previous logic for checking for NaNs

* Reinstate change in error message

Error messages from Python 2.7 assertRegexp does not contain the
function name, in contrast with Python 3 assertRegex
2016-11-23 17:11:04 -05:00
Loïc Estève 6a2d8d5bbc [MRG+2] BUILD Rewrite setup.py files to handle cython dependencies (#7719)
* Rewriting of cythonization in setup.py

By using Cython.Build.cythonize and switching between .c and .pyx files
as appropriate cython dependencies are correctly taken into account.

* Use cythonize once on the root config rather than in each subpackage

* Fix for Windows

* Remove caching from Travis

Cython dependencies are taken care of by Cython.Build.cythonize and
based on file timestamps, so .C and .so files will always be rebuild
from scratch on each build in Travis.

* Specify .pyx in setup.files for cython generated extensions

More natural this way. Tweak the extensions to generate from .c and .cpp
files for a release.

* COSMIT Remove commented out code

* Check cython version is greater than 0.23

* COSMIT better names for functions

* flake8 fix (imported module not at top of file)

* Install cython 0.23 for Python 2.6

now that cython >= 0.23 requirement is enforced in setup.py

* Use module constant for minimum required cython version

* Fix Travis install.sh

No easy way to put comments inside multi-line command
2016-11-02 22:57:04 +11:00
Olivier Grisel b1bd97638a FIX missing import in setup.py 2016-09-14 21:16:47 +02:00
Gael Varoquaux db4e2440c5 ENH: display the original exception (#5906)
Fixes #5905
2016-09-14 12:36:43 -04:00