-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·49 lines (41 loc) · 1.56 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
49
#!/usr/bin/env python3
from setuptools import setup, find_packages
import unittest
import re
from os.path import join, dirname, abspath
SETUP_DIR = dirname(abspath(__file__))
with open(join(SETUP_DIR, 'CircleciLibrary', '__init__.py')) as f:
VERSION = re.search("\n__version__\s=\s'(.*)'", f.read()).group(1)
def project_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='*_test.py')
return test_suite
with open('README.md') as f:
long_description = f.read()
with open("requirements.txt", "r") as requirements_file:
requirements = requirements_file.readlines()
setup(
name='robotframework-circlecilibrary',
description='A robotframework extension to run circleci pipelines',
long_description=long_description,
long_description_content_type="text/markdown",
version=VERSION,
include_package_data=True,
author="Thomas Volk",
author_email="[email protected]",
classifiers=[
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Acceptance",
"Framework :: Robot Framework",
],
packages=find_packages(exclude=("tests",)),
test_suite="setup.project_test_suite",
install_requires=requirements,
url='https://github.com/trustedshops-public/robotframework-circlecilibrary',
license='MIT License',
platforms='any',
python_requires='>=3.9.0'
)