diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..19d2bb3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,43 @@ +[project] +name = "phantompy" +description = "Set the ExcludeNodes or ExcludeExitNodes setting of a running Tor." +authors = [{ name = "emdee", email = "emdee@spm.plastiras.org" } ] +requires-python = ">=3.6" +keywords = ["tor", "python3", "bad exits"] +classifiers = [ + "License :: OSI Approved", + "Operating System :: POSIX :: BSD :: FreeBSD", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "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", + ] +dynamic = ["version", "readme", ] # cannot be dynamic ['license'] +scripts = { phantompy = "phantompy.phantompy:iMain" } +dependencies = ['qasync', 'PyQt5'] + +[tool.setuptools.dynamic] +version = {attr = "phantompy.__version__"} +readme = {file = ["README.md"]} + +[project.license] +file = "LICENSE.md" + +[project.urls] +repository = "https://git.plastiras.org/emdee/phantompy" + +[build-system] +requires = ["setuptools >= 61.0"] +build-backend = "setuptools.build_meta" + +# Either or both of these don't work +#[tool.setuptools] +#packages = ["phantompy"] + +#[tool.setuptools.packages.find] +#include = ["src"] diff --git a/setup.py b/setup.py.bak similarity index 100% rename from setup.py rename to setup.py.bak diff --git a/phantompy/__init__.py b/src/phantompy/__init__.py similarity index 100% rename from phantompy/__init__.py rename to src/phantompy/__init__.py diff --git a/phantompy/__main__.py b/src/phantompy/__main__.py similarity index 100% rename from phantompy/__main__.py rename to src/phantompy/__main__.py diff --git a/phantompy/lookupdns.py b/src/phantompy/lookupdns.py similarity index 100% rename from phantompy/lookupdns.py rename to src/phantompy/lookupdns.py diff --git a/phantompy/phantompy.py b/src/phantompy/phantompy.py similarity index 100% rename from phantompy/phantompy.py rename to src/phantompy/phantompy.py diff --git a/phantompy/qasync_phantompy.py b/src/phantompy/qasync_phantompy.py similarity index 100% rename from phantompy/qasync_phantompy.py rename to src/phantompy/qasync_phantompy.py diff --git a/phantompy/support_phantompy.py b/src/phantompy/support_phantompy.py similarity index 100% rename from phantompy/support_phantompy.py rename to src/phantompy/support_phantompy.py