-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (40 loc) · 1.33 KB
/
setup.py
File metadata and controls
51 lines (40 loc) · 1.33 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/python
import sys
import setuptools
with open('README.md', "r") as fh:
long_description = fh.read()
# Specify the names of the pip packages which are required for this package to work
install_requires = [
"pyyaml",
"ansible",
"yamlordereddictloader",
"AnsibleModulePatcher",
"ForemanApiWrapper"
]
if sys.version_info < (3, 0):
install_requires.append("future")
# Specify the relative directory where the source code is being stored
# This is the root directory for the namespaces, packages, modules, etc.
source_code_dir = "src"
# Specify the name of the package as we want it to appear using pip
package_name = "AnsibleForemanModule"
setuptools.setup(
name=package_name,
version="1.0.0",
author="tschneider",
author_email="tschneider@live.com",
description="An ansible module for utilizing the Foreman API v2.",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(source_code_dir),
package_dir={
"": source_code_dir
},
install_requires= install_requires,
classifiers=[
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
)