diff --git a/.travis.yml b/.travis.yml index bf8e34c..bd43dac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +dist: xenial language: python cache: pip @@ -13,11 +14,10 @@ script: after_success: - coveralls -# -# TODO: Do in different PR -#deploy: -# provider: script -# script: bash scripts/deploy_pipy.sh "${PYPI_USER}" "${PYPI_PASS}" -# skip_cleanup: true -# on: -# tags: true + +deploy: + provider: script + script: bash scripts/deploy_pipy.sh "${PYPI_USER}" "${PYPI_PASS}" + skip_cleanup: true + on: + tags: true diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b454f9e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Gnosis Ltd + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/scripts/deploy_pipy.sh b/scripts/deploy_pipy.sh new file mode 100755 index 0000000..9bb20e6 --- /dev/null +++ b/scripts/deploy_pipy.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# fail if any commands fails +set -e + +python -m pip install --upgrade setuptools wheel +python -m pip install --upgrade twine + +python setup.py sdist bdist_wheel +twine upload -u "${1}" -p "${2}" dist/* diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..0cb3847 --- /dev/null +++ b/setup.py @@ -0,0 +1,29 @@ +from setuptools import setup, setuptools + +requirements = [ + "Click>=7.0", + "gql>=0.3.0", +] + +with open("README.md", 'r') as f: + long_description = f.read() + +setup( + name='dFusion', + version='0.1', + description='dFusion CLI', + license='MIT License', + long_description=long_description, + long_description_content_type="text/markdown", + author='anxolin', + author_email='anxolin@gmail.com', + keywords=['dex', 'defi', 'exchange', 'ethereum', 'dfusion', 'gnosis'], + packages=setuptools.find_packages(), + install_requires=requirements, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + url='https://github.com/gnosis/dex-cli', +)