Skip to content

Commit

Permalink
Replace 'setup.cfg' with 'pyproject.toml'
Browse files Browse the repository at this point in the history
This commit implements PEP 621 by specifying all project metadata in the
'pyproject.toml' file.

See https://peps.python.org/pep-0621/.
  • Loading branch information
SkypLabs committed Nov 27, 2024
1 parent 710aace commit 8e7b1a3
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 45 deletions.
44 changes: 42 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"},
]
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"]
40 changes: 0 additions & 40 deletions setup.cfg

This file was deleted.

4 changes: 1 addition & 3 deletions src/faker_wifi_essid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8e7b1a3

Please sign in to comment.