From 6296022d1bd49c3e4421455c6cbd0e3edaf0ecb1 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 18 Jun 2023 14:36:22 +1000 Subject: [PATCH] replace poetry with setuptools --- MANIFEST.in | 1 + README.md | 2 +- pyproject.toml | 43 +++++++++++++++++++++++-------------------- 3 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..e7e1fb0 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +tests/* diff --git a/README.md b/README.md index 3c5479c..709a296 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ You can use `ephemetoot` to delete [Mastodon](https://github.com/tootsuite/masto * they are individually listed to be kept ## Contributing -ephemetoot is packaged using `poetry` and tested using `pytest`. +ephemetoot is tested using `pytest`. For all bugs, suggestions, pull requests or other contributions, please check the [contributing guide](./docs/contributing.md). diff --git a/pyproject.toml b/pyproject.toml index b057630..b6c8085 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,35 +1,38 @@ -[tool.poetry] +[project] name = "ephemetoot" -version = "3.1.4" +version = "3.2.0" description = "A command line tool to delete your old toots" -authors = ["Hugh Rundle "] -license = "GPL-3.0-or-later" +requires-python = ">=3.8" +authors = [ + {name = "Hugh Rundle", email = "ephemetoot@hugh.run"} + ] +license = { text = "GPL-3.0-or-later"} readme = "pypi-readme.md" -homepage = "https://ephemetoot.hugh.run" -repository = "https://github.com/hughrun/ephemetoot" keywords = ["mastodon", "api", "microblogging"] classifiers = [ "Environment :: Console", "Operating System :: OS Independent", "Topic :: Communications" ] -include = [ - "LICENSE", - "tests" +dependencies = [ + "requests>=2.22.0", + "mastodon.py>=1.4.3", + "pyyaml>=5.0" ] -[tool.poetry.dependencies] -python = "^3.8" -requests = "^2.22.0" -"mastodon.py" = "^1.4.3" -pyyaml = "^5.0" +[project.optional-dependencies] +dev = ["pytest>=6"] -[tool.poetry.dev-dependencies] -pytest = "^6" - -[tool.poetry.scripts] +[project.scripts] ephemetoot = 'ephemetoot.console:main' +[project.urls] +homepage = "https://ephemetoot.hugh.run" +repository = "https://github.com/hughrun/ephemetoot" + [build-system] -requires = ["poetry-core>=1.0.0a5"] -build-backend = "poetry.core.masonry.api" +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +packages = ["ephemetoot"]