blob: c6f0bc6a1929f492aeee61498cc5e490c6f85a41 [file] [log] [blame]
tiernoc94c3df2018-02-09 15:38:54 +01001#!/usr/bin/env python3
tierno0c01ffa2018-11-19 14:39:33 +01002# -*- coding: utf-8 -*-
3
4# Copyright 2018 Telefonica S.A.
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15# implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
tiernoc94c3df2018-02-09 15:38:54 +010018
tiernodfe09572018-04-24 10:41:10 +020019import os
tierno02a04c12018-11-22 15:30:13 +000020from setuptools import setup, find_packages
tiernoc94c3df2018-02-09 15:38:54 +010021
22_name = "osm_nbi"
tiernoa8d63632018-05-10 13:12:32 +020023# version is at first line of osm_nbi/html_public/version
24here = os.path.abspath(os.path.dirname(__file__))
tierno28b0b312018-10-01 15:25:22 +020025# with open(os.path.join(here, 'osm_nbi/html_public/version')) as version_file:
26# VERSION = version_file.readline().strip()
garciadeblas4568a372021-03-24 09:19:48 +010027with open(os.path.join(here, "README.rst")) as readme_file:
tiernoa8d63632018-05-10 13:12:32 +020028 README = readme_file.read()
tiernoc94c3df2018-02-09 15:38:54 +010029
30setup(
31 name=_name,
garciadeblas4568a372021-03-24 09:19:48 +010032 description="OSM North Bound Interface",
tiernodfe09572018-04-24 10:41:10 +020033 long_description=README,
garciadeblas4568a372021-03-24 09:19:48 +010034 version_command=(
35 "git describe --match v* --tags --long --dirty",
36 "pep440-git-full",
37 ),
garciadeblas2f4fc962018-05-25 15:57:26 +020038 # version=VERSION,
tiernoa8d63632018-05-10 13:12:32 +020039 # python_requires='>3.5.0',
garciadeblas4568a372021-03-24 09:19:48 +010040 author="ETSI OSM",
41 author_email="osmsupport@etsi.org",
42 maintainer="ETSI OSM",
43 maintainer_email="osmsupport@etsi.org",
44 url="https://osm.etsi.org/gitweb/?p=osm/NBI.git;a=summary",
45 license="Apache 2.0",
tierno02a04c12018-11-22 15:30:13 +000046 packages=find_packages(exclude=["temp", "local"]),
tiernoc94c3df2018-02-09 15:38:54 +010047 include_package_data=True,
garciadeblas4568a372021-03-24 09:19:48 +010048 setup_requires=["setuptools-version-command"],
tiernoc94c3df2018-02-09 15:38:54 +010049)