Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packaging: migrate to declarative setup.cfg #151

Merged
merged 2 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "flake8-isort"
version = "6.1.1.dev0"
authors = [{ name = "Gil Forcada", email = "[email protected]" }]
license = { text = "GPL version 2" }
description = "flake8 plugin that integrates isort ."
keywords = ["pep8", "flake8", "python", "isort", "imports"]
readme = "README.rst"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development",
"Topic :: Software Development :: Quality Assurance",
]
urls = { Homepage = "https://github.com/gforcada/flake8-isort" }
requires-python = ">=3.8"
dependencies = ["flake8", "isort >= 5.0.0, <6"]

[project.entry-points]
"flake8.extension" = { I00 = "flake8_isort:Flake8Isort" }

[project.optional-dependencies]
test = ["pytest"]

[tool.setuptools]
py-modules = ["flake8_isort"]
zip-safe = false
include-package-data = true

[tool."zest.releaser"]
create-wheel = "yes"

[tool.check-manifest]
ignore = """
.installed.cfg"""

[tool.isort]
profile = "black"
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

69 changes: 0 additions & 69 deletions setup.py

This file was deleted.

13 changes: 13 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tox]
env_list =
py310
minversion = 4.11.3

[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
deps =
pytest>=6
commands =
pytest {tty:--color=yes} run_tests.py {posargs}