-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate from setup.py to pyproject.toml
This is an attempt both to modernize the packaging and to fix mypy testing in editable mode (issue #956). Packaging seems to work, but mypy testing still fails. Will now attempt to migrate from setuptools to hatch for building.
- Loading branch information
Showing
7 changed files
with
101 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,51 @@ | ||
# https://packaging.python.org/en/latest/tutorials/packaging-projects/ | ||
# https://setuptools.pypa.io/en/latest/userguide/quickstart.html | ||
|
||
[project] | ||
dynamic = ["version", "dependencies", "optional-dependencies"] | ||
name = "tutor" | ||
license = {file = "LICENSE.txt"} | ||
authors = [ | ||
{name = "Edly", email = "[email protected]"}, | ||
] | ||
description = "The Docker-based Open edX distribution designed for peace of mind" | ||
readme = {file = "README.rst", content-type = "text/x-rst"} | ||
requires-python = ">= 3.9" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GNU Affero General Public License v3", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
|
||
[project.scripts] | ||
tutor = "tutor.commands.cli:main" | ||
|
||
# https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels | ||
[project.urls] | ||
Homepage = "https://docs.tutor.edly.io/" | ||
Documentation = "https://docs.tutor.edly.io/" | ||
Source = "https://github.com/overhangio/tutor" | ||
Issues = "https://github.com/overhangio/tutor/issues" | ||
Changelog = "https://github.com/overhangio/tutor/blob/master/CHANGELOG.md" | ||
Community = "https://discuss.openedx.org/tag/tutor" | ||
|
||
# Setuptools-specific configuration | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "tutor.__about__.__package_version__"} | ||
dependencies = {file = ["requirements/base.in"] } | ||
|
||
[tool.setuptools.dynamic.optional-dependencies] | ||
dev = {file = ["requirements/dev.txt"]} | ||
full = {file = ["requirements/plugins.txt"]} | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["tests*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.