Skip to content

Commit

Permalink
Use a dynamic plugin to build dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Nov 21, 2023
1 parent 12d3fd2 commit ad97a01
Show file tree
Hide file tree
Showing 32 changed files with 652 additions and 739 deletions.
63 changes: 61 additions & 2 deletions android/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,65 @@
[build-system]
requires = ["setuptools==66.1.1", "setuptools_scm[toml]==7.0.5"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools==66.1.1",
"setuptools_scm[toml]==7.0.5",
"git+https://github.com/beeware/setuptools_dynamic_dependencies",
]

[project]
dynamic = ["version", "dependencies"]
name = "toga-android"
description = "An Android backend for the Toga widget toolkit."
readme = "README.rst"
requires-python = ">= 3.8"
license.file = "LICENSE"
authors = [
{name="Russell Keith-Magee", email="russell@keith-magee.com"},
]
maintainers = [
{name="BeeWare Team", email="team@beeware.org"},
]
keywords = [
"gui",
"widget",
"cross-platform",
"toga",
"mobile",
"android",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Widget Sets",
]

[project.urls]
Project = "https://beeware.org/project/projects/libraries/toga/"
Funding = "https://beeware.org/contributing/membership/"
Documentation = "http://toga.readthedocs.io/en/latest/"
Tracker = "https://github.com/beeware/toga/issues"
Source = "https://github.com/beeware/toga"

[project.entry-points."toga.backends"]
android = "toga_android"

[tool.setuptools_scm]
root = ".."

[tool.setuptools_dynamic_dependencies]
dependencies = [
"toga-core == {version}",
]

[tool.coverage.run]
parallel = true
Expand Down
54 changes: 0 additions & 54 deletions android/setup.cfg

This file was deleted.

11 changes: 0 additions & 11 deletions android/setup.py

This file was deleted.

66 changes: 64 additions & 2 deletions cocoa/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,68 @@
[build-system]
requires = ["setuptools==66.1.1", "setuptools_scm[toml]==7.0.5"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools==66.1.1",
"setuptools_scm[toml]==7.0.5",
"git+https://github.com/beeware/setuptools_dynamic_dependencies",
]

[project]
dynamic = ["version", "dependencies"]
name = "toga-cocoa"
description = "A Cocoa (macOS) backend for the Toga widget toolkit."
readme = "README.rst"
requires-python = ">= 3.8"
license.file = "LICENSE"
authors = [
{name="Russell Keith-Magee", email="russell@keith-magee.com"},
]
maintainers = [
{name="BeeWare Team", email="team@beeware.org"},
]
keywords = [
"gui",
"widget",
"cross-platform",
"toga",
"desktop",
"macOS",
"cocoa",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Widget Sets",
]

[project.urls]
Project = "https://beeware.org/project/projects/libraries/toga/"
Funding = "https://beeware.org/contributing/membership/"
Documentation = "http://toga.readthedocs.io/en/latest/"
Tracker = "https://github.com/beeware/toga/issues"
Source = "https://github.com/beeware/toga"

[project.entry-points."toga.backends"]
macOS = "toga_cocoa"

[tool.setuptools_scm]
root = ".."

[tool.setuptools_dynamic_dependencies]
dependencies = [
"fonttools >= 4.42.1, < 5.0.0",
"rubicon-objc >= 0.4.7, < 0.5.0",
"toga-core == {version}",
]

[tool.coverage.run]
parallel = true
Expand Down
55 changes: 0 additions & 55 deletions cocoa/setup.cfg

This file was deleted.

13 changes: 0 additions & 13 deletions cocoa/setup.py

This file was deleted.

70 changes: 68 additions & 2 deletions demo/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,72 @@
[build-system]
requires = ["setuptools==66.1.1", "setuptools_scm[toml]==7.0.5"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools==66.1.1",
"setuptools_scm[toml]==7.0.5",
"git+https://github.com/beeware/setuptools_dynamic_dependencies",
]

[project]
dynamic = ["version", "dependencies"]
name = "toga-demo"
description = "A demonstration of the capabilities of the Toga widget toolkit."
readme = "README.rst"
requires-python = ">= 3.8"
license.file = "LICENSE"
authors = [
{name="Russell Keith-Magee", email="russell@keith-magee.com"},
]
maintainers = [
{name="BeeWare Team", email="team@beeware.org"},
]
keywords = [
"gui",
"widget",
"cross-platform",
"desktop",
"mobile",
"macOS",
"cocoa",
"iOS",
"android",
"windows",
"winforms",
"linux",
"gtk",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Widget Sets",
]

[project.urls]
Project = "https://beeware.org/project/projects/libraries/toga/"
Funding = "https://beeware.org/contributing/membership/"
Documentation = "http://toga.readthedocs.io/en/latest/"
Tracker = "https://github.com/beeware/toga/issues"
Source = "https://github.com/beeware/toga"

[project.scripts]
toga-demo = "toga_demo.__main__:run"

[tool.setuptools_scm]
root = ".."

[tool.setuptools_dynamic_dependencies]
dependencies = [
"toga == {version}",
]

[tool.briefcase]
project_name = "Toga Demo"
Expand Down
Loading

0 comments on commit ad97a01

Please sign in to comment.