Skip to content

Commit baffc95

Browse files
committed
Add setup files to publish to pypi
1 parent c0553cb commit baffc95

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
author_email='[email protected]',
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

Comments
 (0)