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 #19 from todofixthis/release/1.0.8
Browse files Browse the repository at this point in the history
Release/1.0.8
  • Loading branch information
todofixthis authored Oct 14, 2017
2 parents 39f56a1 + 931adae commit f286d70
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,31 @@ python:
- '3.6'
install: pip install --pre .
script:
# Run local unit tests.
- python setup.py test

# Install PyOTA unit tests and ensure tests still pass with the
# C extension installed.
- pip install nose mock
- 'pip download --no-deps --no-binary :all: --dest pyota-unittests --pre pyota'
- tar -zxf pyota-unittests/PyOTA-*.tar.gz -C pyota-unittests --strip-components=1
- nosetests pyota-unittests/test
deploy:
# Ensure a source distribution gets published, even if wheels fail.
- on:
tags: true
python: '3.6'
provider: pypi
distributions: 'bdist_wheel sdist'
distributions: sdist
user: phx
password:
secure: uprcy4uI8nx4t6NVfyzAlr5L9JgomGg6ZJbhb0u7lRUuOHeCB9ETXrg6zSbwiBGKc3bnbnAIJvGGVJErAdsOd9x5p3oyZI8UPOj9nQCKX3FStIl0x10licad1X5lO2WlIGyJNlg+uncFr3sUCG4W4SqujmDsBQnsUBVG2ei0i9eLxxzQsp+gPPPlVw2OLlkJ40B6wO64XcIf6Zlzq4Z/7mvtH3fkczPBiS6UYEv1I1OEBUaZ/h1fsvsbnriMV3Li3hdt22kquEqSxwxBjMcJ9FRAuyhJZz/GNkeHLiLkDodR3VKHan5+jBsWH44+xriOxNVhGNdI84u0NmXz00Crs5WL7O83vjM8m1t3rK1uX+fiyG7WhClFov1Lk4/OqBBUg92rXKvj1h78tSW2ldlwN6pv2QrmpZtWLDZySSPPmkDKAEQoWBo6wuotltqO9EUwi8Y4MHaXafRJcT5OaqJLa12jJTWAyAauzrO7HbcrCLJetcb1KY+ouBw7agLw30juPgm3d35mNV2jWaU2FaYr/vTGuT/PLQMOgWWoGb0LzHcLhrrv7QIBM/LZX+an02DGNHRoV7qGF5w+OLAt8eZOMuAhesZ5HTOXWj5+IXGjAupaJ/9cOYnSM7OwUjXcOh7I/5dvx41wV6sxDuI0jiIqCN47ZpSyA33FnCpjfrs6wTM=

# Upload a wheel for each version of Python.
- on:
tags: true
python: '2.7'
provider: pypi
distributions: 'bdist_wheel'
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=
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include LICENSE
include README.rst
recursive-include test *.py
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
name = 'PyOTA-CCurl',
description = 'C Curl extension for PyOTA',
url = 'https://github.com/todofixthis/pyota-ccurl',
version = '1.0.7',
version = '1.0.8',

long_description = long_description,

Expand All @@ -32,6 +32,10 @@

install_requires = ['pyota'],

tests_require = ['nose'],
test_suite = 'test',
test_loader = 'nose.loader:TestLoader',

license = 'MIT',

classifiers = [
Expand Down
3 changes: 3 additions & 0 deletions test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function, \
unicode_literals
15 changes: 15 additions & 0 deletions test/pyota_ccurl_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function, \
unicode_literals

from unittest import TestCase

from pyota_ccurl import is_installed


class IsInstalledTestCase(TestCase):
def test_is_installed(self):
"""
Verify that the C extension is installed correctly.
"""
self.assertTrue(is_installed())

0 comments on commit f286d70

Please sign in to comment.