From 22378abce34f4b27db884692d5d99bec9dcef034 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 26 Aug 2022 20:48:42 -0400 Subject: [build-system] switch to flit setuptools >=61 isn't supported on many distros --- README.md | 2 +- pyproject.toml | 10 +++------- setup.py | 2 -- 3 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 setup.py diff --git a/README.md b/README.md index 401eb39..34dccd6 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ see `default-config.json` for example ## how to install hiccup only needs one command to install :) ```sh -python setup.py install --user +python3 -m flit install --user ``` or you can use the [aur package](https://aur.archlinux.org/packages/hiccup-git) diff --git a/pyproject.toml b/pyproject.toml index f34ead3..d91fce0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [build-system] -requires = ["setuptools>=61.0"] -build-backend = "setuptools.build_meta" +requires = ["flit_core >=3.2,<4"] +build-backend = "flit_core.buildapi" [project] name = "hiccup" version = "0.0.1" authors = [ - { name = "getchoo", email="getchoo@tuta.io"}, + { name = "getchoo", email="getchoo@tuta.io"}, ] description = "a python script to help keep you up to date" readme = "README.md" @@ -24,7 +24,3 @@ classifiers = [ [project.scripts] hiccup = "hiccup:main" - -[tool.setuptools] -package-dir = {"" = "src"} -packages = ["hiccup"] diff --git a/setup.py b/setup.py deleted file mode 100644 index a4f49f9..0000000 --- a/setup.py +++ /dev/null @@ -1,2 +0,0 @@ -import setuptools -setuptools.setup() -- cgit v1.2.3