setup.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. DataOps Platform Setup
  5. """
  6. from setuptools import setup, find_packages
  7. # 读取README文件
  8. with open("README.md", "r", encoding="utf-8") as fh:
  9. long_description = fh.read()
  10. # 读取requirements.txt
  11. with open("requirements.txt", "r", encoding="utf-8") as fh:
  12. requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]
  13. setup(
  14. name="dataops-platform",
  15. version="1.0.0",
  16. author="DataOps Team",
  17. author_email="team@dataops.com",
  18. description="DataOps Platform - 数据运营平台",
  19. long_description=long_description,
  20. long_description_content_type="text/markdown",
  21. url="https://github.com/dataops/dataops-platform",
  22. packages=find_packages(),
  23. classifiers=[
  24. "Development Status :: 4 - Beta",
  25. "Intended Audience :: Developers",
  26. "License :: OSI Approved :: MIT License",
  27. "Operating System :: OS Independent",
  28. "Programming Language :: Python :: 3",
  29. "Programming Language :: Python :: 3.8",
  30. "Programming Language :: Python :: 3.9",
  31. "Programming Language :: Python :: 3.10",
  32. "Programming Language :: Python :: 3.11",
  33. "Programming Language :: Python :: 3.12",
  34. ],
  35. python_requires=">=3.8",
  36. install_requires=requirements,
  37. extras_require={
  38. "dev": [
  39. "pytest>=7.4.0",
  40. "black>=23.11.0",
  41. "flake8>=6.1.0",
  42. "mypy>=1.7.0",
  43. ],
  44. },
  45. entry_points={
  46. "console_scripts": [
  47. "dataops=application:main",
  48. ],
  49. },
  50. include_package_data=True,
  51. zip_safe=False,
  52. )