mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-17 11:54:19 +01:00
Make setup.py more pythonic
This commit is contained in:
31
setup.py
31
setup.py
@@ -1,19 +1,25 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
"""The setup script."""
|
"""The setup script. Based on Jeff Knupp's Demo + Cookiecutter"""
|
||||||
|
import io
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
with open('README.rst') as readme_file:
|
|
||||||
readme = readme_file.read()
|
|
||||||
|
|
||||||
with open('HISTORY.rst') as history_file:
|
def read(*filenames, **kwargs):
|
||||||
history = history_file.read()
|
encoding = kwargs.get('encoding', 'utf-8')
|
||||||
|
sep = kwargs.get('sep', '\n')
|
||||||
|
buf = []
|
||||||
|
for filename in filenames:
|
||||||
|
with io.open(filename, encoding=encoding) as f:
|
||||||
|
buf.append(f.read())
|
||||||
|
return sep.join(buf)
|
||||||
|
|
||||||
|
|
||||||
|
long_description = read('README.rst', 'HISTORY.rst')
|
||||||
|
|
||||||
requirements = [
|
requirements = [
|
||||||
# TODO: put package requirements here
|
'requests',
|
||||||
'requests'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
setup_requirements = [
|
setup_requirements = [
|
||||||
@@ -23,23 +29,22 @@ setup_requirements = [
|
|||||||
|
|
||||||
test_requirements = [
|
test_requirements = [
|
||||||
'pytest',
|
'pytest',
|
||||||
# TODO: put package test requirements here
|
|
||||||
]
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='tiingo',
|
name='tiingo',
|
||||||
version='0.1.2',
|
version="0.1.2",
|
||||||
description="REST Client for Tiingo Data Platform API",
|
description="REST Client for Tiingo Data Platform API",
|
||||||
long_description=readme + '\n\n' + history,
|
long_description=long_description,
|
||||||
author="Cameron Yick",
|
author="Cameron Yick",
|
||||||
author_email='cameron.yick@enigma.com',
|
author_email='cameron.yick@enigma.com',
|
||||||
url='https://github.com/hydrosquall/tiingo',
|
url='https://github.com/hydrosquall/tiingo-python',
|
||||||
packages=find_packages(include=['tiingo']),
|
packages=find_packages(include=['tiingo']),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
license="MIT license",
|
license="MIT license",
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
keywords='tiingo',
|
keywords=['tiingo', 'finance', 'stocks'],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 2 - Pre-Alpha',
|
'Development Status :: 2 - Pre-Alpha',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
|
|||||||
Reference in New Issue
Block a user