setup.py 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #!/usr/bin/env python
  2. # Copyright 2023 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_packages, find_namespace_packages, setup
  16. with open("README.md") as readme_file:
  17. readme = readme_file.read()
  18. with open(f"src{os.sep}taipy{os.sep}version.json") as version_file:
  19. version = json.load(version_file)
  20. version_string = f'{version.get("major", 0)}.{version.get("minor", 0)}.{version.get("patch", 0)}'
  21. if vext := version.get("ext"):
  22. version_string = f"{version_string}.{vext}"
  23. requirements = [
  24. "taipy-gui>=2.1,<2.2",
  25. "taipy-rest>=2.1,<2.2",
  26. ]
  27. test_requirements = ["pytest>=3.8"]
  28. extras_require = {
  29. "ngrok": ["pyngrok>=5"],
  30. "image": ["python-magic;platform_system!='Windows'", "python-magic-bin;platform_system=='Windows'"],
  31. "rdp": ["rdp>=0.8"],
  32. "arrow": ["pyarrow>=7.0"],
  33. "mssql": ["pyodbc>=4"],
  34. }
  35. setup(
  36. author="Avaiga",
  37. author_email="dev@taipy.io",
  38. python_requires=">=3.8",
  39. classifiers=[
  40. "Intended Audience :: Developers",
  41. "License :: OSI Approved :: Apache Software License",
  42. "Natural Language :: English",
  43. "Programming Language :: Python :: 3",
  44. "Programming Language :: Python :: 3.8",
  45. "Programming Language :: Python :: 3.9",
  46. "Programming Language :: Python :: 3.10",
  47. "Programming Language :: Python :: 3.11",
  48. ],
  49. description="The Python application builder. Turns Data and AI algorithms into full web apps in no time.",
  50. install_requires=requirements,
  51. license="Apache License 2.0",
  52. long_description=readme,
  53. long_description_content_type="text/markdown",
  54. keywords="taipy",
  55. name="taipy",
  56. package_dir={"": "src"},
  57. packages=find_namespace_packages(where="src") + find_packages(include=["taipy"]),
  58. include_package_data=True,
  59. test_suite="tests",
  60. url="https://github.com/avaiga/taipy",
  61. version=version_string,
  62. zip_safe=False,
  63. extras_require=extras_require,
  64. )