Skip to content

Commit 1696667

Browse files
committed
DEV: Convert most metadata to pyproject.toml.
1 parent ca33cf1 commit 1696667

File tree

2 files changed

+105
-75
lines changed

2 files changed

+105
-75
lines changed

pyproject.toml

Lines changed: 105 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,110 @@ version_scheme = "no-guess-dev"
1212
check_python_h_first = "check_python_h_first.__main__:main"
1313

1414
[project]
15-
dynamic = ["version", "readme", "optional-dependencies"]
1615
name = "check-python-h-first"
1716
description = "Script to check whether Python.h is included first in any relevant files."
17+
authors = [{name = "DWesl", email = "22566757+DWesl@users.noreply.github.com"}]
18+
license = {text = "BSD-3-Clause"}
19+
# Add here all kinds of additional classifiers as defined under
20+
# https://pypi.org/classifiers/
21+
classifiers = [
22+
"Development Status :: 4 - Beta",
23+
"Programming Language :: Python",
24+
]
25+
# Add here dependencies of your project (line-separated), e.g. requests>=2.2,<3.0.
26+
# Version specifiers like >=2.2,<3.0 avoid problems due to API changes in
27+
# new major versions. This works if the required packages follow Semantic Versioning.
28+
# For more information, check out https://semver.org/.
29+
dependencies = ['importlib-metadata; python_version<"3.8"']
30+
dynamic = ["version"]
31+
# Require a min/specific Python version (comma-separated conditions)
32+
# python_requires = [">=3.8"]
33+
34+
[project.readme]
35+
file = "README.rst"
36+
content-type = "text/x-rst; charset=UTF-8"
37+
38+
# Add here related links, for example:
39+
[project.urls]
40+
Homepage = "https://github.com/pyscaffold/pyscaffold/"
41+
Documentation = "https://pyscaffold.org/"
42+
# Source = https://github.com/pyscaffold/pyscaffold/
43+
# Changelog = https://pyscaffold.org/en/latest/changelog.html
44+
# Tracker = https://github.com/pyscaffold/pyscaffold/issues
45+
# Conda-Forge = https://anaconda.org/conda-forge/pyscaffold
46+
# Download = https://pypi.org/project/PyScaffold/#files
47+
# Twitter = https://twitter.com/PyScaffold
48+
49+
[project.optional-dependencies]
50+
# Add here additional requirements for extra features, to install with:
51+
# `pip install check-python-h-first[PDF]` like:
52+
# PDF = ReportLab; RXP
53+
# Add here test requirements (semicolon/line-separated)
54+
testing = [
55+
"setuptools",
56+
"pytest",
57+
"pytest-cov",
58+
]
59+
60+
[project.entry-points]
61+
# Add here console scripts like:
62+
# console_scripts =
63+
# script_name = check_python_h_first.module:function
64+
# For example:
65+
# console_scripts =
66+
# fibonacci = check_python_h_first.skeleton:run
67+
# And any other entry points, for example:
68+
# pyscaffold.cli =
69+
# awesome = pyscaffoldext.awesome.extension:AwesomeExtension
70+
71+
[tool.setuptools]
72+
zip-safe = false
73+
include-package-data = true
74+
package-dir = {"" = "src"}
75+
# Change if running only on Windows, Mac or Linux (comma-separated)
76+
platforms = ["any"]
77+
license-files = ["LICENSE.txt"]
78+
79+
[tool.setuptools.packages.find]
80+
where = ["src"]
81+
exclude = ["tests"]
82+
namespaces = true
83+
84+
[tool.pytest.ini_options]
85+
# Specify command line options as you would do when invoking pytest directly.
86+
# e.g. --cov-report html (or xml) for html/xml output or --junitxml junit.xml
87+
# in order to write a coverage file that can be read by Jenkins.
88+
# CAUTION: --cov flags may prohibit setting breakpoints while debugging.
89+
# Comment those flags to avoid this pytest issue.
90+
addopts = """
91+
--cov check_python_h_first --cov-report term-missing
92+
--verbose"""
93+
norecursedirs = [
94+
"dist",
95+
"build",
96+
".tox",
97+
]
98+
testpaths = ["tests"]
99+
# Use pytest markers to select/deselect specific tests
100+
# markers =
101+
# slow: mark tests as slow (deselect with '-m "not slow"')
102+
# system: mark end-to-end system tests
103+
104+
[tool.devpi.upload]
105+
# Options for the devpi: PyPI server and packaging tool
106+
# VCS export must be deactivated since we are using setuptools-scm
107+
no_vcs = "1"
108+
formats = "bdist_wheel"
109+
110+
[tool.pyscaffold]
111+
# PyScaffold's parameters when the project was created.
112+
# This will be used when updating. Do not change!
113+
version = "4.6"
114+
package = "check_python_h_first"
115+
extensions = """
116+
github_actions
117+
pre_commit"""
118+
# This file is used to configure your project.
119+
# Read more about the various options under:
120+
# https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
121+
# https://setuptools.pypa.io/en/latest/references/keywords.html

