Add magic setup.py
Thank you, @raphaelm :P
This commit is contained in:
parent
0754aba209
commit
0f362a139e
45
setup.py
Normal file
45
setup.py
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
import os
|
||||||
|
from distutils.command.build import build
|
||||||
|
|
||||||
|
from django.core import management
|
||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
|
||||||
|
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(
|
||||||
|
name='byro-shackspace',
|
||||||
|
version='0.0.0',
|
||||||
|
description='',
|
||||||
|
long_description=long_description,
|
||||||
|
url='https://github.com/byro/byro-shackspace',
|
||||||
|
author='shackspace',
|
||||||
|
author_email='',
|
||||||
|
license='Apache Software License',
|
||||||
|
|
||||||
|
install_requires=[],
|
||||||
|
packages=find_packages(exclude=['tests', 'tests.*']),
|
||||||
|
include_package_data=True,
|
||||||
|
cmdclass=cmdclass,
|
||||||
|
entry_points="""
|
||||||
|
[byro.plugin]
|
||||||
|
byro_shackspace=byro_shackspace:ByroPluginMeta
|
||||||
|
""",
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user