Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
postpic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LabAstro
postpic
Commits
6b44d8d9
Commit
6b44d8d9
authored
Sep 15, 2014
by
Stephan Kuschel
Browse files
Options
Downloads
Patches
Plain Diff
added .travis for testing.
parent
16ff8b1c
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+27
-0
27 additions, 0 deletions
.travis.yml
pip-requirements.txt
+5
-0
5 additions, 0 deletions
pip-requirements.txt
postpic/__init__.py
+18
-2
18 additions, 2 deletions
postpic/__init__.py
setup.py
+1
-3
1 addition, 3 deletions
setup.py
with
51 additions
and
5 deletions
.travis.yml
0 → 100644
+
27
−
0
View file @
6b44d8d9
# 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
This diff is collapsed.
Click to expand it.
pip-requirements.txt
0 → 100644
+
5
−
0
View file @
6b44d8d9
--index-url https://pypi.python.org/simple/
pep8
nose
-e .
This diff is collapsed.
Click to expand it.
postpic/__init__.py
+
18
−
2
View file @
6b44d8d9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
3
View file @
6b44d8d9
...
...
@@ -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.
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment