From b016d2b55c16d1d7303cd93d5a9a3e2362a9fb58 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Thu, 23 Feb 2023 05:24:29 -0500 Subject: Update project's build and package to the newer standard Currently, the standard way to build and package a Python project is through a pyproject.toml file rather than the old setup.py. This is also build back-end agnostic and we can choose to use something other than setuptools. After looking through a few options, I've decided to use hatchling. Signed-off-by: dusoleil Reviewed-by: Malfurious --- .gitignore | 1 + pyproject.toml | 22 ++++++++++++++++++++++ setup.py | 7 ------- 3 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 4d962a1..2c9c4b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ __pycache__/ build/ *.egg-info/ +dist/ a.out *.o *.elf diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..385c6ce --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,22 @@ +[project] +name = "sploit" +version = "0.1" +description = "sploit is a process interaction automation tool with software exploitation focused utilities." +readme = "README.txt" +requires-python = ">=3.8" +license = "Unlicense" +license-files.paths = ["UNLICENSE"] +authors = [ + {name="dusoleil",email="howcansocksbereal@gmail.com"}, + {name="Malfurious",email="m@lfurio.us"}, +] + +[project.urls] +"Homepage" = "https://github.com/dusoleil/sploit" + +[project.scripts] +sploit = "sploit.main:main" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" diff --git a/setup.py b/setup.py deleted file mode 100644 index 046c523..0000000 --- a/setup.py +++ /dev/null @@ -1,7 +0,0 @@ -from setuptools import setup, find_packages -setup( - name='sploit', - version='0.1', - packages=find_packages(), - entry_points={"console_scripts":["sploit=sploit.main:main"]} - ) -- cgit v1.2.3