blob: 3c8098630ab593c22dd41f7f97ebd50af00c8cc1 [file] [log] [blame]
magnussonl2b0e2d72020-02-04 10:52:46 +01001# Copyright 2020 ArctosLabs Scandinavia AB
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15from setuptools import setup
16
17
18def parse_requirements(requirements):
19 with open(requirements) as f:
20 return [l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#') and '://' not in l]
21
22
23_name = 'osm_pla'
24# _version_command = ('git describe --match v* --tags --long --dirty', 'pep440-git-full') FIXME we have no tags yet
25_version = '0.0.1' # FIXME temporary workaround for _version_command
26_description = 'OSM Placement Module'
27_author = "Lars Goran Magnusson"
28_author_email = 'lars-goran.magnusson@arctoslabs.com'
29_maintainer = 'Lars Goran Magnusson'
30_maintainer_email = 'lars-goran.magnusson@arctoslabs.com'
31_license = 'Apache 2.0'
32_url = 'https://osm.etsi.org/gitweb?p=osm/PLA.git;a=tree'
33
34
35setup(
36 name=_name,
37 # version_command=_version_command, FIXME temporary fix
38 version=_version,
39 description=_description,
40 long_description=open('README.md', encoding='utf-8').read(),
41 author=_author,
42 author_email=_author_email,
43 maintainer=_maintainer,
44 maintainer_email=_maintainer_email,
45 url=_url,
46 license=_license,
47 packages=[_name],
48 package_dir={_name: _name},
49 install_requires=[
50 'osm-common',
51 'jinja2==2.10.3',
52 'pymzn==0.18.*',
53 'pyyaml==5.1.2'
54 ],
55 dependency_links=[
56 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common',
57 ],
58 include_package_data=True,
59 entry_points={
60 "console_scripts": [
61 "osm-pla-server = osm_pla.cmd.pla_server:main",
62 ]
63 },
64 setup_requires=['setuptools-version-command']
65)