setup.cfg

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -3,80 +3,6 @@
33
# https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
44
# https://setuptools.pypa.io/en/latest/references/keywords.html
55

6-
[metadata]
7-
name = check-python-h-first
8-
description = Script to check whether Python.h is included first in any relevant files.
9-
author = DWesl
10-
author_email = 22566757+DWesl@users.noreply.github.com
11-
license = BSD-3-Clause
12-
license_files = LICENSE.txt
13-
long_description = file: README.rst
14-
long_description_content_type = text/x-rst; charset=UTF-8
15-
url = https://github.com/pyscaffold/pyscaffold/
16-
# Add here related links, for example:
17-
project_urls =
18-
Documentation = https://pyscaffold.org/
19-
# Source = https://github.com/pyscaffold/pyscaffold/
20-
# Changelog = https://pyscaffold.org/en/latest/changelog.html
21-
# Tracker = https://github.com/pyscaffold/pyscaffold/issues
22-
# Conda-Forge = https://anaconda.org/conda-forge/pyscaffold
23-
# Download = https://pypi.org/project/PyScaffold/#files
24-
# Twitter = https://twitter.com/PyScaffold
25-
26-
# Change if running only on Windows, Mac or Linux (comma-separated)
27-
platforms = any
28-
29-
# Add here all kinds of additional classifiers as defined under
30-
# https://pypi.org/classifiers/
31-
classifiers =
32-
Development Status :: 4 - Beta
33-
Programming Language :: Python
34-
35-
36-
[options]
37-
zip_safe = False
38-
packages = find_namespace:
39-
include_package_data = True
40-
package_dir =
41-
=src
42-
43-
# Require a min/specific Python version (comma-separated conditions)
44-
# python_requires = >=3.8
45-
46-
# Add here dependencies of your project (line-separated), e.g. requests>=2.2,<3.0.
47-
# Version specifiers like >=2.2,<3.0 avoid problems due to API changes in
48-
# new major versions. This works if the required packages follow Semantic Versioning.
49-
# For more information, check out https://semver.org/.
50-
install_requires =
51-
importlib-metadata; python_version<"3.8"
52-
53-
54-
[options.packages.find]
55-
where = src
56-
exclude =
57-
tests
58-
59-
[options.extras_require]
60-
# Add here additional requirements for extra features, to install with:
61-
# `pip install check-python-h-first[PDF]` like:
62-
# PDF = ReportLab; RXP
63-
64-
# Add here test requirements (semicolon/line-separated)
65-
testing =
66-
setuptools
67-
pytest
68-
pytest-cov
69-
70-
[options.entry_points]
71-
# Add here console scripts like:
72-
# console_scripts =
73-
# script_name = check_python_h_first.module:function
74-
# For example:
75-
# console_scripts =
76-
# fibonacci = check_python_h_first.skeleton:run
77-
# And any other entry points, for example:
78-
# pyscaffold.cli =
79-
# awesome = pyscaffoldext.awesome.extension:AwesomeExtension
806

817
[tool:pytest]
828
# Specify command line options as you would do when invoking pytest directly.

0 commit comments

Comments
 (0)