aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyproject.toml41
-rw-r--r--setup.py46
2 files changed, 41 insertions, 46 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..c6b344d
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,41 @@
+[build-system]
+requires = ["setuptools"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "tyrian-sphinx-theme"
+authors = [
+ {name = "Max Magorsch", email = "max@magorsch.de"},
+]
+description = "A Tyrian based Sphinx theme for Gentoo"
+readme = {file = "README.md", content-type = "text/markdown"}
+requires-python = ">=3.8"
+license = {text = "BSD-2-Clause"}
+classifiers = [
+ "Framework :: Sphinx",
+ "Framework :: Sphinx :: Theme",
+ "Operating System :: OS Independent",
+ "License :: OSI Approved :: BSD License",
+ "Programming Language :: Python :: 3",
+]
+dynamic = ["version"]
+
+[project.urls]
+Homepage = "https://gitweb.gentoo.org/proj/tyrian-sphinx-theme.git"
+
+[project.entry-points."sphinx.html_themes"]
+tyrian_sphinx_theme = "tyrian_sphinx_theme"
+
+[tool.setuptools]
+packages = ["tyrian_sphinx_theme"]
+
+[tool.setuptools.package-data]
+tyrian_sphinx_theme = [
+ "theme.conf",
+ "*.html",
+ "static/*.css",
+ "static/*.css_t",
+]
+
+[tool.setuptools.dynamic]
+version = {attr = "tyrian_sphinx_theme._version.__version__"}
diff --git a/setup.py b/setup.py
deleted file mode 100644
index 5b4eac4..0000000
--- a/setup.py
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/env python
-
-from setuptools import setup
-
-# Version info -- read without importing
-_locals = {}
-with open("tyrian_sphinx_theme/_version.py") as fp:
- exec(fp.read(), None, _locals)
-version = _locals["__version__"]
-
-setup(
- name="tyrian-sphinx-theme",
- version=version,
- license = "BSD-2-Clause",
- description="A Tyrian based Sphinx theme for Gentoo",
- long_description=open('README.md', encoding='utf-8').read(),
- long_description_content_type='text/markdown',
- author="Max Magorsch",
- author_email="max@magorsch.de",
- url="https://gitweb.gentoo.org/proj/tyrian-sphinx-theme.git",
- packages=["tyrian_sphinx_theme"],
- package_data={'tyrian_sphinx_theme': [
- 'theme.conf',
- '*.html',
- 'static/*.css',
- 'static/*.css_t'
- ]},
- include_package_data=True,
- entry_points={"sphinx.html_themes": ["tyrian_sphinx_theme = tyrian_sphinx_theme"]},
- classifiers=[
- "Framework :: Sphinx",
- "Framework :: Sphinx :: Theme",
- "Operating System :: OS Independent",
- "License :: OSI Approved :: BSD License",
- "Programming Language :: Python",
- "Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2.6",
- "Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.2",
- "Programming Language :: Python :: 3.3",
- "Programming Language :: Python :: 3.4",
- "Programming Language :: Python :: 3.5",
- "Programming Language :: Python :: 3.6"
- ],
-)