Skip to content

Commit

Permalink
Fixed #17
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiever committed Nov 16, 2015
1 parent 85f3a68 commit 2fa8f3c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ TPOT is built on top of several existing Python libraries, including:

* NumPy

* SciPy

* pandas

* scikit-learn
Expand All @@ -32,19 +34,25 @@ TPOT is built on top of several existing Python libraries, including:

Except for DEAP, all of the necessary Python packages can be installed via the [Anaconda Python distribution](https://www.continuum.io/downloads), which we strongly recommend that you use. We also strongly recommend that you use of Python 3 over Python 2 if you're given the choice.

NumPy, SciPy, pandas, and scikit-learn can be installed in Anaconda via the command:

```Shell
conda install numpy scipy pandas scikit-learn
```

DEAP can be installed with `pip` via the command:

```Shell
pip install deap
```

**If you don't care about the details and just want to install TPOT, run the following command:**
Finally to install TPOT, run the following command:

```Shell
pip install tpot
```

`pip` should be able to sort out all of the dependencies for you.
Please [file a new issue](https://github.com/rhiever/tpot/issues/new) if you run into installation problems.

## Usage

Expand Down
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

12 changes: 2 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,11 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages


def parse_requirements(filename):
return list(filter(lambda line: (line.strip())[0] != '#',
[line.strip() for line in open(filename).readlines()]))


def calculate_version():
initpy = open('tpot/__init__.py').read().split('\n')
version = next(filter(lambda x: '__version__' in x, initpy)).split('\'')[1]
version = list(filter(lambda x: '__version__' in x, initpy))[0].split('\'')[1]
return version


requirements = parse_requirements('requirements.txt')
package_version = calculate_version()

setup(
Expand All @@ -41,7 +33,7 @@ def calculate_version():
This project is hosted at https://github.com/rhiever/tpot
''',
zip_safe=True,
install_requires=requirements,
install_requires=['numpy', 'scipy', 'pandas', 'scikit-learn', 'deap'],
classifiers=[
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
Expand Down
2 changes: 1 addition & 1 deletion tpot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@

from .tpot import TPOT, main

__version__ = '0.1.2'
__version__ = '0.1.3'

0 comments on commit 2fa8f3c

Please sign in to comment.