Skip to content
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

BLD: Add pyproject.toml #28374

Merged
merged 19 commits into from
Sep 13, 2019
Merged
Show file tree
Hide file tree
Changes from 9 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ dist
# wheel files
*.whl
**/wheelhouse/*
pip-wheel-metadata
# coverage
.coverage
coverage.xml
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include LICENSE
include RELEASE.md
include README.md
include setup.py
include pyproject.toml

graft doc
prune doc/build
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,6 @@ or for installing in [development mode](https://pip.pypa.io/en/latest/reference/
python setup.py develop
```

Alternatively, you can use `pip` if you want all the dependencies pulled
in automatically (the `-e` option is for installing it in [development
mode](https://pip.pypa.io/en/latest/reference/pip_install.html#editable-installs)):

```sh
pip install -e .
```
TomAugspurger marked this conversation as resolved.
Show resolved Hide resolved

See the full instructions for [installing from source](https://pandas.pydata.org/pandas-docs/stable/install.html#installing-from-source).

## License
Expand Down
8 changes: 4 additions & 4 deletions ci/incremental/build.cmd
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@rem https://github.com/numba/numba/blob/master/buildscripts/incremental/build.cmd

@rem Build numba extensions without silencing compile errors
python setup.py build_ext -q --inplace
@rem Build wheel
python setup.py bdist_wheel -d wheelhouse

@rem Install pandas locally
python -m pip install -e .
@rem Install wheel
FOR /F "Tokens=*" %A IN ('DIR "wheelhouse\*.whl"') DO @( python -m pip install --no-deps %~nxA )

if %errorlevel% neq 0 exit /b %errorlevel%
8 changes: 5 additions & 3 deletions ci/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ conda list pandas

# Make sure any error below is reported as such

echo "Build extensions and install pandas"
python setup.py build_ext -q --inplace
python -m pip install -e .
echo "Building wheel"
python setup.py bdist_wheel -d wheelhouse

echo "Installing wheel"
python -m pip install --no-deps wheelhouse/pandas*.whl

echo
echo "conda list"
Expand Down
4 changes: 2 additions & 2 deletions doc/source/development/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ We'll now kick off a three-step process:

# Build and install pandas
python setup.py build_ext --inplace -j 4
python -m pip install -e .
python -m pip install -e --no-use-pep517 --no-build-isolation .

At this point you should be able to import pandas from your locally built version::

Expand Down Expand Up @@ -252,7 +252,7 @@ You'll need to have at least python3.5 installed on your system.

# Build and install pandas
python setup.py build_ext --inplace -j 4
python -m pip install -e .
python -m pip install -e --no-use-pep517 --no-build-isolation .

Creating a branch
-----------------
Expand Down
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[build-system]
# Minimum requirements for the build system to execute.
# See https://github.com/scipy/scipy/pull/10431 for the AIX issue.
requires = [
"setuptools",
"wheel",
"Cython>=0.29.13", # Note: sync with setup.py
"numpy==1.13.3; python_version=='3.5' and platform_system!='AIX'",
TomAugspurger marked this conversation as resolved.
Show resolved Hide resolved
"numpy==1.13.3; python_version=='3.6' and platform_system!='AIX'",
"numpy==1.14.5; python_version>='3.7' and platform_system!='AIX'",
"numpy==1.16.0; python_version=='3.5' and platform_system=='AIX'",
"numpy==1.16.0; python_version=='3.6' and platform_system=='AIX'",
"numpy==1.16.0; python_version>='3.7' and platform_system=='AIX'",
]