Skip to content
New issue

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

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

Already on GitHub? # to your account

build(setup.py/cfg): add necessary files to sdist for build #88

Merged
merged 4 commits into from
Dec 2, 2020
Merged
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
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
. venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
python setup.py build_ext --inplace
python setup.py install


Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
python setup.py build_ext --inplace
python setup.py install
- name: Run notebooks
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-doc-to-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
python setup.py build_ext --inplace
python setup.py install
- name: Run notebooks
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
pip install -r requirements-dev.txt
- name: Install ruptures
run: |
python setup.py build_ext --inplace
python setup.py install
- name: Test with pytest
run: |
Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ cd ruptures
Then install the downloaded package.

```
python setup.py build_ext --inplace
python -m pip install --verbose --no-build-isolation --editable .
```

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build_ext]
inplace=1
17 changes: 17 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext
import numpy as np
from Cython.Build import cythonize

Expand Down Expand Up @@ -28,6 +29,22 @@
packages=find_packages(exclude=["docs", "tests*", "images"]),
install_requires=["numpy", "scipy"],
extras_require={"display": ["matplotlib"]},
setup_requires=["cython", "numpy"],
package_data={
"ruptures.detection._detection": [
"ekcpd.pxd",
"ekcpd.pyx",
"ekcpd_computation.h",
"ekcpd_pelt_computation.h",
"kernels.h",
],
"ruptures.utils._utils": [
"convert_path_matrix.pyx",
"convert_path_matrix.pxd",
"convert_path_matrix_c.h",
],
},
cmdclass={"build_ext": build_ext},
python_requires=">=3",
url="https://centre-borelli.github.io/ruptures-docs/",
license="BSD License",
Expand Down