From 8b9ff334a543aae45b77e19d6765a886816d5eb6 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 26 Oct 2023 17:32:28 -0700 Subject: [PATCH] Switch to pyproject --- pyproject.toml | 38 ++++++++++++++++++++++++++++++++++++++ setup.py | 40 ---------------------------------------- 2 files changed, 38 insertions(+), 40 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..709aa1f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,38 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "release-gitter" +version = "2.1.1" +description = "Easily download releases from sites like Github and Gitea" +readme = "README.md" +license = "MIT" +classifiers = [ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", + "License :: OSI Approved :: MIT License", +] +authors = [ + { name = "Ian Fijolek", email = "iamthefij@gmail.com" } +] +maintainers = [ + { name = "Ian Fijolek", email = "iamthefij@gmail.com" } +] +requires_python = ">=3.7" +dependencies = ["requests"] + +[project.optional-dependencies] +builder = [ + "toml", + "wheel", +] + +[project.scripts] +release-gitter = "release_gitter:main" + +[project.urls] +Homepage = "https://git.iamthefij.com/iamthefij/release-gitter" + +[tool.hatch.build] +include = ["release_gitter.py", "pseudo_builder.py"] diff --git a/setup.py b/setup.py deleted file mode 100644 index b653808..0000000 --- a/setup.py +++ /dev/null @@ -1,40 +0,0 @@ -from codecs import open -from os import path - -from setuptools import setup - -here = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(here, "README.md"), encoding="utf-8") as f: - long_description = f.read() - -setup( - name="release-gitter", - version="2.1.1", - description="Easily download releases from sites like Github and Gitea", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://git.iamthefij.com/iamthefij/release-gitter.git", - download_url=( - "https://git.iamthefij.com/iamthefij/release-gitter.git/archive/master.tar.gz" - ), - author="iamthefij", - author_email="", - classifiers=[ - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - ], - keywords="", - py_modules=["release_gitter", "pseudo_builder"], - install_requires=["requests"], - extras_require={"builder": ["toml", "wheel"]}, - entry_points={ - "console_scripts": [ - "release-gitter=release_gitter:main", - ], - }, -)