Skip to content
Snippets Groups Projects
Commit 9602d7db authored by Garrett Bates's avatar Garrett Bates
Browse files

Merge branch 'gitlab_CI' into 'master'

Gitlab CI pipeline and setup files

See merge request passoft/sohstationviewer!2
parents 5e552084 cf4cabfa
No related branches found
No related tags found
1 merge request!2Gitlab CI pipeline and setup files
Pipeline #1231 passed with stage
in 2 minutes and 22 seconds
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
stages:
- Build Env and Test
before_script:
- pip install -e .[dev]
flake8:
image: python:3.8
tags:
- passoft
stage: Build Env and Test
script:
- flake8 sohstationviewer
- flake8 tests
python3.7:
image: python:3.7
tags:
- passoft
stage: Build Env and Test
script:
- python -m unittest
python3.8:
image: python:3.8
tags:
- passoft
stage: Build Env and Test
script:
- python -m unittest
python3.9:
image: python:3.9
tags:
- passoft
stage: Build Env and Test
script:
- python -m unittest
=======
History
=======
2021.xxx
--------
* First release
### Description
SOHStationViewer is a tool to visualize State-of-Health packets from raw data recorded by different type of dataloggers.
### Directory Structure
````
sohstationviewer/
model/
lib/
view/
lib/
ui/
controller/
lib/
tests/
````
### Directory Description
#### sohstationviewer/
All codes for running sohstationviewer.
#### model/
Codes for reading data from raw files and reading setting data from config files.
**lib/** Core codes to be used for reading data.
#### view/
Codes for Graphical User Interface (GUI).
**lib/** Core GUI like plotting widget, common used GUI like log/message/error forms.
**ui/** ui files from QtDesigner.
#### controller/
Codes for logical processes.
**lib/** Core codes to be used for logical processes.
#### tests/
Unittest files for the codes. (GUI will not be included)
\ No newline at end of file
================
SOHStationViewer
================
Description
-----------
Visualize State-of-Health packets from raw data recorded by different type of dataloggers.
Directory Structure
-------------------
sohstationviewer/
model/
core/
view/
core/
ui/
controller/
core/
tests/
Directory Description
---------------------
**sohstationviewer/**
All codes for running sohstationviewer.
**sohstationviewer/model/**
Codes for reading data from raw files and setting data from config files.
**sohstationviewer/view/**
Codes for Graphical User Interface (GUI).
**sohstationviewer/view/ui/**
ui files from QtDesigner.
**sohstationviewer/controller/**
Codes for logical processes.
**tests/**
Unittest files for the codes. (GUI will not be tested)
License
-------
GNU General Public License v3 (GPLv3)
setup.py 0 → 100644
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst', 'rt') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst', 'rt') as history_file:
history = history_file.read()
setup(
author="IRIS PASSCAL",
author_email='software-support@passcal.nmt.edu',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
description="Visualize State-of-Health packets from raw data recorded by "
"different type of dataloggers.",
entry_points={
'console_scripts': [
'sohstationviewer=sohstationviewer.sohstationviewer:main',
],
},
install_requires=['obspy',
'PySide2'],
setup_requires=[],
extras_require={
'dev': [
'flake8'
]
},
license="GNU General Public License v3",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='sohstationviewer',
name='sohstationviewer',
packages=find_packages(include=['sohstationviewer']),
url='https://git.passcal.nmt.edu/passoft/sohstationviewer',
version='2021.167',
zip_safe=False,
)
import sys
from PySide2 import QtWidgets
def main():
app = QtWidgets.QApplication()
# gui = MainGUI
sys.exit(app.exec_())
if __name__ == '__main__':
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment