blob: 51df44ce7c8e1a44ded55d956bda03848984f7fe [file] [log] [blame]
Eduardo Sousa9aef1dc2019-03-20 13:36:24 +00001# 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
19import re
20import setuptools
21
Eduardo Sousaeb0037f2019-03-22 02:40:47 +000022print(setuptools.find_packages())
23
Eduardo Sousa9aef1dc2019-03-20 13:36:24 +000024version = re.search(
25 r'^__version__\s*=\s*["\'](.*)["\']',
26 open('generator/generator.py').read(),
27 re.MULTILINE).group(1)
28
29with open('README.md', 'r') as f:
30 long_description = f.read()
31
32setuptools.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 Sousaeb0037f2019-03-22 02:40:47 +000048 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 Sousa9aef1dc2019-03-20 13:36:24 +000054 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)