This repository was archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·56 lines (49 loc) · 1.5 KB
/
setup.py
File metadata and controls
executable file
·56 lines (49 loc) · 1.5 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
#!/usr/bin/env python
"""Setuptools based setup module for 'poh'.
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
import io
import re
dunder_re = re.compile(r"^__(.*?)__ = '([^']*)'")
main_pkg_init_fpath = path.join(here, 'poh', '__init__.py')
METADATA = {}
with io.open(main_pkg_init_fpath) as module_file:
for line in module_file.readlines():
if dunder_re.match(line):
key, val = dunder_re.search(line).groups()
METADATA[key] = val
setup(
name='poh',
version=METADATA['versionstr'],
description='ssh commands runner',
long_description=long_description,
url='https://github.com/slashfoo/poh',
author='Jamiel Almeida',
author_email='jamiel.almeida@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
],
keywords='ssh admin remote command execution',
packages=find_packages(),
install_requires=[],
extras_require={},
package_data={},
data_files=[],
entry_points={
'console_scripts': [
'poh=poh.poh:main_exe',
],
},
)