-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bring back setup.py for test helper module
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# (C) Datadog, Inc. 2018-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
from codecs import open # To use a consistent encoding | ||
from os import path | ||
|
||
from setuptools import find_packages, setup | ||
|
||
HERE = path.abspath(path.dirname(__file__)) | ||
|
||
ABOUT = {} | ||
with open(path.join(HERE, "datadog_test_libs", "__about__.py")) as f: | ||
exec(f.read(), ABOUT) | ||
|
||
# Get the long description from the README file | ||
LONG_DESC = "" | ||
with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: | ||
LONG_DESC = f.read() | ||
|
||
|
||
# Parse requirements | ||
def get_requirements(fpath): | ||
with open(path.join(HERE, fpath), encoding='utf-8') as f: | ||
return f.readlines() | ||
|
||
|
||
setup( | ||
# Version should always match one from an agent release | ||
version=ABOUT["__version__"], | ||
name='datadog_checks_tests_helper', | ||
description='The Datadog Check Tests Helpers', | ||
long_description=LONG_DESC, | ||
long_description_content_type='text/markdown', | ||
keywords='datadog agent checks tests', | ||
url='https://github.com/DataDog/datadog-agent-tk', | ||
author='Datadog', | ||
author_email='[email protected]', | ||
license='BSD', | ||
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'Topic :: System :: Monitoring', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
], | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=get_requirements('requirements.in'), | ||
) |