create setup.py for pip integration (@redknightlois)

This commit is contained in:
Jacob Plaster
2019-07-19 16:27:35 +07:00
parent 854966661c
commit e59a94366f
5 changed files with 80 additions and 1 deletions

1
bfxapi/rest/__init__.py Normal file
View File

@@ -0,0 +1 @@
NAME = 'rest'

1
bfxapi/utils/__init__.py Normal file
View File

@@ -0,0 +1 @@
NAME = 'utils'

View File

@@ -0,0 +1 @@
NAME = 'websockets'

View File

@@ -10,4 +10,4 @@ disable=too-few-public-methods,
too-many-instance-attributes,
invalid-name
ignore=tests
ignore=tests,websockets,rest,utils

76
setup.py Normal file
View File

@@ -0,0 +1,76 @@
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from os import path
# io.open is needed for projects that support Python 2.7
# It ensures open() defaults to text mode with universal newlines,
# and accepts an argument to specify the text encoding
# Python 3 only projects can skip this import
from io import open
here = path.abspath(path.dirname(__file__))
# Arguments marked as "Required" below must be included for upload to PyPI.
# Fields marked as "Optional" may be commented out.
setup(
name='bitfinex-api-py',
version='1.0.1', # Required
description='Official Bitfinex API', # Optional
long_description='This is an official python library that is used to connect interact with the Bitfinex api.', # Optional
long_description_content_type='text/markdown', # Optional
url='https://github.com/bitfinexcom/bitfinex-api-py', # Optional
author='Bitfinex', # Optional
author_email='support@bitfinex.com', # Optional
classifiers=[ # Optional
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Pick your license as you wish
'License :: OSI Approved :: Apache 2.0',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
# These classifiers are *not* checked by 'pip install'. See instead
# 'python_requires' below.
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='bitfinex', # Optional
packages=find_packages(exclude=['examples', 'tests']), # Required
# Specify which Python versions you support. In contrast to the
# 'Programming Language' classifiers above, 'pip install' will check this
# and refuse to install the project if the version does not match. If you
# do not support Python 2, you can simplify this to '>=3.5' or similar, see
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4',
# This field lists other packages that your project depends on to run.
# Any package you put here will be installed by pip when your project is
# installed, so they must be valid existing projects.
#
# For an analysis of "install_requires" vs pip's requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['eventemitter', 'asyncio', 'websockets', 'pylint', 'six', 'pyee', 'aiohttp'], # Optional
project_urls={ # Optional
'Bug Reports': 'https://github.com/bitfinexcom/bitfinex-api-py/issues',
'Source': 'https://github.com/bitfinexcom/bitfinex-api-py',
},
)