Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[metadata]
name = labscript_devices
description = Device drivers for hardware controlled by the labscript suite
long_description = file: README.md
long_description_content_type = text/markdown
author = The labscript suite community
author_email = labscriptsuite@googlegroups.com
url = http://labscriptsuite.org
project_urls =
Source Code=https://github.com/labscript-suite/labscript-devices
Download=https://github.com/labscript-suite/labscript-devices/releases
Tracker=https://github.com/labscript-suite/labscript-devices/issues
keywords = experiment control automation
license = BSD
classifiers =
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8

[options]
zip_safe = False
include_package_data = True
packages = find:
python_requires = >=3.6
install_requires =
blacs>=2.7.0
labscript>=2.6.0
labscript_utils>=2.13.2
numpy>=1.15.1
pillow
PyDAQmx
PyNIVision
pyserial
qtutils>=2.2.3
spinapi
zprocess>=2.18.0
setup_requires =
setuptools_scm

[dist_conda]
pythons = 3.6, 3.7, 3.8
87 changes: 8 additions & 79 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,89 +1,18 @@
# USAGE NOTES
#
# Make a PyPI release tarball with:
#
# python setup.py sdist
#
# Upload to test PyPI with:
#
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*
#
# Install from test PyPI with:
#
# pip install --index-url https://test.pypi.org/simple/ labscript_devices
#
# Upload to real PyPI with:
#
# twine upload dist/*
#
# Build conda packages for all platforms (in a conda environment with setuptools_conda
# installed) with:
#
# python setup.py dist_conda
#
# Upoad to your own account (for testing) on anaconda cloud (in a conda environment with
# anaconda-client installed) with:
#
# anaconda upload --skip-existing conda_packages/*/*
#
# (Trickier on Windows, as it won't expand the wildcards)
#
# Upoad to the labscript-suite organisation's channel on anaconda cloud (in a
# conda environment with anaconda-client installed) with:
#
# anaconda upload -u labscript-suite --skip-existing conda_packages/*/*
#
# If you need to rebuild the same version of the package for conda due to a packaging
# issue, you must increment CONDA_BUILD_NUMBER in order to create a unique version on
# anaconda cloud. When subsequently releasing a new version of the package,
# CONDA_BUILD_NUMBER should be reset to zero.

import os
from setuptools import setup

try:
from setuptools_conda import dist_conda
CMDCLASS = {"dist_conda": dist_conda}
except ImportError:
dist_conda = None

SETUP_REQUIRES = ['setuptools', 'setuptools_scm']
CMDCLASS = {}

INSTALL_REQUIRES = [
"labscript_utils >= 2.13.2",
"blacs >= 2.7.0",
"labscript >= 2.6.0",
"qtutils >=2.2.3",
"zprocess >=2.18.0",
"numpy >=1.15.1",
"pyserial",
"pillow",
"PyDAQmx",
"PyNIVision",
"spinapi",
]
VERSION_SCHEME = {
"version_scheme": os.getenv("SCM_VERSION_SCHEME", "guess-next-dev"),
"local_scheme": os.getenv("SCM_LOCAL_SCHEME", "node-and-date"),
}

setup(
name='labscript_devices',
use_scm_version=True,
description="Device drivers for the labscript suite",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='The labscript suite community',
author_email='labscriptsuite@googlegroups.com ',
url='http://labscriptsuite.org',
license="BSD",
packages=["labscript_devices"],
zip_safe=False,
setup_requires=SETUP_REQUIRES,
include_package_data=True,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5",
install_requires=INSTALL_REQUIRES if 'CONDA_BUILD' not in os.environ else [],
cmdclass={'dist_conda': dist_conda} if dist_conda is not None else {},
command_options={
'dist_conda': {
'pythons': (__file__, ['3.6', '3.7', '3.8']),
'platforms': (__file__, ['linux-64', 'win-32', 'win-64', 'osx-64']),
'force_conversion': (__file__, True),
},
},
use_scm_version=VERSION_SCHEME,
cmdclass=CMDCLASS,
)