Skip to content

Commit f980a7d

Browse files
Bug fix in setup.py
1 parent 9e905a7 commit f980a7d

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ or using conda
4747
conda install requirements.txt
4848
```
4949

50+
__Note__: if you want to install cobra with e.g. pip, you don't have to install all of these requirements as these are automatically installed with cobra itself.
51+
5052
### Installation
5153

5254
As this package is an internal package that is not open-sourced, it is not available through `pip` or `conda`. As a result, the package has to be installed manually using the following steps:
@@ -110,9 +112,9 @@ Once the preprocessing pipeline is fitted and applied to your data, we are ready
110112
from cobra.evaluation import generate_pig_tables
111113

112114
pig_tables = generate_pig_tables(basetable[basetable["split"] == "selection"],
113-
id_column_name,
114-
target_column_name
115-
preprocessed_predictors)
115+
id_column_name=id_column_name,
116+
target_column_name=target_column_name,
117+
preprocessed_predictors=preprocessed_predictors)
116118
```
117119

118120
Once these PIG tables are computed, we can start with the _univariate preselection_:

setup.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
from distutils.core import setup
1+
from setuptools import setup, find_packages
22

33

44
setup(
55
name="cobra",
66
version="1.0.0",
77
description="Python Prediction's methodology for predictive analytics",
8-
packages=["cobra",
9-
"cobra.preprocessing",
10-
"cobra.model_building",
11-
"cobra.evaluation"],
8+
packages=find_packages(include=['cobra', 'cobra.*']),
129
url="https://github.com/PythonPredictions",
1310
install_requires=[
1411
"numpy>=1.17.2",
1512
"pandas>=0.25.1",
1613
"scipy>=1.2.0",
1714
"scikit_learn>=0.22.1",
1815
"matplotlib>=3.0.2",
19-
"seaborn>=0.9.0"],
20-
python_requires=">=3.6",
16+
"seaborn>=0.9.0"]
2117
)

0 commit comments

Comments
 (0)