| magnussonl | 2b0e2d7 | 2020-02-04 10:52:46 +0100 | [diff] [blame] | 1 | # 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. |
| 15 | from setuptools import setup |
| 16 | |
| 17 | |
| 18 | def parse_requirements(requirements): |
| 19 | with open(requirements) as f: |
| magnussonl | d8c1b39 | 2020-06-30 16:48:08 +0200 | [diff] [blame] | 20 | return [req.strip('\n') for req in f if req.strip('\n') and not req.startswith('#') and '://' not in req] |
| magnussonl | 2b0e2d7 | 2020-02-04 10:52:46 +0100 | [diff] [blame] | 21 | |
| 22 | |
| 23 | _name = 'osm_pla' |
| magnussonl | 41cccfa | 2020-07-02 19:39:15 +0200 | [diff] [blame^] | 24 | _version_command = ('git describe --match v* --tags --long --dirty', 'pep440-git-full') |
| magnussonl | 2b0e2d7 | 2020-02-04 10:52:46 +0100 | [diff] [blame] | 25 | _description = 'OSM Placement Module' |
| 26 | _author = "Lars Goran Magnusson" |
| 27 | _author_email = 'lars-goran.magnusson@arctoslabs.com' |
| 28 | _maintainer = 'Lars Goran Magnusson' |
| 29 | _maintainer_email = 'lars-goran.magnusson@arctoslabs.com' |
| 30 | _license = 'Apache 2.0' |
| 31 | _url = 'https://osm.etsi.org/gitweb?p=osm/PLA.git;a=tree' |
| 32 | |
| 33 | |
| 34 | setup( |
| 35 | name=_name, |
| magnussonl | 41cccfa | 2020-07-02 19:39:15 +0200 | [diff] [blame^] | 36 | version_command=_version_command, |
| magnussonl | 2b0e2d7 | 2020-02-04 10:52:46 +0100 | [diff] [blame] | 37 | description=_description, |
| 38 | long_description=open('README.md', encoding='utf-8').read(), |
| 39 | author=_author, |
| 40 | author_email=_author_email, |
| 41 | maintainer=_maintainer, |
| 42 | maintainer_email=_maintainer_email, |
| 43 | url=_url, |
| 44 | license=_license, |
| 45 | packages=[_name], |
| 46 | package_dir={_name: _name}, |
| 47 | install_requires=[ |
| 48 | 'osm-common', |
| 49 | 'jinja2==2.10.3', |
| 50 | 'pymzn==0.18.*', |
| 51 | 'pyyaml==5.1.2' |
| 52 | ], |
| 53 | dependency_links=[ |
| 54 | 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common', |
| 55 | ], |
| 56 | include_package_data=True, |
| 57 | entry_points={ |
| 58 | "console_scripts": [ |
| 59 | "osm-pla-server = osm_pla.cmd.pla_server:main", |
| 60 | ] |
| 61 | }, |
| 62 | setup_requires=['setuptools-version-command'] |
| 63 | ) |