Skip to content

Commit

Permalink
transition to pyproject.toml
Browse files Browse the repository at this point in the history
Transitions project maintenance, building, and distribution to
the pyproject.toml file. This also allows many of the python
configuration files to be moved into the pyproject.toml file themselves.
  • Loading branch information
Javagedes committed May 11, 2023
1 parent 40c6a89 commit 90fed73
Show file tree
Hide file tree
Showing 13 changed files with 82 additions and 112 deletions.
3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

6 changes: 0 additions & 6 deletions .flake8

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions .pydocstyle

This file was deleted.

File renamed without changes.
13 changes: 13 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,17 @@ exclude *.txt
exclude .flake8
exclude .coveragerc
exclude .gitignore
exclude .cspell.json
exclude .markdownlint.yaml
exclude BasicDevTests.py
exclude ConfirmVersionAndTag.py
exclude MANIFEST.in
exclude .vscode
prune docs
prune tests.unit
prune .githooks
prune .github
prune edk2_pytool_library.egg-info
prune azure-pipelines

include edk2toollib/bin/vswhere.exe
9 changes: 0 additions & 9 deletions docs/user/requirements.txt

This file was deleted.

69 changes: 69 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[build-system]
requires = ["setuptools", "setuptools_scm[toml]"]
build-backend = "setuptools.build_meta"

[project]
name = "edk2-pytool-library"
maintainers = [{name = "EDK2 Pytool Maintainers", email = "[email protected]"}]
dynamic = ["version"]
description = "Python library supporting UEFI EDK2 firmware development"
readme = {file = "readme.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
dependencies = []
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]

[project.urls]
homepage = "https://github.com/tianocore/edk2-pytool-library/"
documentation = "https://www.tianocore.org/edk2-pytool-library/"
issues = "https://github.com/tianocore/edk2-pytool-library/issues/"

[project.optional-dependencies]
dev = [
"flake8 == 6.0.0",
"flake8-pyproject == 1.2.3",
"pytest == 7.3.1",
"coverage == 7.2.5",
"pydocstyle == 6.3.0",
]
publish = [
"setuptools == 67.7.2",
"build == 0.10.0",
"twine == 4.0.2",
]
docs = [
"black==23.3.0",
"mkdocs==1.4.2",
"mkdocs-material==9.1.9",
"mkdocstrings[python]==0.21.2",
"mkdocstrings-python==0.9.0",
"markdown-include==0.8.1",
"mkdocs-gen-files==0.5.0",
"mkdocs-exclude==1.0.2",
"mkdocs-awesome-pages-plugin==2.9.0",
]

[tool.setuptools_scm]

[tool.coverage.run]
include = ["edk2toollib/*"]

[tool.flake8]
ignore = "E266,E722,W503"
max_line_length = 120

[tool.pydocstyle]
convention = "google"

[tool.pytest.ini_options]
testpaths = [
"tests.unit"
]
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

3 changes: 0 additions & 3 deletions requirements.publisher.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

81 changes: 0 additions & 81 deletions setup.py

This file was deleted.

0 comments on commit 90fed73

Please sign in to comment.