Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (49 sloc) 1.49 KB
#!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
version = '1.1'
if ('CI' in os.environ) or ('CONTINUOUS_INTEGRATION' in os.environ):
if 'SCREWDRIVER' in os.environ:
build_number = os.environ['BUILD_NUMBER']
elif 'TRAVIS' in os.environ:
build_number = os.environ['TRAVIS_BUILD_NUMBER']
sys.exit('We currently only support building CI builds with Screwdriver or Travis')
version = '.'.join([version, build_number])
version += '.0'
# Read the long description from
with open('') as f:
long_description =
def package_scripts():
Update the "scripts" parameter of the setup_arguments with any scripts
found in the "scripts" directory.
scripts_list = []
if os.path.isdir('scripts'):
scripts_list = [
os.path.join('scripts', f) for f in os.listdir('scripts')
return scripts_list
setup_arguments = {
'version': version,
'long_description': long_description,
'long_description_content_type': "text/markdown",
'packages': find_packages(),
'package_data': {
'yahoo_panoptes.framework': [
'yahoo_panoptes.consumers.influxdb': [
'scripts': package_scripts(),
args = setup_arguments
if __name__ == '__main__':
You can’t perform that action at this time.