-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (31 loc) · 1.18 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from os import path
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
def get_metadata(source):
"""Get version and version_info from ads/__meta__.py file."""
module_path = path.join(path.dirname('__file__'), source, '__meta__.py')
import importlib.util
spec = importlib.util.spec_from_file_location('__meta__', module_path)
meta = importlib.util.module_from_spec(spec)
spec.loader.exec_module(meta)
return meta.__version__, meta.__author__, meta.__package__
__version__, __author__, __package__ = get_metadata('src/ads')
setuptools.setup(
name=__package__,
version=__version__,
author=__author__,
author_email="[email protected]",
description="Package to generate convenient Ansible directory structure",
long_description=long_description,
long_description_content_type="text/markdown",
scripts=['bin/ansible-structure'],
package_dir={'': 'src'},
packages=setuptools.find_packages('src'),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3'
)