-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (44 loc) · 1.53 KB
/
setup.py
File metadata and controls
50 lines (44 loc) · 1.53 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
import os
import re
import codecs
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def read_file(filename, encoding='utf8'):
"""Read unicode from given file."""
with codecs.open(filename, encoding=encoding) as fd:
return fd.read()
here = os.path.abspath(os.path.dirname(__file__))
module = read_file(os.path.join(here, 'wls_rest_python.py'))
meta = dict(re.findall(r"""__([a-z]+)__ = "([^"]+)""", module))
readme = read_file(os.path.join(here, 'README.rst'))
version = meta['version']
setup(
name='wls-rest-python',
description='A Python client for the Weblogic REST API',
long_description=readme,
version=version,
license='MIT',
author='Magnus Watn',
keywords='weblogic wls rest administration automation',
url='https://github.com/magnuswatn/wls-rest-python',
py_modules=['wls_rest_python'],
install_requires=[
'requests',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Topic :: System :: Systems Administration',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)