Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from TheFriendlyCoder/template_update
updated to template spec
- Loading branch information
Showing
18 changed files
with
495 additions
and
303 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,41 @@ | ||
language: python | ||
|
||
# Generate a matrix for all Python versions we support | ||
matrix: | ||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy | ||
- pypy3.5 | ||
|
||
install: | ||
- pip install tox twine wheel python-coveralls | ||
|
||
script: | ||
- echo $TRAVIS_PYTHON_VERSION | ||
- export PYVER=`echo $TRAVIS_PYTHON_VERSION | tr "." "\n" | head -n 1 | sed 's/^py//'` | ||
- echo $PYVER | ||
- tox -e py$PYVER | ||
|
||
# Deploy to test.pypi.org for branches | ||
# Deploy to pypi.org for tags | ||
# NOTE: You can not replace builds published to pypi, even if you delete one | ||
# so you must make sure your versions are always unique | ||
jobs: | ||
include: | ||
- name: "Python pypy 2 tests" | ||
python: pypy | ||
env: TOXENV=pypy | ||
- name: "Python pypy 3 tests" | ||
python: pypy3 | ||
env: TOXENV=pypy3 | ||
- name: "Python 2.7 tests" | ||
python: 2.7 | ||
env: TOXENV=py27 | ||
- name: "Python 3.4 tests" | ||
python: 3.4 | ||
env: TOXENV=py34 | ||
- name: "Python 3.5 tests" | ||
python: 3.5 | ||
env: TOXENV=py35 | ||
- name: "Python 3.6 tests" | ||
python: 3.6 | ||
env: TOXENV=py36 | ||
- name: "Python 3.7 tests" | ||
python: 3.7 | ||
env: TOXENV=py37 | ||
# NOTE: Python 3.7 is currently not natively supported by Travis-CI so we | ||
# have to hack around it here using Ubuntu 16.04 | ||
dist: xenial | ||
sudo: true | ||
- name: "Deploy to PYPI" | ||
# Only enable deploys when building from tags | ||
if: tag IS present | ||
# As a general convention we just package and deploy from Python 3.6 | ||
# The version really shouldn't matter since our wheel file is version | ||
# agnostic | ||
- stage: deploy-release | ||
python: 3.6 | ||
env: TOXENV=py36 | ||
stage: deploy | ||
script: | ||
- python setup.py bdist_wheel | ||
- twine upload dist/*.whl -u $DEPLOY_USER -p $DEPLOY_PASS | ||
|
||
# Install all of our build-time dependencies | ||
install: pip install wheel twine tox coveralls | ||
|
||
# Scripts for the default "test" stage | ||
# one copy of this default job will be generated for each python | ||
# version stated above | ||
script: | ||
- tox | ||
if: tag IS true | ||
- stage: deploy-snapshot | ||
python: 3.6 | ||
script: | ||
- python setup.py bdist_wheel | ||
- twine upload --repository-url https://test.pypi.org/legacy/ | ||
dist/*.whl -u $DEPLOY_USER -p $DEPLOY_PASS | ||
if: tag IS NOT true | ||
|
||
after_success: | ||
- coveralls | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash -e | ||
# Generates pip dependency files for build and test purposes | ||
# NOTE: The generated requirements files are named in a weird | ||
# way here because we are trying to prevent requires.io | ||
# from picking up test dependencies and reporting on them | ||
# to our users. It seems to pick up quite a variety of | ||
# file patterns, recursively within the repo. *.reqs | ||
# seems to be a suitable exception | ||
# NOTE: The requirements files generated by this script are | ||
# referenced by the tox.ini config file at build time. | ||
# Any changes to this pattern will need to be reflected | ||
# there as well. | ||
virtualenv -p python2 tmp | ||
source ./tmp/bin/activate | ||
pip install -e .[dev] | ||
pip freeze --exclude-editable > ./tests/python2.reqs | ||
deactivate | ||
rm -rf tmp | ||
|
||
virtualenv -p python3 tmp | ||
source ./tmp/bin/activate | ||
pip install -e .[dev] | ||
pip freeze --exclude-editable > ./tests/python3.reqs | ||
deactivate | ||
rm -rf tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This file contains a single dictionary definition containing all of the | ||
# project-specific customization options supported by this template. It is | ||
# parsed by the setup.py at build time. | ||
{ | ||
"NAME" : "friendlyshell", | ||
"REPO" : "friendlyshell", | ||
"DEPENDENCIES" : [ | ||
"six", | ||
"pyparsing", | ||
"tabulate", | ||
'pyreadline; platform_system == "Windows"', | ||
], | ||
"DEV_DEPENDENCIES" : [ | ||
"twine", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-timeout", | ||
"mock", | ||
"pylint", | ||
"sphinx", | ||
"tox", | ||
], | ||
"DESCRIPTION" : "Framework for writing interactive Python command line " | ||
"interfaces, similar to the 'cmd' built in class.", | ||
"KEYWORDS" : "cmd command line shell interactive interpreter", | ||
"SUPPORTED_PYTHON_VERSION" : | ||
">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.