|
| 1 | +import re |
| 2 | +import sys |
| 3 | +from os import path as op |
| 4 | + |
| 5 | +from setuptools import setup |
| 6 | + |
| 7 | + |
| 8 | +def _read(fname): |
| 9 | + try: |
| 10 | + return open(op.join(op.dirname(__file__), fname)).read() |
| 11 | + except IOError: |
| 12 | + return '' |
| 13 | + |
| 14 | + |
| 15 | +def get_dependencies(dependency_file): |
| 16 | + return [ |
| 17 | + line for line in _read(dependency_file).split('\n') |
| 18 | + if line and not line.startswith('#') |
| 19 | + ] |
| 20 | + |
| 21 | + |
| 22 | +install_requires = get_dependencies('requirements.txt') |
| 23 | + |
| 24 | +tests_require = get_dependencies('requirements-tests.txt') |
| 25 | + |
| 26 | +setup( |
| 27 | + name='allokation', |
| 28 | + packages=['allokation'], |
| 29 | + version='0.0.1', |
| 30 | + python_requires='>=3.8', |
| 31 | + license='MIT License', |
| 32 | + description=""" |
| 33 | + A python package that gets stocks prices from yahoo finance (https://finance.yahoo.com/) |
| 34 | + and calculates how much of each stocks you must buy to have almost equal distribution |
| 35 | + between the stocks you want in your portfolio |
| 36 | + """, |
| 37 | + long_description=_read('README.md'), |
| 38 | + long_description_content_type='text/markdown', |
| 39 | + author='Rafael Capaci', |
| 40 | + |
| 41 | + url='https://github.com/capaci/allokation', |
| 42 | + download_url='https://github.com/capaci/allokation/archive/0.0.1.tar.gz', |
| 43 | + keywords=['finance', 'stocks', 'portfolio allocation'], |
| 44 | + classifiers=[ |
| 45 | + 'Development Status :: 3 - Alpha', |
| 46 | + 'Intended Audience :: Developers', |
| 47 | + 'Intended Audience :: Financial and Insurance Industry', |
| 48 | + 'Intended Audience :: Other Audience', |
| 49 | + 'Topic :: Office/Business :: Financial :: Investment', |
| 50 | + 'License :: OSI Approved :: MIT License', |
| 51 | + 'Programming Language :: Python :: 3.8', |
| 52 | + ], |
| 53 | + install_requires=install_requires, |
| 54 | + tests_require=tests_require, |
| 55 | + test_suite='tests', |
| 56 | + |
| 57 | +) |
0 commit comments