Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
11
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
38b874e1
Commit
38b874e1
authored
1 year ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Update Python support
parent
9d9865ec
No related branches found
Branches containing commit
No related tags found
1 merge request
!184
Update Python support
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+6
-6
6 additions, 6 deletions
.gitlab-ci.yml
setup.py
+3
-3
3 additions, 3 deletions
setup.py
sohstationviewer/conf/constants.py
+2
-7
2 additions, 7 deletions
sohstationviewer/conf/constants.py
with
11 additions
and
16 deletions
.gitlab-ci.yml
+
6
−
6
View file @
38b874e1
...
...
@@ -31,24 +31,24 @@ flake8:
-
flake8 --exclude sohstationviewer/view/ui,sohstationviewer/controller/core/ sohstationviewer
-
flake8 tests
python3.
7
:
image
:
python:3.
7
python3.
8
:
image
:
python:3.
8
tags
:
-
passoft
stage
:
Build Env and Test
script
:
-
python -m unittest
python3.
8
:
image
:
python:3.
8
python3.
9
:
image
:
python:3.
9
tags
:
-
passoft
stage
:
Build Env and Test
script
:
-
python -m unittest
python3.
9
:
image
:
python:3.
9
python3.
10
:
image
:
python:3.
10
tags
:
-
passoft
stage
:
Build Env and Test
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
3
−
3
View file @
38b874e1
...
...
@@ -20,9 +20,9 @@ setup(
'
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
'
,
'
Programming Language :: Python :: 3.10
'
,
],
description
=
"
Visualize State-of-Health packets from raw data recorded by
"
"
different type of dataloggers.
"
,
...
...
@@ -47,7 +47,7 @@ setup(
keywords
=
'
sohstationviewer
'
,
name
=
'
sohstationviewer
'
,
packages
=
find_packages
(
include
=
[
'
sohstationviewer
'
]),
url
=
'
https://git.passcal.nmt.edu/passoft/sohstationviewer
'
,
version
=
'
202
1
.1
67
'
,
url
=
'
https://git.passcal.nmt.edu/
software_public/
passoft/sohstationviewer
'
,
version
=
'
202
3
.1
.0.0
'
,
zip_safe
=
False
,
)
This diff is collapsed.
Click to expand it.
sohstationviewer/conf/constants.py
+
2
−
7
View file @
38b874e1
import
sys
if
sys
.
version_info
.
minor
>=
8
:
from
typing
import
Literal
from
typing
import
Literal
# waveform pattern
WF_1ST
=
'
A-HLM-V
'
...
...
@@ -78,7 +76,4 @@ HOUR_TO_TMBAR_D = 100
# TYPING CONSTANT
# ================================================================= #
if
sys
.
version_info
.
minor
>=
8
:
ColorMode
=
Literal
[
'
B
'
,
'
W
'
]
else
:
ColorMode
=
str
ColorMode
=
Literal
[
'
B
'
,
'
W
'
]
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