Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-muir committed Aug 22, 2018
1 parent c9931c5 commit 8be7425
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 27 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ language: python
python:
- '2.7'
install:
- pip install -U pip wheel pytest-runner setupext-pip~=1.0.5
- python setup.py requirements -t -e documentation -e templates -e yaml
- python setup.py develop
- pip install -U pip pytest
- pip install -e .[dev]
script:
- python setup.py test
- py.test .
cache:
pip: true
addons:
apt_packages:
- pandoc
deploy:
provider: pypi
user: nathan-muir
Expand Down
24 changes: 4 additions & 20 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import codecs
import sys
from os.path import dirname, join

from setuptools import setup, find_packages

needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []

needs_setupext_pip = {'requirements'}.intersection(sys.argv)
setupext_pip = ['setupext-pip~=1.0.5'] if needs_setupext_pip else []

here = dirname(__file__)


Expand All @@ -24,16 +17,6 @@ def find_version(*file_paths):
return version


def read_markdown(*file_paths):
try:
import pandoc.core
doc = pandoc.core.Document()
doc.markdown = read(*file_paths)
return doc.rst
except ImportError:
return ''


setup(
name='credsmash',
version=find_version('credsmash', 'VERSION'),
Expand All @@ -45,15 +28,15 @@ def read_markdown(*file_paths):

license='Apache2',
description='A utility for managing secrets in the cloud using AWS KMS and DynamoDB',
long_description=read_markdown('README.md'),
long_description=read('README.md'),
long_description_content_type='text/markdown',

packages=find_packages(exclude=('tests',)),

package_data={
'credsmash': ['VERSION']
},

setup_requires=[] + pytest_runner + setupext_pip,
install_requires=[
'cryptography',
'boto3',
Expand All @@ -66,7 +49,8 @@ def read_markdown(*file_paths):
extras_require={
'yaml': ['PyYAML'],
'templates': ['jinja2'],
'documentation': ['pyandoc'],
'documentation': [],
'dev': ['PyYAML', 'jinja2', 'pytest']
},
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 8be7425

Please sign in to comment.