diff --git a/.gitignore b/.gitignore index 4576e8e..fadddd8 100644 --- a/.gitignore +++ b/.gitignore @@ -90,3 +90,5 @@ bunq-test.conf **/tmp config.json tests/connectQr.png +.DS_Store +bunq_sdk.egg-info diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..0770e06 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include LICENSE +include *.md diff --git a/README.md b/README.md index 10b53c8..cacf42b 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This SDK is in **beta**. We cannot guarantee constant availability or stability. Thanks to your feedback we will make improvements on it. ## Installation -TBA +``pip install bunq_sdk --upgrade`` ## Usage diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..79bc678 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[bdist_wheel] +# This flag says that the code is written to work on both Python 2 and Python +# 3. If at all possible, it is good practice to do this. If you cannot, you +# will need to generate wheels for each Python version that you support. +universal=1 diff --git a/setup.py b/setup.py index e69de29..095885f 100644 --- a/setup.py +++ b/setup.py @@ -0,0 +1,78 @@ +""" +A setuptools based setup module. + +See: +https://packaging.python.org/en/latest/distributing.html +https://github.com/pypa/sampleproject +""" + +# Always prefer setuptools over distutils +from setuptools import setup, find_packages +# To use a consistent encoding +from codecs import open +from os import path + +here = path.abspath(path.dirname(__file__)) + +# Get the long description from the README file +with open(path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + +setup( + name='bunq_sdk', + + # Versions should comply with PEP440. For a discussion on single-sourcing + # the version across setup.py and the project code, see + # https://packaging.python.org/en/latest/single_source_version.html + version='0.9.0', + + description='bunq Python SDK', + long_description=long_description, + + # The project's main homepage. + url='https://github.com/bunq/sdk_python', + + # Author details + author='bunq', + author_email='support@bunq.com', + + # The project's license + license='MIT', + + # See https://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=[ + # 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 (should match "license" above) + 'License :: OSI Approved :: MIT License', + + # Specify the Python versions you support here. In particular, ensure + # that you indicate whether you support Python 2, Python 3 or both. + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + ], + + # Keywords related to the project + keywords='open-banking sepa bunq finance api payment', + + # Packages of the project. "find_packages()" lists all the project packages. + packages=find_packages(exclude=['contrib', 'docs', 'tests', 'examples', + 'assets', '.idea', 'run.py']), + + # Run-time dependencies of the project. These will be installed by pip. + install_requires=['aenum==2.0.8', 'chardet==3.0.4', 'pycryptodomex==3.4.6', + 'requests==2.18.1', 'simplejson==3.11.1', + 'urllib3==1.21.1'], +)