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

add extra requirements #551

Merged
merged 9 commits into from
May 21, 2019
Merged
Show file tree
Hide file tree
Changes from 5 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
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ commands:
source test_env/bin/activate
cd "featuretools-$(python setup.py --version)/"
pytest
install-ft-complete-and-run-import-tests:
description: "run unit tests on packaged testing files"
steps:
- run: |
virtualenv test_ft_complete_env
source test_ft_complete_env/bin/activate
python setup.py sdist
gsheni marked this conversation as resolved.
Show resolved Hide resolved
FEATURETOOLS_VERSION=$(python setup.py --version)
tar -zxvf "dist/featuretools-${FEATURETOOLS_VERSION}.tar.gz"
pip install -e "featuretools-${FEATURETOOLS_VERSION}/[complete]"
python -c "import featuretools_tsfresh_primitives"
gsheni marked this conversation as resolved.
Show resolved Hide resolved
gsheni marked this conversation as resolved.
Show resolved Hide resolved
python -c "import featuretools_update_checker"

jobs:
"python-27":
Expand All @@ -32,6 +44,7 @@ jobs:
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run-packaged-tests
- install-ft-complete-and-run-import-tests

"python-35":
working_directory: ~/featuretools
Expand All @@ -45,6 +58,7 @@ jobs:
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run-packaged-tests
- install-ft-complete-and-run-import-tests

"python-36":
working_directory: ~/featuretools
Expand All @@ -58,6 +72,7 @@ jobs:
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run-packaged-tests
- install-ft-complete-and-run-import-tests
- run: source dev_env/bin/activate && make -C docs/ -e "SPHINXOPTS=-W" clean html

"python-37":
Expand All @@ -71,6 +86,7 @@ jobs:
- install-packaged-featuretools
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- install-ft-complete-and-run-import-tests
- run: |
source test_env/bin/activate
pip install "$(cat dev-requirements.txt | grep codecov)"
Expand Down
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
with open(path.join(dirname, 'README.md')) as f:
long_description = f.read()

extras_require = {
'tsfresh': ['featuretools-tsfresh-primitives >= 0.1.0'],
'update_checker': ['featuretools-update-checker >= 1.0.0'],
}
extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))

setup(
name='featuretools',
version='0.8.0',
Expand All @@ -29,6 +35,7 @@
python_requires='>=2.7, <4',
test_suite='featuretools/tests',
tests_require=open('test-requirements.txt').readlines(),
extras_require=extras_require,
keywords='feature engineering data science machine learning',
include_package_data=True,
entry_points={
Expand Down