Skip to content

Commit c27b956

Browse files
committed
add proper python packaging
Signed-off-by: Tomas Tomecek <[email protected]>
1 parent 6e29fee commit c27b956

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PyYAML
2+
tabulate

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,28 @@
44

55
from setuptools import find_packages, setup
66

7+
8+
def get_requirements():
9+
with open("./requirements.txt") as file:
10+
return file.readlines()
11+
712
# https://packaging.python.org/guides/single-sourcing-package-version/
813
version = {}
914
with open("./ansible_bender/version.py") as fp:
1015
exec(fp.read(), version)
1116

1217
long_description = ''.join(open('README.md').readlines())
1318

19+
1420
setup(
1521
name='ansible-bender',
1622
version=version["__version__"],
1723
description="A tool which builds container images using Ansible playbooks.",
1824
long_description=long_description,
1925
# long_description_content_type='text/markdown',
2026
packages=find_packages(exclude=['tests']),
21-
install_requires=[],
27+
python_requires='>=3.6',
28+
install_requires=get_requirements(),
2229
entry_points='''
2330
[console_scripts]
2431
ab=ansible_bender.cli:main

0 commit comments

Comments
 (0)