| tierno | 7277486 | 2020-05-04 11:44:15 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | # -*- coding: utf-8 -*- |
| 3 | |
| 4 | ## |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 14 | # implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | ## |
| 18 | |
| 19 | from setuptools import setup |
| 20 | |
| 21 | _name = "osm_ro_plugin" |
| sousaedu | 4a14275 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 22 | _version_command = ("git describe --match v* --tags --long --dirty", "pep440-git-full") |
| 23 | _description = "OSM ro base class for vim and SDN plugins" |
| 24 | _author = "OSM Support" |
| 25 | _author_email = "osmsupport@etsi.org" |
| 26 | _maintainer = "OSM Support" |
| 27 | _maintainer_email = "osmsupport@etsi.org" |
| 28 | _license = "Apache 2.0" |
| 29 | _url = "https://osm.etsi.org/gitweb/?p=osm/RO.git;a=summary" |
| tierno | 7277486 | 2020-05-04 11:44:15 +0000 | [diff] [blame] | 30 | |
| sousaedu | 4a14275 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 31 | _readme = """ |
| tierno | 7277486 | 2020-05-04 11:44:15 +0000 | [diff] [blame] | 32 | =========== |
| 33 | osm-ro_plugin |
| 34 | =========== |
| 35 | |
| 36 | osm-ro plugin is the base class for RO VIM and SDN plugins |
| 37 | """ |
| 38 | |
| 39 | setup( |
| 40 | name=_name, |
| sousaedu | 4a14275 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 41 | description=_description, |
| 42 | long_description=_readme, |
| 43 | version_command=_version_command, |
| 44 | author=_author, |
| 45 | author_email=_author_email, |
| 46 | maintainer=_maintainer, |
| 47 | maintainer_email=_maintainer_email, |
| 48 | url=_url, |
| 49 | license=_license, |
| tierno | 7277486 | 2020-05-04 11:44:15 +0000 | [diff] [blame] | 50 | packages=[_name], |
| 51 | include_package_data=True, |
| 52 | install_requires=[ |
| sousaedu | 4a14275 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 53 | # "requests", |
| 54 | # "paramiko", |
| 55 | # "PyYAML", |
| tierno | 7277486 | 2020-05-04 11:44:15 +0000 | [diff] [blame] | 56 | ], |
| sousaedu | 2ad8517 | 2021-02-17 15:05:18 +0100 | [diff] [blame] | 57 | setup_requires=["setuptools-version-command"], |
| tierno | 7277486 | 2020-05-04 11:44:15 +0000 | [diff] [blame] | 58 | entry_points={ |
| sousaedu | 2ad8517 | 2021-02-17 15:05:18 +0100 | [diff] [blame] | 59 | "osm_ro.plugins": [ |
| 60 | "rovim_plugin = osm_ro_plugin.vimconn:VimConnector", |
| 61 | "rosdn_plugin = osm_ro_plugin.sdnconn:SdnConnectorBase", |
| 62 | ], |
| tierno | 7277486 | 2020-05-04 11:44:15 +0000 | [diff] [blame] | 63 | }, |
| 64 | ) |