File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2121from labscript_utils import labscript_suite_install_dir , dedent
2222from labscript_utils .labconfig import LabConfig
2323
24- from .__version__ import __version__
24+ from labscript_utils .versions import get_version , NoVersionInfo
25+ from pathlib import Path
26+ __version__ = get_version (__name__ , import_path = Path (__file__ ).parent .parent )
27+ if __version__ is NoVersionInfo :
28+ __version__ = None
2529
2630check_version ('qtutils' , '2.0.0' , '3.0.0' )
2731check_version ('labscript' , '2.6' , '3' )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4040
4141import os
4242from setuptools import setup
43- from runpy import run_path
4443
4544try :
4645 from setuptools_conda import dist_conda
4948
5049SETUP_REQUIRES = ['setuptools' , 'setuptools_scm' ]
5150
52- # TODO: Add commented-out requirements once they are on conda:
5351INSTALL_REQUIRES = [
5452 "labscript_utils >= 2.13.2" ,
5553 "blacs >= 2.7.0" ,
5957 "numpy >=1.15.1" ,
6058 "pyserial" ,
6159 "pillow" ,
62- # PyDAQmx
63- # PyNIVision
64- # spinapi
60+ " PyDAQmx" ,
61+ " PyNIVision" ,
62+ " spinapi" ,
6563]
6664
6765setup (
6866 name = 'labscript_devices' ,
69- version = run_path ( os . path . join ( 'labscript_devices' , '__version__.py' ))[ '__version__' ] ,
67+ use_scm_version = True ,
7068 description = "Device drivers for the labscript suite" ,
7169 long_description = open ('README.md' ).read (),
7270 long_description_content_type = 'text/markdown' ,
You can’t perform that action at this time.
0 commit comments