Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #17 from todofixthis/release/1.0.6
Browse files Browse the repository at this point in the history
Release/1.0.6
  • Loading branch information
todofixthis authored Oct 13, 2017
2 parents 590a35b + e6041d0 commit ac50547
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 10 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ script:
- tar -zxf pyota-unittests/PyOTA-*.tar.gz -C pyota-unittests --strip-components=1
- nosetests pyota-unittests/test
deploy:
on:
tags: true
python: '3.6'
provider: pypi
distributions: sdist
skip_upload_docs: true
user: phx
password:
secure: uprcy4uI8nx4t6NVfyzAlr5L9JgomGg6ZJbhb0u7lRUuOHeCB9ETXrg6zSbwiBGKc3bnbnAIJvGGVJErAdsOd9x5p3oyZI8UPOj9nQCKX3FStIl0x10licad1X5lO2WlIGyJNlg+uncFr3sUCG4W4SqujmDsBQnsUBVG2ei0i9eLxxzQsp+gPPPlVw2OLlkJ40B6wO64XcIf6Zlzq4Z/7mvtH3fkczPBiS6UYEv1I1OEBUaZ/h1fsvsbnriMV3Li3hdt22kquEqSxwxBjMcJ9FRAuyhJZz/GNkeHLiLkDodR3VKHan5+jBsWH44+xriOxNVhGNdI84u0NmXz00Crs5WL7O83vjM8m1t3rK1uX+fiyG7WhClFov1Lk4/OqBBUg92rXKvj1h78tSW2ldlwN6pv2QrmpZtWLDZySSPPmkDKAEQoWBo6wuotltqO9EUwi8Y4MHaXafRJcT5OaqJLa12jJTWAyAauzrO7HbcrCLJetcb1KY+ouBw7agLw30juPgm3d35mNV2jWaU2FaYr/vTGuT/PLQMOgWWoGb0LzHcLhrrv7QIBM/LZX+an02DGNHRoV7qGF5w+OLAt8eZOMuAhesZ5HTOXWj5+IXGjAupaJ/9cOYnSM7OwUjXcOh7I/5dvx41wV6sxDuI0jiIqCN47ZpSyA33FnCpjfrs6wTM=
- on:
tags: true
python: '3.6'
provider: pypi
distributions: 'bdist_wheel sdist'
user: phx
password:
secure: uprcy4uI8nx4t6NVfyzAlr5L9JgomGg6ZJbhb0u7lRUuOHeCB9ETXrg6zSbwiBGKc3bnbnAIJvGGVJErAdsOd9x5p3oyZI8UPOj9nQCKX3FStIl0x10licad1X5lO2WlIGyJNlg+uncFr3sUCG4W4SqujmDsBQnsUBVG2ei0i9eLxxzQsp+gPPPlVw2OLlkJ40B6wO64XcIf6Zlzq4Z/7mvtH3fkczPBiS6UYEv1I1OEBUaZ/h1fsvsbnriMV3Li3hdt22kquEqSxwxBjMcJ9FRAuyhJZz/GNkeHLiLkDodR3VKHan5+jBsWH44+xriOxNVhGNdI84u0NmXz00Crs5WL7O83vjM8m1t3rK1uX+fiyG7WhClFov1Lk4/OqBBUg92rXKvj1h78tSW2ldlwN6pv2QrmpZtWLDZySSPPmkDKAEQoWBo6wuotltqO9EUwi8Y4MHaXafRJcT5OaqJLa12jJTWAyAauzrO7HbcrCLJetcb1KY+ouBw7agLw30juPgm3d35mNV2jWaU2FaYr/vTGuT/PLQMOgWWoGb0LzHcLhrrv7QIBM/LZX+an02DGNHRoV7qGF5w+OLAt8eZOMuAhesZ5HTOXWj5+IXGjAupaJ/9cOYnSM7OwUjXcOh7I/5dvx41wV6sxDuI0jiIqCN47ZpSyA33FnCpjfrs6wTM=
- on:
tags: true
python: '2.7'
provider: pypi
distributions: 'bdist_wheel'
user: phx
password:
secure: uprcy4uI8nx4t6NVfyzAlr5L9JgomGg6ZJbhb0u7lRUuOHeCB9ETXrg6zSbwiBGKc3bnbnAIJvGGVJErAdsOd9x5p3oyZI8UPOj9nQCKX3FStIl0x10licad1X5lO2WlIGyJNlg+uncFr3sUCG4W4SqujmDsBQnsUBVG2ei0i9eLxxzQsp+gPPPlVw2OLlkJ40B6wO64XcIf6Zlzq4Z/7mvtH3fkczPBiS6UYEv1I1OEBUaZ/h1fsvsbnriMV3Li3hdt22kquEqSxwxBjMcJ9FRAuyhJZz/GNkeHLiLkDodR3VKHan5+jBsWH44+xriOxNVhGNdI84u0NmXz00Crs5WL7O83vjM8m1t3rK1uX+fiyG7WhClFov1Lk4/OqBBUg92rXKvj1h78tSW2ldlwN6pv2QrmpZtWLDZySSPPmkDKAEQoWBo6wuotltqO9EUwi8Y4MHaXafRJcT5OaqJLa12jJTWAyAauzrO7HbcrCLJetcb1KY+ouBw7agLw30juPgm3d35mNV2jWaU2FaYr/vTGuT/PLQMOgWWoGb0LzHcLhrrv7QIBM/LZX+an02DGNHRoV7qGF5w+OLAt8eZOMuAhesZ5HTOXWj5+IXGjAupaJ/9cOYnSM7OwUjXcOh7I/5dvx41wV6sxDuI0jiIqCN47ZpSyA33FnCpjfrs6wTM=
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ This extension is installed as an add-on to the ``pyota`` package::

pip install pyota[ccurl]

After running the above command, you can verify that the C extension is
installed correctly by running the ``check_ccurl`` command in your shell::

> check_ccurl
😸 CCurl is installed correctly!
For support, visit the #iota-libs-pyota channel on the IOTA Slack.
https://slack.iota.org/

Compatibility
-------------
This extension is compatible with Python 3.6, 3.5 and 2.7.
Expand Down
33 changes: 33 additions & 0 deletions pyota_ccurl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function, \
unicode_literals


def is_installed():
# type: () -> bool
"""
Returns whether the C extension is installed correctly.
"""
try:
# noinspection PyUnresolvedReferences
from ccurl import Curl as CCurl
except ImportError:
return False
else:
# noinspection PyUnresolvedReferences
from iota.crypto import Curl
return issubclass(Curl, CCurl)


def check_installation():
"""
Outputs a message indicating whether the C extension is installed
correctly.
"""
print(
'😸 CCurl is installed correctly!'
if is_installed()
else '😿 CCurl is NOT installed correctly!'
)
print('For support, visit the #iota-libs-pyota channel on the IOTA Slack.')
print('https://slack.iota.org/')
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@
name = 'PyOTA-CCurl',
description = 'C Curl extension for PyOTA',
url = 'https://github.com/todofixthis/pyota-ccurl',
version = '1.0.5',
version = '1.0.6',

long_description = long_description,

packages = ['pyota_ccurl'],
ext_modules = [Extension('ccurl', ['src/ccurlmodule.c'])],

entry_points = {
'console_scripts': [
'check_ccurl = pyota_ccurl:check_installation',
],
},

install_requires = ['pyota'],

license = 'MIT',
Expand Down

0 comments on commit ac50547

Please sign in to comment.