|
| 1 | +from setuptools import setup, find_packages |
| 2 | +from codecs import open |
| 3 | +from os import path |
| 4 | + |
| 5 | +__version__ = '0.0.1' |
| 6 | + |
| 7 | +here = path.abspath(path.dirname(__file__)) |
| 8 | + |
| 9 | +# Get the long description from the README file |
| 10 | +with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
| 11 | + long_description = f.read() |
| 12 | + |
| 13 | +# get the dependencies and installs |
| 14 | +with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f: |
| 15 | + all_reqs = f.read().split('\n') |
| 16 | + |
| 17 | +install_requires = [x.strip() for x in all_reqs if 'git+' not in x] |
| 18 | +dependency_links = [x.strip().replace('git+', '') for x in all_reqs if x.startswith('git+')] |
| 19 | + |
| 20 | +setup( |
| 21 | + name='mla', |
| 22 | + version=__version__, |
| 23 | + description='A collection of minimal and clean implementations of machine learning algorithms.', |
| 24 | + long_description=long_description, |
| 25 | + url='https://github.com/rushter/mla', |
| 26 | + download_url='https://github.com/rushter/mla/tarball/' + __version__, |
| 27 | + license='MIT', |
| 28 | + packages=find_packages(exclude=['docs', 'tests*']), |
| 29 | + include_package_data=True, |
| 30 | + author='Artem Golubin', |
| 31 | + install_requires=install_requires, |
| 32 | + setup_requires=['numpy>=1.10', 'scipy>=0.17'], |
| 33 | + dependency_links=dependency_links, |
| 34 | + |
| 35 | +) |
0 commit comments