Skip to content

Commit

Permalink
move from setup.cfg to pyproject.toml (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Nov 22, 2023
1 parent 0fabd25 commit 15ee26d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 53 deletions.
50 changes: 50 additions & 0 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,56 @@ build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

[project]
name = "{{ cookiecutter.project_name }}"
description = "{{ cookiecutter.short_description or cookiecutter.friendly_name }}"
readme = "README.rst"
license = {text = "{{ cookiecutter.license }}"}
authors = [{ name = "{{ cookiecutter.author }}", email = "{{ cookiecutter.email }}" }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"{{cookiecutter.development_status}}",
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = []

[project.urls]
Issues = "https://github.com/{{cookiecutter.github_user}}/{{ cookiecutter.project_name }}/issues"
Source = "https://github.com/{{cookiecutter.github_user}}/{{ cookiecutter.project_name }}"

[project.optional-dependencies]
{%- if cookiecutter.docs != "False" %}
docs = [
"mkdocs==1.5.2",
"mkdocs-gen-files==0.5.0",
"mkdocs-material==9.3.1",
"mkdocs-section-index==0.3.6",
"mkdocstrings-python==1.6.3",
]
{%- endif %}
tests = [
"pytest==7.2.0",
"pytest-sugar==0.9.5",
"pytest-cov==3.0.0",
"pytest-mock==3.8.2",
"mypy==0.971",
]
dev = [
"{{ cookiecutter.project_name }}[tests]",
{%- if cookiecutter.docs != "False" %}
"{{ cookiecutter.project_name }}[docs]",
{%- endif %}
]

[tool.setuptools.packages.find]
where = ["src"]
namespaces = false

[tool.pytest.ini_options]
addopts = "-ra"

Expand Down
53 changes: 0 additions & 53 deletions {{cookiecutter.project_name}}/setup.cfg

This file was deleted.

0 comments on commit 15ee26d

Please sign in to comment.