Skip to content
Snippets Groups Projects
Commit 6b44d8d9 authored by Stephan Kuschel's avatar Stephan Kuschel
Browse files

added .travis for testing.

parent 16ff8b1c
No related branches found
No related tags found
No related merge requests found
# Check this file before committing a new version:
# http://lint.travis-ci.org/
language: python
python:
- "2.7"
before_install:
- uname -a
- free -m
- df -h
- ulimit -a
- python -V
virtualenv:
system_site_packages: true
# command to install dependencies
install:
- sudo apt-get update -qq
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then sudo apt-get install python-matplotlib python-scipy; fi
- pip install -r pip-requirements.txt
# run tests
script:
- ./run-tests
--index-url https://pypi.python.org/simple/
pep8
nose
-e .
......@@ -27,9 +27,25 @@ import datareader
import analyzer
import plotting
__version__ = '0.0.0'
__all__ = ['datareader', 'analyzer', 'plotting']
# Use Git description for __version__ if present
# read version from installed metadata
from pkg_resources import get_distribution, DistributionNotFound
try:
import os.path
_dist = get_distribution('postpic')
# Normalize case for Windows systems
dist_loc = os.path.normcase(_dist.location)
here = os.path.normcase(__file__)
if not here.startswith(os.path.join(dist_loc, 'postpic')):
# not installed, but there is another version that *is*
raise DistributionNotFound
except DistributionNotFound:
__version__ = 'Please install this project with setup.py'
else:
__version__ = _dist.version
# add Git description for __version__ if present
try:
import subprocess as sub
import os.path
......
......@@ -16,11 +16,9 @@
# along with postpic. If not, see <http://www.gnu.org/licenses/>.
#
from setuptools import setup
from postpic import __version__
setup(name='postpic',
version=__version__,
version='0.0.0',
author='Stephan Kuschel',
author_email='stephan.kuschel@gmail.de',
description='The open source particle-in-cell post processor.',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment