Chih-Yu Huang | dbe89eb | 2015-11-11 17:01:03 +0800 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | # Copyright 2015 The Chromium OS Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | import fnmatch |
| 7 | import os |
| 8 | from distutils.core import setup |
| 9 | |
| 10 | PROJECT_NAME = 'graphyte' |
| 11 | PROJECT_DIR = os.path.join(PROJECT_NAME, os.path.dirname(__file__)) |
| 12 | |
| 13 | # Get all path of *.yaml and *.csv |
| 14 | DATA_PATHS = [] |
| 15 | for root, _, filenames in os.walk(PROJECT_DIR): |
| 16 | DATA_PATHS += [os.path.join(root, filename) for filename in |
| 17 | fnmatch.filter(filenames, '*.yaml')] |
| 18 | DATA_PATHS += [os.path.join(root, filename) for filename in |
| 19 | fnmatch.filter(filenames, '*.csv')] |
| 20 | |
| 21 | setup( |
| 22 | name=PROJECT_NAME, |
| 23 | version='0.1', |
| 24 | description='Graphyte (Google RAdio PHY TEst)', |
| 25 | url='https://sites.google.com/a/google.com/graphyte/home', |
| 26 | author='Chih-Yu Huang', |
| 27 | author_email='akahuang@google.com', |
| 28 | license='Chromium', |
| 29 | packages=[PROJECT_NAME], |
| 30 | package_data={PROJECT_NAME: DATA_PATHS}, |
| 31 | scripts=['graphyte_main.py'], |
| 32 | install_requires=['pyyaml'], |
| 33 | ) |