1 # Copyright 2020 ArctosLabs Scandinavia AB
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 from setuptools
import setup
18 def parse_requirements(requirements
):
19 with
open(requirements
) as f
:
20 return [req
.strip('\n') for req
in f
if req
.strip('\n') and not req
.startswith('#') and '://' not in req
]
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'
37 # version_command=_version_command, FIXME temporary fix
39 description
=_description
,
40 long_description
=open('README.md', encoding
='utf-8').read(),
42 author_email
=_author_email
,
43 maintainer
=_maintainer
,
44 maintainer_email
=_maintainer_email
,
48 package_dir
={_name
: _name
},
56 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common',
58 include_package_data
=True,
61 "osm-pla-server = osm_pla.cmd.pla_server:main",
64 setup_requires
=['setuptools-version-command']