setup.py 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #!/usr/bin/env python
  2. # Copyright 2021-2024 Avaiga Private Limited
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
  5. # the License. You may obtain 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 distributed under the License is distributed on
  10. # an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
  11. # specific language governing permissions and limitations under the License.
  12. """The setup script."""
  13. import json
  14. import os
  15. from setuptools import find_namespace_packages, find_packages, setup
  16. with open("README.md") as readme_file:
  17. readme = readme_file.read()
  18. version_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "version.json")
  19. with open(version_path) as version_file:
  20. version = json.load(version_file)
  21. version_string = f'{version.get("major", 0)}.{version.get("minor", 0)}.{version.get("patch", 0)}'
  22. if vext := version.get("ext"):
  23. version_string = f"{version_string}.{vext}"
  24. requirements = [
  25. "pyarrow>=14.0.2,<15.0",
  26. "networkx>=2.6,<3.0",
  27. "openpyxl>=3.1.2,<3.2",
  28. "pandas>=1.3.5,<3.0",
  29. "pymongo[srv]>=4.2.0,<5.0",
  30. "sqlalchemy>=2.0.16,<2.1",
  31. "toml>=0.10,<0.11",
  32. "taipy-config@git+https://git@github.com/Avaiga/taipy-config.git@develop",
  33. ]
  34. test_requirements = ["pytest>=3.8"]
  35. extras_require = {
  36. "fastparquet": ["fastparquet==2022.11.0"],
  37. "mssql": ["pyodbc>=4,<4.1"],
  38. "mysql": ["pymysql>1,<1.1"],
  39. "postgresql": ["psycopg2>2.9,<2.10"],
  40. "parquet": ["fastparquet==2022.11.0"],
  41. "s3": ["boto3==1.29.1"],
  42. "mongo": ["pymongo[srv]>=4.2.0,<5.0"],
  43. }
  44. setup(
  45. author="Avaiga",
  46. author_email="dev@taipy.io",
  47. python_requires=">=3.8",
  48. classifiers=[
  49. "Intended Audience :: Developers",
  50. "License :: OSI Approved :: Apache Software License",
  51. "Natural Language :: English",
  52. "Programming Language :: Python :: 3",
  53. "Programming Language :: Python :: 3.8",
  54. "Programming Language :: Python :: 3.9",
  55. "Programming Language :: Python :: 3.10",
  56. "Programming Language :: Python :: 3.11",
  57. "Programming Language :: Python :: 3.12",
  58. ],
  59. description="A Python library to build powerful and customized data-driven back-end applications.",
  60. install_requires=requirements,
  61. long_description=readme,
  62. long_description_content_type="text/markdown",
  63. license="Apache License 2.0",
  64. keywords="taipy-core",
  65. name="taipy-core",
  66. packages=find_namespace_packages(where=".") + find_packages(include=["taipy", "taipy.core", "taipy.core.*"]),
  67. include_package_data=True,
  68. test_suite="tests",
  69. tests_require=test_requirements,
  70. url="https://github.com/avaiga/taipy-core",
  71. version=version_string,
  72. zip_safe=False,
  73. extras_require=extras_require,
  74. )