From 8e7b1a33aa607d725a2476d3f41970d23d554f7e Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Wed, 27 Nov 2024 14:14:24 +0100 Subject: [PATCH] Replace 'setup.cfg' with 'pyproject.toml' This commit implements PEP 621 by specifying all project metadata in the 'pyproject.toml' file. See https://peps.python.org/pep-0621/. --- pyproject.toml | 44 ++++++++++++++++++++++++++++++-- setup.cfg | 40 ----------------------------- src/faker_wifi_essid/__init__.py | 4 +-- 3 files changed, 43 insertions(+), 45 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 4602018..3cf6f6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,47 @@ [build-system] requires = [ - "setuptools >= 42", - "setuptools_scm >= 2.0.0, <3", + "setuptools >= 61", "wheel", ] build-backend = "setuptools.build_meta" + +[project] +name = "faker_wifi_essid" +authors = [ + {name = "Paul-Emmanuel Raoul", email = "skyper@skyplabs.net"}, +] +description = "Faker provider for Wi-Fi ESSIDs." +readme = "README.rst" +keywords = ["faker", "faker-library", "faker-provider", "faker-generator", "wifi", "essid"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries :: Python Modules", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "License :: OSI Approved :: MIT License", +] +requires-python = ">=3.7, <4" +dependencies = [ + "Faker >= 4.1,< 20.0", +] +dynamic = ["version"] + +[project.urls] +"Bug Tracker" = "https://github.com/SkypLabs/faker-wifi-essid/issues" +Repository = "https://github.com/SkypLabs/faker-wifi-essid" + +[project.optional-dependencies] +dev = ["isort", "ruff"] +docs = ["Sphinx >= 3.2", "sphinx_rtd_theme >= 0.5.0"] +tests = ["tox"] + +[tool.setuptools.dynamic] +version = {attr = "faker_wifi_essid.__version__"} + +[tool.setuptools.packages.find] +where = ["src"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index adf523c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,40 +0,0 @@ -[metadata] -name = faker_wifi_essid -version = 0.4.1 -description = Faker provider for Wi-Fi ESSIDs. -long_description = file: README.rst -keywords = faker, faker-library, faker-provider, faker-generator, wifi, essid -license = MIT -license_files = LICENSE -author = Paul-Emmanuel Raoul -author_email = skyper@skyplabs.net -url = https://github.com/SkypLabs/faker-wifi-essid -project_urls = - Bug Tracker = https://github.com/SkypLabs/faker-wifi-essid/issues -classifiers = - Development Status :: 4 - Beta - Intended Audience :: Developers - Topic :: Software Development :: Libraries :: Python Modules - Operating System :: OS Independent - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - License :: OSI Approved :: MIT License - -[options] -packages = find: -package_dir = - =src -python_requires = >=3.7, <4 -install_requires = - Faker >= 4.1,< 20.0 - -[options.packages.find] -where = src - -[options.extras_require] -dev = isort; ruff -docs = Sphinx >= 3.2; sphinx_rtd_theme >= 0.5.0 -tests = tox diff --git a/src/faker_wifi_essid/__init__.py b/src/faker_wifi_essid/__init__.py index 0ae24eb..437a50c 100644 --- a/src/faker_wifi_essid/__init__.py +++ b/src/faker_wifi_essid/__init__.py @@ -4,11 +4,9 @@ Faker Wi-Fi ESSID provider. """ -from pkg_resources import get_distribution - from .wifi_essid import WifiESSID -__version__ = get_distribution("faker_wifi_essid").version +__version__ = "0.4.1" __all__ = [ "WifiESSID",