2017-10-13 17:18:21 +02:00
|
|
|
import os
|
|
|
|
from distutils.command.build import build
|
|
|
|
|
|
|
|
from django.core import management
|
2017-10-14 18:07:35 +02:00
|
|
|
from setuptools import find_packages, setup
|
2017-10-13 17:18:21 +02:00
|
|
|
|
|
|
|
try:
|
|
|
|
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f:
|
|
|
|
long_description = f.read()
|
|
|
|
except:
|
|
|
|
long_description = ''
|
|
|
|
|
|
|
|
|
|
|
|
class CustomBuild(build):
|
|
|
|
def run(self):
|
|
|
|
management.call_command('compilemessages', verbosity=1, interactive=False)
|
|
|
|
build.run(self)
|
|
|
|
|
|
|
|
|
|
|
|
cmdclass = {
|
|
|
|
'build': CustomBuild
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
2024-12-29 04:21:21 +01:00
|
|
|
name='byro-leinelab',
|
2017-10-13 17:18:21 +02:00
|
|
|
version='0.0.0',
|
|
|
|
description='',
|
|
|
|
long_description=long_description,
|
2024-12-29 04:21:21 +01:00
|
|
|
url='https://github.com/byro/byro-leinelab',
|
|
|
|
author='leinelab',
|
2017-10-13 17:18:21 +02:00
|
|
|
author_email='',
|
|
|
|
license='Apache Software License',
|
|
|
|
|
|
|
|
install_requires=[],
|
|
|
|
packages=find_packages(exclude=['tests', 'tests.*']),
|
|
|
|
include_package_data=True,
|
|
|
|
cmdclass=cmdclass,
|
|
|
|
entry_points="""
|
|
|
|
[byro.plugin]
|
2024-12-29 04:21:21 +01:00
|
|
|
byro_leinelab=byro_leinelab:ByroPluginMeta
|
2017-10-13 17:18:21 +02:00
|
|
|
""",
|
|
|
|
)
|