Change setup.cfg to pyproject.toml
This commit is contained in:
parent
e7079c2e17
commit
2317b52dab
3 changed files with 21 additions and 25 deletions
21
{{cookiecutter.package_name}}/pyproject.toml
Normal file
21
{{cookiecutter.package_name}}/pyproject.toml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[project]
|
||||
name = "{{ cookiecutter.package_name }}"
|
||||
version = "{{ cookiecutter.package_version }}"
|
||||
description = "{{ cookiecutter.package_description }}"
|
||||
|
||||
requires-python = ">=3.10"
|
||||
authors = [
|
||||
{name = "{{ cookiecutter.author_name }}", email = "{{ cookiecutter.author_email }}"},
|
||||
]
|
||||
maintainers = [
|
||||
{name = "{{ cookiecutter.author_name }}", email = "{{ cookiecutter.author_email }}"},
|
||||
]
|
||||
readme = "README.md"
|
||||
license = {file = "LICENSE"}
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Programming Language :: Python"
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
{{ cookiecutter.package_name }} = "{{ cookiecutter.package_name }}.main:main"
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
[metadata]
|
||||
name = {{ cookiecutter.package_name }}
|
||||
version = {{ cookiecutter.package_version }}
|
||||
description = {{ cookiecutter.package_description }}
|
||||
author = {{ cookiecutter.author_name }}
|
||||
author_email = {{ cookiecutter.author_email }}
|
||||
license = GPL-3.0
|
||||
|
||||
[options]
|
||||
packages = find:
|
||||
package_dir =
|
||||
=src
|
||||
python_requires = >=3.6
|
||||
install_requires =
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
{{cookiecutter.package_name}} = {{cookiecutter.package_name}}.main:main
|
||||
|
||||
[options.packages.find]
|
||||
where = src
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
from setuptools import setup
|
||||
|
||||
if __name__ == '__main__':
|
||||
setup()
|
||||
Loading…
Add table
Add a link
Reference in a new issue