This repository was archived by the owner on Oct 17, 2022. It is now read-only.
forked from tcmak/robotframework-websocketlibrary
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (52 loc) · 1.98 KB
/
Copy pathsetup.py
File metadata and controls
62 lines (52 loc) · 1.98 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import codecs
import io
import re
from os.path import abspath, dirname, join
from setuptools import setup, find_packages
LIBRARY_NAME = 'WebSocketClient'
CWD = abspath(dirname(__file__))
def read(*names, **kwargs):
with io.open(join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")) as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^VERSION = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
VERSION = find_version(join(CWD, 'src', LIBRARY_NAME), "version.py")
with codecs.open(join(CWD, 'README.rst'), encoding='utf-8') as reader:
LONG_DESCRIPTION = reader.read()
setup(
name='robotframework-%s' % LIBRARY_NAME.lower(),
version=VERSION,
description='Robot Framework keywords for websocket-client',
long_description=LONG_DESCRIPTION,
url='https://github.com/greums/robotframework-websocketclient',
download_url='https://github.com/greums/robotframework-websocketclient/tarball/%s' % VERSION,
author='Damien Le Bourdonnec',
author_email='greumsworkshop@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework :: Library',
'License :: OSI Approved :: MIT License',
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
'Topic :: Software Development :: Testing',
],
keywords=['robotframework', 'websocket'],
platforms='any',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=[
'robotframework',
'websocket-client'
],
include_package_data=True,
zip_safe=False
)