mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-23 09:51:02 +00:00
migrate to pyproject.toml
This commit is contained in:
parent
c6ceedf041
commit
85893d9c9c
2 changed files with 46 additions and 45 deletions
44
pyproject.toml
Normal file
44
pyproject.toml
Normal file
|
@ -0,0 +1,44 @@
|
|||
[project]
|
||||
name = "pretalx-broadcast-tools"
|
||||
version = "2.0.0"
|
||||
description = """
|
||||
Some tools which can be used for supporting a broadcasting software.
|
||||
This currently includes a generator for PDF printouts, a 'lower thirds'
|
||||
endpoint, and a full-screen webpage showing information about the
|
||||
currently running talk.
|
||||
"""
|
||||
readme = "README.rst"
|
||||
license = {text = "Apache Software License"}
|
||||
keywords = ["pretalx"]
|
||||
authors = [
|
||||
{name = "Franziska Kunsmann", email = "git@kunsmann.eu"},
|
||||
]
|
||||
maintainers = [
|
||||
{name = "Franziska Kunsmann", email = "git@kunsmann.eu"},
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
[project.entry-points."pretalx.plugin"]
|
||||
pretalx_broadcast_tools = "pretalx_broadcast_tools:PretalxPluginMeta"
|
||||
|
||||
[project.entry-points."distutils.commands"]
|
||||
build = "pretalx_plugin_build.build:CustomBuild"
|
||||
|
||||
[build-system]
|
||||
requires = [
|
||||
"setuptools",
|
||||
"pretalx-plugin-build",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
homepage = "https://github.com/Kunsi/pretalx-plugin-broadcast-tools"
|
||||
repository = "https://github.com/Kunsi/pretalx-plugin-broadcast-tools.git"
|
||||
|
||||
[tool.setuptools]
|
||||
include-package-data = true
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["pretalx*"]
|
||||
namespaces = false
|
47
setup.py
47
setup.py
|
@ -1,46 +1,3 @@
|
|||
import os
|
||||
from distutils.command.build import build
|
||||
from setuptools import setup
|
||||
|
||||
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 FileNotFoundError:
|
||||
long_description = ""
|
||||
|
||||
|
||||
class CustomBuild(build):
|
||||
def run(self):
|
||||
management.call_command("compilemessages", verbosity=1)
|
||||
build.run(self)
|
||||
|
||||
|
||||
cmdclass = {"build": CustomBuild}
|
||||
|
||||
|
||||
setup(
|
||||
name="pretalx-plugin-broadcast-tools",
|
||||
version="2.0.0",
|
||||
description=(
|
||||
"Some tools which can be used for supporting a broadcasting "
|
||||
"software, for example a 'lower third' page which can be "
|
||||
"embedded into your broadcasting software"
|
||||
),
|
||||
long_description=long_description,
|
||||
url="https://github.com/Kunsi/pretalx-plugin-broadcast-tools",
|
||||
author="kunsi",
|
||||
author_email="git@kunsmann.eu",
|
||||
license="Apache Software License",
|
||||
install_requires=[],
|
||||
packages=find_packages(exclude=["tests", "tests.*"]),
|
||||
include_package_data=True,
|
||||
cmdclass=cmdclass,
|
||||
entry_points="""
|
||||
[pretalx.plugin]
|
||||
pretalx_broadcast_tools=pretalx_broadcast_tools:PretalxPluginMeta
|
||||
""",
|
||||
)
|
||||
setup()
|
||||
|
|
Loading…
Reference in a new issue