Skip to content

Commit

Permalink
feat: replace setup.py with pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoandre-avaiga committed Aug 5, 2024
1 parent fb771de commit dcb0443
Show file tree
Hide file tree
Showing 13 changed files with 436 additions and 582 deletions.
64 changes: 64 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,67 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "taipy"
version = "0.0.0" # will be dynamically set
description = "A 360° open-source platform from Python pilots to production-ready web apps."
readme = "package_desc.md"
requires-python = ">=3.8"
license = {text = "Apache License 2.0"}
keywords = ["taipy"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
dependencies = [] # will be dynamically set

[project.optional-dependencies]
test = ["pytest>=3.8"]
ngrok = ["pyngrok>=5.1,<6.0"]
image = [
"python-magic>=0.4.24,<0.5; platform_system!='Windows'",
"python-magic-bin>=0.4.14,<0.5; platform_system=='Windows'"
]
rdp = ["rdp>=0.8"]
arrow = ["pyarrow>=14.0.2,<15.0"]
mssql = ["pyodbc>=4"]

[project.urls]
Homepage = "https://www.taipy.io"
Documentation = "https://docs.taipy.io"
Source = "https://github.com/Avaiga/taipy"
Download = "https://pypi.org/project/taipy/#files"
Tracker = "https://github.com/Avaiga/taipy/issues"
Security = "https://github.com/Avaiga/taipy?tab=security-ov-file#readme"
"Release notes" = "https://docs.taipy.io/en/release-0.0.0/relnotes/" # version will be dynamically set

[tool.setuptools.packages.find]
include = ["taipy", "taipy.*"]

[tool.setuptools.package-data]
"taipy" = ["version.json"]

[tool.setuptools]
zip-safe = false

[project.scripts]
taipy = "taipy._entrypoint:_entrypoint"

[tool.ruff]
exclude = [
".git",
Expand Down
121 changes: 0 additions & 121 deletions setup.py

This file was deleted.

58 changes: 58 additions & 0 deletions taipy/config/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "taipy-config"
version = "0.0.0" # will be dynamically set
description = "A Taipy package dedicated to easily configure a Taipy application."
readme = "package_desc.md"
requires-python = ">=3.8"
license = {text = "Apache License 2.0"}
keywords = ["taipy-config"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]

dependencies = [
"toml>=0.10,<0.11",
"deepdiff>=6.7,<6.8"
]

[project.optional-dependencies]
test = [
"pytest>=3.8"
]

[project.urls]
Homepage = "https://www.taipy.io"
Documentation = "https://docs.taipy.io"
Source = "https://github.com/Avaiga/taipy"
Download = "https://pypi.org/project/taipy/#files"
Tracker = "https://github.com/Avaiga/taipy/issues"
Security = "https://github.com/Avaiga/taipy?tab=security-ov-file#readme"
"Release notes" = "https://docs.taipy.io/en/release-0.0.0/relnotes/" # version will be dynamically set

[tool.setuptools.packages]
find = {where = ["."], include = ["taipy", "taipy.config", "taipy.config.*", "taipy.logger", "taipy.logger.*"]}

[tool.setuptools.package-data]
"version" = ["version.json"]

[tool.setuptools]
zip-safe = false
80 changes: 0 additions & 80 deletions taipy/config/setup.py

This file was deleted.

62 changes: 62 additions & 0 deletions taipy/core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[build-system]
requires = ["setuptools>=42", "wheel", ]
build-backend = "setuptools.build_meta"

[project]
name = "taipy-core"
version = "0.0.0" # will be dynamically set
description = "A Python library to build powerful and customized data-driven back-end applications."
readme = "package_desc.md"
requires-python = ">=3.8"
keywords = ["taipy-core", ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]

dependencies = [] # will be dynamically set

[project.license]
text = "Apache License 2.0"

[project.optional-dependencies]
test = ["pytest>=3.8", ]
mssql = ["pyodbc>=4,<4.1", ]
mysql = ["pymysql>1,<1.1", ]
postgresql = ["psycopg2>2.9,<2.10", ]
parquet = ["fastparquet==2022.11.0", "pyarrow>=14.0.2,<15.0", ]
s3 = ["boto3==1.29.1", ]
mongo = ["pymongo[srv]>=4.2.0,<5.0", ]

[project.urls]
Homepage = "https://www.taipy.io"
Documentation = "https://docs.taipy.io"
Source = "https://github.com/Avaiga/taipy"
Download = "https://pypi.org/project/taipy/#files"
Tracker = "https://github.com/Avaiga/taipy/issues"
Security = "https://github.com/Avaiga/taipy?tab=security-ov-file#readme"
"Release notes" = "https://docs.taipy.io/en/release-4.0.0.dev0/relnotes/"

[tool.setuptools]
zip-safe = false

[tool.setuptools.package-data]
taipy = ["version.json", ]

[tool.setuptools.packages.find]
where = [".", ]
include = ["taipy", "taipy.core", "taipy.core.*", ]
Loading

0 comments on commit dcb0443

Please sign in to comment.