Fuel anonymous statistics collector
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 2014 Mirantis, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  4. # not use this file except in compliance with the License. You may obtain
  5. # a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. # License for the specific language governing permissions and limitations
  13. # under the License.
  14. import os
  15. from setuptools import find_packages
  16. from setuptools import setup
  17. def parse_requirements_txt():
  18. root = os.path.dirname(os.path.abspath(__file__))
  19. requirements = []
  20. with open(os.path.join(root, 'requirements.txt'), 'r') as f:
  21. for line in f.readlines():
  22. line = line.rstrip()
  23. if not line or line.startswith('#'):
  24. continue
  25. requirements.append(line)
  26. return requirements
  27. setup(
  28. name='fuel-stats',
  29. version='0.0.1',
  30. description="Service of collecting usage statistics",
  31. long_description="""Service of collecting usage statistics""",
  32. license="http://www.apache.org/licenses/LICENSE-2.0",
  33. classifiers=[
  34. "License :: OSI Approved :: Apache Software License",
  35. "Development Status :: 3 - Alpha",
  36. "Programming Language :: Python",
  37. "Topic :: Internet :: WWW/HTTP",
  38. "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
  39. ],
  40. author='Mirantis Inc.',
  41. author_email='product@mirantis.com',
  42. url='https://mirantis.com',
  43. keywords='fuel statistics collector mirantis',
  44. package_dir={'collector': 'collector/collector',
  45. 'fuel_analytics': 'analytics/fuel_analytics',
  46. 'migration': 'migration/migration'},
  47. packages=find_packages(where='collector') +
  48. find_packages(where='analytics') +
  49. find_packages(where='migration'),
  50. zip_safe=False,
  51. install_requires=parse_requirements_txt(),
  52. include_package_data=True,
  53. scripts=[
  54. 'analytics/manage_analytics.py',
  55. 'collector/manage_collector.py',
  56. 'migration/manage_migration.py',
  57. ]
  58. )