forked from rambo/python-scpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (30 loc) · 1.11 KB
/
Copy pathsetup.py
File metadata and controls
34 lines (30 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""Packaging script for python-scpi"""
import os
import subprocess
import sys
import setuptools
if sys.version_info < (3, 5):
raise RuntimeError("Minimum version python 3.5")
GIT_VERSION = 'UNKNOWN'
try:
GIT_VERSION = subprocess.check_output(['git', 'rev-parse', '--verify', '--short', 'HEAD']).decode('ascii').strip()
except subprocess.CalledProcessError:
pass
setuptools.setup(
name='scpi',
version=os.getenv('PACKAGE_VERSION', '2.1.0+git.%s' % GIT_VERSION),
author='Eero "rambo" af Heurlin',
author_email='rambo@iki.fi',
packages=setuptools.find_packages(),
license='GNU LGPL',
long_description=open('README.md', 'rt', encoding='utf-8').read(),
long_description_content_type='text/markdown',
description='Implement SCPI in pure Python',
install_requires=open('requirements.txt', 'rt', encoding='utf-8').readlines(),
url='https://github.com/rambo/python-scpi',
classifiers=(
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) ",
),
)