Skip to content

Commit

Permalink
Revert "Move to pyproject.toml"
Browse files Browse the repository at this point in the history
This reverts commit efa2875.
  • Loading branch information
rixx committed Sep 30, 2023
1 parent 8ee4465 commit 03412e9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 44 deletions.
42 changes: 0 additions & 42 deletions {{cookiecutter.repo_name}}/pyproject.toml

This file was deleted.

43 changes: 41 additions & 2 deletions {{cookiecutter.repo_name}}/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
from setuptools import setup
import os
from distutils.command.build import build

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="{{cookiecutter.repo_name}}",
version="0.0.0",
description="{{cookiecutter.short_description}}",
long_description=long_description,
url="{{cookiecutter.repo_url}}",
author="{{cookiecutter.author_name}}",
author_email="{{cookiecutter.author_email}}",
license="Apache Software License",
install_requires=[],
packages=find_packages(exclude=["tests", "tests.*"]),
include_package_data=True,
cmdclass=cmdclass,
entry_points="""
[pretalx.plugin]
{{cookiecutter.module_name}}={{cookiecutter.module_name}}:PretalxPluginMeta
""",
)

0 comments on commit 03412e9

Please sign in to comment.