From e59a94366f8cb21f4a680dafcb370226d7048874 Mon Sep 17 00:00:00 2001 From: Jacob Plaster Date: Fri, 19 Jul 2019 16:27:35 +0700 Subject: [PATCH] create setup.py for pip integration (@redknightlois) --- bfxapi/rest/__init__.py | 1 + bfxapi/utils/__init__.py | 1 + bfxapi/websockets/__init__.py | 1 + pylint.rc | 2 +- setup.py | 76 +++++++++++++++++++++++++++++++++++ 5 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 bfxapi/rest/__init__.py create mode 100644 bfxapi/utils/__init__.py create mode 100644 bfxapi/websockets/__init__.py create mode 100644 setup.py diff --git a/bfxapi/rest/__init__.py b/bfxapi/rest/__init__.py new file mode 100644 index 0000000..dcba731 --- /dev/null +++ b/bfxapi/rest/__init__.py @@ -0,0 +1 @@ +NAME = 'rest' diff --git a/bfxapi/utils/__init__.py b/bfxapi/utils/__init__.py new file mode 100644 index 0000000..5b150be --- /dev/null +++ b/bfxapi/utils/__init__.py @@ -0,0 +1 @@ +NAME = 'utils' diff --git a/bfxapi/websockets/__init__.py b/bfxapi/websockets/__init__.py new file mode 100644 index 0000000..a570191 --- /dev/null +++ b/bfxapi/websockets/__init__.py @@ -0,0 +1 @@ +NAME = 'websockets' diff --git a/pylint.rc b/pylint.rc index 55ec3d9..ce75f1f 100644 --- a/pylint.rc +++ b/pylint.rc @@ -10,4 +10,4 @@ disable=too-few-public-methods, too-many-instance-attributes, invalid-name -ignore=tests +ignore=tests,websockets,rest,utils diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..0268470 --- /dev/null +++ b/setup.py @@ -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', + }, +)