From 7b09252d36f55ab80a9c4263d1e51f4bd629db00 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Tue, 17 Mar 2020 15:41:35 +0100 Subject: [PATCH 1/5] Add setup --- setup.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f383409 --- /dev/null +++ b/setup.py @@ -0,0 +1,25 @@ +from setuptools import setup + +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', + #long_description= + long_description=long_description, + author='Gnosis', + author_email='admin@gnosis.pm', + keywords=['dex', 'defi', 'exchange', 'ethereum', 'dfusion', 'gnosis'], + packages=[ + 'src' + ], + install_requires=requirements, + url='https://github.com/gnosis/dex-cli', +) From 385e5ee22d406768eb30a9ebc33eddbc53ff55c2 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Tue, 17 Mar 2020 15:41:58 +0100 Subject: [PATCH 2/5] Deploy script using twine --- scripts/deploy_pipy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/deploy_pipy.sh 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/* From af76319bed5432a92a31985bcf161cd1681639cf Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Tue, 17 Mar 2020 15:42:15 +0100 Subject: [PATCH 3/5] Deploy using travis --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 From 1e26ff9973c60e05aff4e466e3a5e49e1d7fd12a Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Tue, 17 Mar 2020 16:13:38 +0100 Subject: [PATCH 4/5] Upload license --- LICENSE | 21 +++++++++++++++++++++ setup.py | 36 ++++++++++++++++++++---------------- 2 files changed, 41 insertions(+), 16 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..47d6e31 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 The Graph + +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/setup.py b/setup.py index f383409..0cb3847 100644 --- a/setup.py +++ b/setup.py @@ -1,25 +1,29 @@ -from setuptools import setup +from setuptools import setup, setuptools requirements = [ "Click>=7.0", "gql>=0.3.0", ] -# with open("README.md", 'r') as f: -# long_description = f.read() +with open("README.md", 'r') as f: + long_description = f.read() setup( - name='dFusion', - version='0.1', - description='dFusion CLI', - #long_description= - long_description=long_description, - author='Gnosis', - author_email='admin@gnosis.pm', - keywords=['dex', 'defi', 'exchange', 'ethereum', 'dfusion', 'gnosis'], - packages=[ - 'src' - ], - install_requires=requirements, - url='https://github.com/gnosis/dex-cli', + 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', ) From ccce78197a3b1bccfb57ad0a6d26d67e45a1181a Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Tue, 17 Mar 2020 17:26:03 +0100 Subject: [PATCH 5/5] Fix copywrite --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 47d6e31..b454f9e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 The Graph +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