|
| 1 | +# Guide (user-friendly): |
| 2 | +# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ |
| 3 | + |
| 4 | +# Specification (technical, formal): |
| 5 | +# https://packaging.python.org/en/latest/specifications/pyproject-toml/ |
| 6 | + |
| 7 | + |
| 8 | +# Choosing a build backend: |
| 9 | +# https://packaging.python.org/en/latest/tutorials/packaging-projects/#choosing-a-build-backend |
| 10 | +[build-system] |
| 11 | +# A list of packages that are needed to build your package: |
| 12 | +requires = ["setuptools"] # REQUIRED if [build-system] table is used |
| 13 | +# The name of the Python object that frontends will use to perform the build: |
| 14 | +build-backend = "setuptools.build_meta" # If not defined, then legacy behavior can happen. |
| 15 | + |
| 16 | + |
| 17 | +[project] |
| 18 | +# This is the name of your project. The first time you publish this |
| 19 | +# package, this name will be registered for you. It will determine how |
| 20 | +# users can install this project, e.g.: |
| 21 | +# |
| 22 | +# $ pip install sunflowerproject |
| 23 | +# |
| 24 | +# And where it will live on PyPI: https://pypi.org/project/sunflowerproject/ |
| 25 | +# |
| 26 | +# There are some restrictions on what makes a valid project name |
| 27 | +# specification here: |
| 28 | +# https://packaging.python.org/specifications/core-metadata/#name |
| 29 | +name = "sunflowerproject" # REQUIRED, is the only field that cannot be marked as dynamic. |
| 30 | + |
| 31 | +# Versions should comply with PEP 440: |
| 32 | +# https://www.python.org/dev/peps/pep-0440/ |
| 33 | +# |
| 34 | +# For a discussion on single-sourcing the version, see |
| 35 | +# https://packaging.python.org/guides/single-sourcing-package-version/ |
| 36 | +version = "4.0.0" # REQUIRED, although can be dynamic |
| 37 | + |
| 38 | +# This is a one-line description or tagline of what your project does. This |
| 39 | +# corresponds to the "Summary" metadata field: |
| 40 | +# https://packaging.python.org/specifications/core-metadata/#summary |
| 41 | +description = "A sunflower Python project" |
| 42 | + |
| 43 | +# This is an optional longer description of your project that represents |
| 44 | +# the body of text which users will see when they visit PyPI. |
| 45 | +# |
| 46 | +# Often, this is the same as your README, so you can just read it in from |
| 47 | +# that file directly. |
| 48 | +# |
| 49 | +# This field corresponds to the "Description" metadata field: |
| 50 | +# https://packaging.python.org/specifications/core-metadata/#description-optional |
| 51 | +readme = "README.md" |
| 52 | + |
| 53 | +# Specify which Python versions you support. In contrast to the |
| 54 | +# 'Programming Language' classifiers in this file, 'pip install' will check this |
| 55 | +# and refuse to install the project if the version does not match. See |
| 56 | +# https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires |
| 57 | +requires-python = ">=3.9" |
| 58 | + |
| 59 | +# This is either text indicating the license for the distribution, or a file |
| 60 | +# that contains the license. |
| 61 | +# https://packaging.python.org/en/latest/specifications/core-metadata/#license |
| 62 | +license = { file = "LICENSE.txt" } |
| 63 | + |
| 64 | +# This field adds keywords for your project which will appear on the |
| 65 | +# project page. What does your project relate to? |
| 66 | +# |
| 67 | +# Note that this is a list of additional keywords, separated |
| 68 | +# by commas, to be used to assist searching for the distribution in a |
| 69 | +# larger catalog. |
| 70 | +keywords = ["sunflower", "setuptools", "development"] |
| 71 | + |
| 72 | +# This should be your name or the name of the organization who originally |
| 73 | +# authored the project, and a valid email address corresponding to the name |
| 74 | +# listed. |
| 75 | +authors = [{ name = "A. Random Developer", email = "author@example.com" }] |
| 76 | + |
| 77 | +# This should be your name or the names of the organization who currently |
| 78 | +# maintains the project, and a valid email address corresponding to the name |
| 79 | +# listed. |
| 80 | +maintainers = [ |
| 81 | + { name = "A. Great Maintainer", email = "maintainer@example.com" }, |
| 82 | +] |
| 83 | + |
| 84 | +# Classifiers help users find your project by categorizing it. |
| 85 | +# |
| 86 | +# For a list of valid classifiers, see https://pypi.org/classifiers/ |
| 87 | +classifiers = [ |
| 88 | + # How mature is this project? Common values are |
| 89 | + # 3 - Alpha |
| 90 | + # 4 - Beta |
| 91 | + # 5 - Production/Stable |
| 92 | + "Development Status :: 3 - Alpha", |
| 93 | + |
| 94 | + # Indicate who your project is intended for |
| 95 | + "Intended Audience :: Developers", |
| 96 | + "Topic :: Software Development :: Build Tools", |
| 97 | + |
| 98 | + # Pick your license as you wish |
| 99 | + "License :: OSI Approved :: MIT License", |
| 100 | + |
| 101 | + # Specify the Python versions you support here. In particular, ensure |
| 102 | + # that you indicate you support Python 3. These classifiers are *not* |
| 103 | + # checked by "pip install". See instead "requires-python" key in this file. |
| 104 | + "Programming Language :: Python :: 3", |
| 105 | + "Programming Language :: Python :: 3.9", |
| 106 | + "Programming Language :: Python :: 3.10", |
| 107 | + "Programming Language :: Python :: 3.11", |
| 108 | + "Programming Language :: Python :: 3.12", |
| 109 | + "Programming Language :: Python :: 3.13", |
| 110 | + "Programming Language :: Python :: 3 :: Only", |
| 111 | +] |
| 112 | + |
| 113 | +# This field lists other packages that your project depends on to run. |
| 114 | +# Any package you put here will be installed by pip when your project is |
| 115 | +# installed, so they must be valid existing projects. |
| 116 | +# |
| 117 | +# For an analysis of this field vs pip's requirements files see: |
| 118 | +# https://packaging.python.org/discussions/install-requires-vs-requirements/ |
| 119 | +dependencies = ["peppercorn"] |
| 120 | + |
| 121 | +# List additional groups of dependencies here (e.g. development |
| 122 | +# dependencies). Users will be able to install these using the "extras" |
| 123 | +# syntax, for example: |
| 124 | +# |
| 125 | +# $ pip install sunflowerproject[dev] |
| 126 | +# |
| 127 | +# Optional dependencies the project provides. These are commonly |
| 128 | +# referred to as "extras". For a more extensive definition see: |
| 129 | +# https://packaging.python.org/en/latest/specifications/dependency-specifiers/#extras |
| 130 | +[project.optional-dependencies] |
| 131 | +dev = ["check-manifest"] |
| 132 | +test = ["coverage"] |
| 133 | + |
| 134 | +# List URLs that are relevant to your project |
| 135 | +# |
| 136 | +# This field corresponds to the "Project-URL" and "Home-Page" metadata fields: |
| 137 | +# https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use |
| 138 | +# https://packaging.python.org/specifications/core-metadata/#home-page-optional |
| 139 | +# |
| 140 | +# Examples listed include a pattern for specifying where the package tracks |
| 141 | +# issues, where the source is hosted, where to say thanks to the package |
| 142 | +# maintainers, and where to support the project financially. The key is |
| 143 | +# what's used to render the link text on PyPI. |
| 144 | +[project.urls] |
| 145 | +"Homepage" = "https://github.com/pypa/sunflowerproject" |
| 146 | +"Bug Reports" = "https://github.com/pypa/sunflowerproject/issues" |
| 147 | +"Funding" = "https://donate.pypi.org" |
| 148 | +"Say Thanks!" = "http://saythanks.io/to/example" |
| 149 | +"Source" = "https://github.com/pypa/sunflowerproject/" |
| 150 | + |
| 151 | +# The following would provide a command line executable called `sunflower` |
| 152 | +# which executes the function `main` from this package when invoked. |
| 153 | +[project.scripts] |
| 154 | +sunflower = "sunflower:main" |
| 155 | + |
| 156 | + |
| 157 | +# This is configuration specific to the `setuptools` build backend. |
| 158 | +# If you are using a different build backend, you will need to change this. |
| 159 | +[tool.setuptools] |
| 160 | +# If there are data files included in your packages that need to be |
| 161 | +# installed, specify them here. |
| 162 | +package-data = { "sunflower" = ["*.dat"] } |
0 commit comments