From efe77c8b9646d959e7b4ca43bd44b559a97283c3 Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Thu, 2 Nov 2023 16:48:07 +0100 Subject: [PATCH] Migrate to pyproject.toml --- pyproject.toml | 37 +++++++++++++++++++++++++++++++++++++ setup.py | 42 ------------------------------------------ 2 files changed, 37 insertions(+), 42 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..4c4ddc3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[project] +name = "pretalx-pages" +version = "1.1.3" +description = "Static pages for pretalx, e.g. information, venue listings, a Code of Conduct, etc." +readme = "README.rst" +license = {text = "Apache Software License"} +keywords = ["pretalx"] +authors = [ + {name = "Tobias Kunze", email = "r@rixx.de"}, +] +maintainers = [ + {name = "Tobias Kunze", email = "r@rixx.de"}, +] + +dependencies = [] + +[project.entry-points."pretalx.plugin"] +pretalx_pages = "pretalx_pages:PretalxPluginMeta" + +[build-system] +build-backend = "setuptools.build_meta" +requires = ["setuptools", "wheel", "pretalx"] + +[project.urls] +homepage = "https://github.com/pretalx/pretalx-pages" +repository = "https://github.com/pretalx/pretalx-pages.git" + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.packages.find] +include = ["pretalx*"] + +[tool.check-manifest] +ignore = [ + ".*", +] diff --git a/setup.py b/setup.py deleted file mode 100644 index f040165..0000000 --- a/setup.py +++ /dev/null @@ -1,42 +0,0 @@ -import os -from distutils.command.build import build - -from django.core import management -from setuptools import find_packages, setup - -try: - with open( - os.path.join(os.path.dirname(__file__), "README.rst"), encoding="utf-8" - ) as f: - long_description = f.read() -except Exception: - long_description = "" - - -class CustomBuild(build): - def run(self): - management.call_command("compilemessages", verbosity=1) - build.run(self) - - -cmdclass = {"build": CustomBuild} - - -setup( - name="pretalx-pages", - version="1.3.3", - description="Static pages for pretalx, e.g. information, venue listings, a code of conduct, etc.", - long_description=long_description, - url="https://github.com/pretalx/pretalx-pages", - author="Tobias Kunze", - author_email="r@rixx.de", - license="Apache Software License", - install_requires=[], - packages=find_packages(exclude=["tests", "tests.*"]), - include_package_data=True, - cmdclass=cmdclass, - entry_points=""" -[pretalx.plugin] -pretalx_pages=pretalx_pages:PretalxPluginMeta -""", -)