Remove setuptools-scm and use hard coded version

This commit is contained in:
Nelson Darkwah Oppong 2017-09-29 20:23:10 +02:00
parent 2fd683119b
commit 13039d2fd8
3 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,9 @@
from .plx_gpib_ethernet import PrologixGPIBEthernet
from .plx_gpib_ethernet_device import PrologixGPIBEthernetDevice
from .version import __version__
__all__ = ['plx_gpib_ethernet',
'plx_gpib_ethernet_device',
'PrologixGPIBEthernet',
'PrologixGPIBEthernetDevice']
'PrologixGPIBEthernetDevice',
'__version__']

View File

@ -0,0 +1 @@
__version__ = '0.1.1'

View File

@ -1,14 +1,10 @@
# -*- coding: utf-8 -*-
from setuptools import setup
import os
from plx_gpib_ethernet import __version__
current_path = os.path.dirname(os.path.abspath(__file__))
try:
long_description = open('README.rst').read()
except IOError:
long_description = ''
# Get the long description from the README file
with open(os.path.join(current_path, 'README.md')) as f:
long_description = f.read()
@ -16,8 +12,7 @@ with open(os.path.join(current_path, 'README.md')) as f:
setup(
name='prologix-gpib-ethernet',
use_scm_version=True,
setup_requires=['setuptools_scm'],
version=__version__,
description='Simple wrapper for the Prologix GPIB-to-Ethernet adapter.',
long_description=long_description,