Skip to content

Commit 1feea02

Browse files
setup.py, license files, gitignore
1 parent cf4a596 commit 1feea02

File tree

10 files changed

+160
-11
lines changed

10 files changed

+160
-11
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.pyc
2+
.eggs/*
3+
*.egg-info/
4+
dist

.hgignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

BSD-2-CLAUSE-LICENSE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2013, Monash University
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
2. Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
17+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

BSD-3-CLAUSE-LICENSE.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2013, Monash University
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of the <organization> nor the
12+
names of its contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

LICENSE.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Copyright (c) 2013, Monash University
2+
All rights reserved.
3+
4+
This project (labscript_devices) is dual licensed under the 2-clause BSD license and 3-clause BSD license (see the files BSD-2-CLAUSE-LICENSE.txt and BSD-3-CLAUSE-LICENSE.txt), subject to the following conditions:
5+
6+
1) If you wish to use this project with PySide and/or a commercial license of PyQt, the use of this project is governed by the terms of one of the licenses, chosen at your discretion.
7+
8+
2) If you wish to use this project with the free (GPLv2 or GPLv3 licensed) version of PyQt, the use of this project is governed by the terms of the 3-clause BSD license only, along with the terms specified in the GPL_EXCEPTIONS.TXT file in the PyQt project source code.
9+
10+
These terms are in place to guarantee compatibility with the terms outlined in the GPL License Exceptions of the PyQt project (see the GPL_EXCEPTIONS.TXT file in the source code of the PyQt project)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# labscript_devices
2+
3+
Device drivers for the labscript suite
4+
5+
(
6+
[view on Github](https://github.com/labscript-suite/labscript_devices)
7+
)
8+
9+

labscript_devices/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from labscript_utils import labscript_suite_install_dir, dedent
2222
from labscript_utils.labconfig import LabConfig
2323

24-
__version__ = '2.6.0'
24+
from .__version__ import __version__
2525

2626
check_version('qtutils', '2.0.0', '3.0.0')
2727
check_version('labscript', '2.6', '3')

labscript_devices/__version__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '2.7.0.dev0'

labscript_devices/spec

Lines changed: 0 additions & 8 deletions
This file was deleted.

setup.py

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# USAGE NOTES
2+
#
3+
# Make a PyPI release tarball with:
4+
#
5+
# python setup.py sdist
6+
#
7+
# Upload to test PyPI with:
8+
#
9+
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*
10+
#
11+
# Install from test PyPI with:
12+
#
13+
# pip install --index-url https://test.pypi.org/simple/ labscript_devices
14+
#
15+
# Upload to real PyPI with:
16+
#
17+
# twine upload dist/*
18+
#
19+
# Build conda packages for all platforms (in a conda environment with setuptools_conda
20+
# installed) with:
21+
#
22+
# python setup.py dist_conda
23+
#
24+
# Upoad to your own account (for testing) on anaconda cloud (in a conda environment with
25+
# anaconda-client installed) with:
26+
#
27+
# anaconda upload --skip-existing conda_packages/*/*
28+
#
29+
# (Trickier on Windows, as it won't expand the wildcards)
30+
#
31+
# Upoad to the labscript-suite organisation's channel on anaconda cloud (in a
32+
# conda environment with anaconda-client installed) with:
33+
#
34+
# anaconda upload -u labscript-suite --skip-existing conda_packages/*/*
35+
#
36+
# If you need to rebuild the same version of the package for conda due to a packaging
37+
# issue, you must increment CONDA_BUILD_NUMBER in order to create a unique version on
38+
# anaconda cloud. When subsequently releasing a new version of the package,
39+
# CONDA_BUILD_NUMBER should be reset to zero.
40+
41+
import os
42+
from setuptools import setup
43+
from runpy import run_path
44+
45+
try:
46+
from setuptools_conda import dist_conda
47+
except ImportError:
48+
dist_conda = None
49+
50+
SETUP_REQUIRES = ['setuptools', 'setuptools_scm']
51+
52+
INSTALL_REQUIRES = [
53+
"labscript_utils >= 2.13.2",
54+
"blacs >= 2.7.0",
55+
"labscript >= 2.6.0",
56+
"qtutils >=2.2.3",
57+
"zprocess >=2.18.0",
58+
"numpy >=1.15.1",
59+
"pyserial",
60+
# PyDAQmx
61+
# PyNIVision
62+
# spinapi
63+
]
64+
65+
setup(
66+
name='labscript_devices',
67+
version=run_path(os.path.join('labscript_devices', '__version__.py'))['__version__'],
68+
description="Device drivers for the labscript suite",
69+
long_description=open('README.md').read(),
70+
long_description_content_type='text/markdown',
71+
author='The labscript suite community',
72+
author_email='[email protected] ',
73+
url='http://labscriptsuite.org',
74+
license="BSD",
75+
packages=["labscript_devices"],
76+
zip_safe=False,
77+
setup_requires=SETUP_REQUIRES,
78+
include_package_data=True,
79+
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5",
80+
install_requires=INSTALL_REQUIRES if 'CONDA_BUILD' not in os.environ else [],
81+
cmdclass={'dist_conda': dist_conda} if dist_conda is not None else {},
82+
command_options={
83+
'dist_conda': {
84+
'pythons': (__file__, ['3.6', '3.7', '3.8']),
85+
'platforms': (__file__, ['linux-64', 'win-32', 'win-64', 'osx-64']),
86+
'force_conversion': (__file__, True),
87+
},
88+
},
89+
)

0 commit comments

Comments
 (0)