| Eduardo Sousa | 9aef1dc | 2019-03-20 13:36:24 +0000 | [diff] [blame] | 1 | # Copyright 2019 Whitestack, LLC |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # 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, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | # |
| 15 | # For those usages not covered by the Apache License, Version 2.0 please |
| 16 | # contact: esousa@whitestack.com or glavado@whitestack.com |
| 17 | ## |
| 18 | |
| 19 | import re |
| 20 | import setuptools |
| 21 | |
| Eduardo Sousa | eb0037f | 2019-03-22 02:40:47 +0000 | [diff] [blame] | 22 | print(setuptools.find_packages()) |
| 23 | |
| Eduardo Sousa | 9aef1dc | 2019-03-20 13:36:24 +0000 | [diff] [blame] | 24 | version = re.search( |
| 25 | r'^__version__\s*=\s*["\'](.*)["\']', |
| 26 | open('generator/generator.py').read(), |
| 27 | re.MULTILINE).group(1) |
| 28 | |
| 29 | with open('README.md', 'r') as f: |
| 30 | long_description = f.read() |
| 31 | |
| 32 | setuptools.setup( |
| 33 | name='osm-charm-generator', |
| 34 | packages=setuptools.find_packages(), |
| 35 | entry_points={ |
| 36 | "console_scripts": ['osm-charm-generator = generator.generator:main'] |
| 37 | }, |
| 38 | version=version, |
| 39 | author='Eduardo Sousa', |
| 40 | author_email='esousa@whitestack.com', |
| 41 | description='OSM Charm Generator using Ansible', |
| 42 | long_description=long_description, |
| 43 | long_description_content_type='text/markdown', |
| 44 | url='https://osm.etsi.org', |
| 45 | install_requires=[ |
| 46 | 'Jinja2>=2.10' |
| 47 | ], |
| Eduardo Sousa | eb0037f | 2019-03-22 02:40:47 +0000 | [diff] [blame] | 48 | package_data={ |
| 49 | 'generator.actions': ['templates/*.j2'], |
| 50 | 'generator.ansible-charm': ['templates/*.j2'], |
| 51 | 'generator.metadata': ['templates/*.j2'], |
| 52 | }, |
| 53 | include_package_data=True, |
| Eduardo Sousa | 9aef1dc | 2019-03-20 13:36:24 +0000 | [diff] [blame] | 54 | classifiers=[ |
| 55 | 'Programming Language :: Python :: 3 :: Only', |
| 56 | 'License :: OSI Approved :: Apache Software License', |
| 57 | 'Operating System :: POSIX :: Linux', |
| 58 | 'Environment :: Console', |
| 59 | 'Intended Audience :: Telecommunications Industry', |
| 60 | 'Natural Language :: English', |
| 61 | 'Topic :: Software Development :: Code Generators' |
| 62 | ] |
| 63 | ) |