-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
48 lines (39 loc) · 1.36 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
40
41
42
43
44
45
46
47
48
"""Dynamic configuration for setuptools."""
import os
import setuptools
try:
import testinfra_bdd
version = testinfra_bdd.__version__
except ModuleNotFoundError:
version = os.environ['VERSION']
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
install_requires = []
with open('pyproject.toml') as stream:
pyproject = stream.readlines()
for line in pyproject:
line = line.strip()[1:-2]
if line.startswith('jmespath>') or line.startswith('pytest-bdd>') or line.startswith('pytest-testinfra>'):
install_requires.append(line)
setuptools.setup(
name='testinfra-bdd',
version=version,
author='Cloud Based DQ Ltd.',
author_email='[email protected]',
description='An interface between pytest-bdd and pytest-testinfra.',
install_requires=install_requires,
keywords='testinfra,bdd',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/cbdq-io/testinfra-bdd',
project_urls={
'Bug Tracker': 'https://github.com/cbdq-io/testinfra-bdd/issues',
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
],
package_dir={'': '.'},
packages=setuptools.find_packages(where='.'),
python_requires='>=3.9')