Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (55 loc) · 2.12 KB
/
Copy pathsetup.py
File metadata and controls
66 lines (55 loc) · 2.12 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
63
64
65
66
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
###########################################################################
# pysnmp-sync-adapter
# Lightweight Synchronous Adapter for PySNMP AsyncIO HLAPI
###########################################################################
from setuptools import setup, find_packages
import re
import os
import sys
###########################################################################
END_OF_INTRODUCTION = '## Quick Start'
EPILOGUE = '''
Full information and usage details at the [pysnmp-sync-adapter GitHub repository](https://github.com/Ircama/pysnmp-sync-adapter).
'''
DESCRIPTION = ("Lightweight Synchronous wrapper adapters for PySNMP AsyncIO HLAPI")
PACKAGE_NAME = "pysnmp-sync-adapter"
VERSIONFILE = "pysnmp_sync_adapter/__version__.py"
###########################################################################
with open("README.md", "r") as readme:
long_description = readme.read()
build = ''
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup(
name=PACKAGE_NAME,
version=verstr,
description=(DESCRIPTION),
long_description=long_description[
:long_description.find(END_OF_INTRODUCTION)] + EPILOGUE,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
],
keywords=("snmp synchronous pysnmp"),
author="Ircama",
project_urls={
"Homepage": "https://github.com/Ircama/pysnmp-sync-adapter",
"Repository": "https://github.com/Ircama/pysnmp-sync-adapter"
},
license="EUPL-1.2",
packages=find_packages(),
install_requires=["pysnmp>=7.0.0"],
python_requires=">=3.7",
)