Skip to content

Commit

Permalink
Merge d70e4c4 into 6c94226
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Mar 9, 2017
2 parents 6c94226 + d70e4c4 commit 64235e3
Show file tree
Hide file tree
Showing 15 changed files with 73 additions and 23 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ docs/metawrap*.rst

# PyBuilder
target/

# pyenv python configuration file
.python-version
17 changes: 14 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Config file for automatic testing at travis-ci.org
# This file will be regenerated if you run travis_pypi_setup.py

sudo: false

language: generic

env:
- PYVER="3.6"
- PYVER="3.5"
- PYVER="3.4"
- PYVER="2.7"
Expand All @@ -22,7 +26,7 @@ install:
# Create the test environment.
- conda create -y -n testenv python="${PYVER}"
- conda remove -y --force -n testenv openssl
- conda env update -n testenv --file environment_dev.yml
- conda env update -n testenv --file environment_ci.yml
- conda list --full-name -n testenv openssl || conda install -y -n testenv openssl
- source activate testenv

Expand All @@ -33,17 +37,24 @@ install:
script:
- coverage erase
- coverage run --source . setup.py test
- coverage report
- coverage report -m

# Report coverage
after_success:
- source activate root
- conda create -y -n dplenv python="3.5";
- conda remove -y --force -n dplenv openssl
- conda env update -n dplenv --file environment_dpl.yml
- conda list --full-name -n dplenv openssl || conda install -y -n dplenv openssl
- source activate dplenv
- coveralls

# Disable email notifications.
notifications:
email: false

# Deploy package to PyPI when tagged.
# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
deploy:
provider: pypi
distributions: sdist
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Before you submit a pull request, check that it meets these guidelines:
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 2.7, 3.4 and 3.5. Check
3. The pull request should work for Python 2.7, 3.4, 3.5, and 3.6. Check
https://travis-ci.org/jakirkham/metawrap/pull_requests
and make sure that the tests pass for all supported Python versions.

Expand Down
Empty file modified HISTORY.rst
100755 → 100644
Empty file.
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

include AUTHORS.rst

include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE.txt
Expand Down
10 changes: 8 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ metawrap

.. image:: https://img.shields.io/pypi/v/metawrap.svg
:target: https://pypi.python.org/pypi/metawrap
:alt: PyPI

.. image:: https://img.shields.io/travis/jakirkham/metawrap.svg
.. image:: https://anaconda.org/conda-forge/metawrap/badges/version.svg
:target: https://anaconda.org/conda-forge/metawrap
:alt: conda-forge

.. image:: https://img.shields.io/travis/jakirkham/metawrap/master.svg
:target: https://travis-ci.org/jakirkham/metawrap
:alt: Travis CI

.. image:: https://readthedocs.org/projects/metawrap/badge/?version=latest
:target: https://metawrap.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
:alt: Read the Docs

.. image:: https://coveralls.io/repos/github/jakirkham/metawrap/badge.svg
:target: https://coveralls.io/github/jakirkham/metawrap
Expand Down
5 changes: 0 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.. metawrap documentation master file, created by
sphinx-quickstart on Tue Jul 9 22:26:36 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to metawrap's documentation!
======================================

Expand Down
10 changes: 10 additions & 0 deletions environment_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: metawrap_env

channels:
- conda-forge

dependencies:
- pip==9.0.1
- wheel==0.29.0
- coverage==3.7.1
- python-coveralls==2.5.0
9 changes: 9 additions & 0 deletions environment_doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: metawrap_env

channels:
- conda-forge

dependencies:
- pip==9.0.1
- wheel==0.29.0
- Sphinx==1.5.1
12 changes: 12 additions & 0 deletions environment_dpl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: metawrap_env

channels:
- conda-forge

dependencies:
- pip==9.0.1
- wheel==0.29.0
- coverage==3.7.1
- python-coveralls==2.5.0
- cryptography==1.4
- pyyaml==3.11
4 changes: 2 additions & 2 deletions metawrap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

__author__ = 'John Kirkham'
__email__ = 'kirkhamj@janelia.hhmi.org'
__author__ = """John Kirkham"""
__email__ = "kirkhamj@janelia.hhmi.org"

from ._version import get_versions
__version__ = get_versions()['version']
Expand Down
2 changes: 1 addition & 1 deletion metawrap/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# that just contains the computed version number.

# This file is released into the public domain. Generated by
# versioneer-0.17 (https://github.com/warner/python-versioneer)
# versioneer-0.18 (https://github.com/warner/python-versioneer)

"""Git implementation of _version.py."""

Expand Down
2 changes: 1 addition & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
conda:
file: environment_dev.yml
file: environment_doc.yml
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
test_suite="tests",
tests_require=test_requirements
Expand Down
17 changes: 11 additions & 6 deletions versioneer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# Version: 0.17
# Version: 0.18

"""The Versioneer - like a rocketeer, but for versions.
Expand All @@ -10,7 +10,7 @@
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and pypy
* Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy
* [![Latest Version]
(https://pypip.in/version/versioneer/badge.svg?style=flat)
](https://pypi.python.org/pypi/versioneer/)
Expand Down Expand Up @@ -151,8 +151,8 @@
software (exactly equal to a known tag), the identifier will only contain the
stripped tag, e.g. "0.11".
Other styles are available. See details.md in the Versioneer source tree for
descriptions.
Other styles are available. See [details.md](details.md) in the Versioneer
source tree for descriptions.
## Debugging
Expand Down Expand Up @@ -364,6 +364,7 @@ def get(parser, name):
class NotThisMethod(Exception):
"""Exception raised if a method is not valid for the current scenario."""


# these dictionaries contain VCS-specific tools
LONG_VERSION_PY = {}
HANDLERS = {}
Expand Down Expand Up @@ -415,6 +416,8 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False,
print("stdout was %s" % stdout)
return None, p.returncode
return stdout, p.returncode


LONG_VERSION_PY['git'] = '''
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
Expand All @@ -423,7 +426,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False,
# that just contains the computed version number.
# This file is released into the public domain. Generated by
# versioneer-0.17 (https://github.com/warner/python-versioneer)
# versioneer-0.18 (https://github.com/warner/python-versioneer)
"""Git implementation of _version.py."""
Expand Down Expand Up @@ -1176,8 +1179,9 @@ def versions_from_parentdir(parentdir_prefix, root, verbose):
(str(rootdirs), parentdir_prefix))
raise NotThisMethod("rootdir doesn't start with parentdir_prefix")


SHORT_VERSION_PY = """
# This file was generated by 'versioneer.py' (0.17) from
# This file was generated by 'versioneer.py' (0.18) from
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this file.
Expand Down Expand Up @@ -1808,6 +1812,7 @@ def scan_setup_py():
errors += 1
return errors


if __name__ == "__main__":
cmd = sys.argv[1]
if cmd == "setup":
Expand Down

0 comments on commit 64235e3

Please sign in to comment.