File tree 3 files changed +17
-8
lines changed
3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,12 @@ jobs:
20
20
uses : actions/setup-python@v2
21
21
with :
22
22
python-version : 3.8
23
+ - name : Install OctoPrint
24
+ run : pip install OctoPrint
25
+ - name : Print Version
26
+ run : python setup.py --version
23
27
- name : Install test dependencies
24
- run : |
25
- pip install OctoPrint Mock.GPIO
26
- pip install .[test]
28
+ run : pip install .[test]
27
29
- name : Run pytest
28
30
run : pytest -v
29
31
- name : Build package
Original file line number Diff line number Diff line change 15
15
uses : actions/setup-python@v2
16
16
with :
17
17
python-version : 3.8
18
+ - name : Install OctoPrint
19
+ run : pip install OctoPrint
20
+ - name : Print Version
21
+ run : python setup.py --version
18
22
- name : Install test dependencies
19
- run : |
20
- pip install OctoPrint Mock.GPIO
21
- pip install .[test]
23
+ run : pip install .[test]
22
24
- name : Run pytest
23
25
run : pytest -v
Original file line number Diff line number Diff line change 2
2
# pylint: disable=invalid-name
3
3
4
4
from setuptools import setup
5
- from filament_scale_enhanced import __version__
5
+
6
+ version = {}
7
+ with open ("filament_scale_enhanced/fse_version.py" ) as fp :
8
+ exec (fp .read (), version ) # pylint: disable=exec-used
6
9
7
10
try :
8
11
import octoprint_setuptools
18
21
plugin_identifier = "filament_scale"
19
22
plugin_package = "filament_scale_enhanced"
20
23
plugin_name = "Filament Scale Enhanced"
21
- plugin_version = __version__
24
+ plugin_version = version [ 'VERSION' ]
22
25
plugin_description = ("Plugin for integrating a load cell into a filament "
23
26
"holder." )
24
27
plugin_author = "Victor Noordhoek / Leon Wright"
35
38
'pytest-pylint' ,
36
39
'pylint' ,
37
40
'pytest-flake8' ,
41
+ 'Mock.GPIO'
38
42
],
39
43
'test' : [
40
44
'pytest' ,
43
47
'pytest-pylint' ,
44
48
'pylint' ,
45
49
'pytest-flake8' ,
50
+ 'Mock.GPIO'
46
51
]
47
52
}
48
53
You can’t perform that action at this time.
0 commit comments