mirror of
https://github.com/caronc/apprise.git
synced 2024-11-08 17:24:00 +01:00
babel dependency not required for use of setup.py
This commit is contained in:
parent
6d9069e106
commit
89368afe5c
20
setup.py
20
setup.py
@ -33,7 +33,18 @@ except ImportError:
|
||||
from distutils.core import setup
|
||||
|
||||
from setuptools import find_packages
|
||||
from babel.messages import frontend as babel
|
||||
|
||||
cmdclass = {}
|
||||
try:
|
||||
from babel.messages import frontend as babel
|
||||
cmdclass = {
|
||||
'compile_catalog': babel.compile_catalog,
|
||||
'extract_messages': babel.extract_messages,
|
||||
'init_catalog': babel.init_catalog,
|
||||
'update_catalog': babel.update_catalog,
|
||||
}
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
install_options = os.environ.get("APPRISE_INSTALL", "").split(",")
|
||||
install_requires = open('requirements.txt').readlines()
|
||||
@ -56,12 +67,7 @@ setup(
|
||||
license='MIT',
|
||||
long_description=open('README.md').read(),
|
||||
long_description_content_type='text/markdown',
|
||||
cmdclass={
|
||||
'compile_catalog': babel.compile_catalog,
|
||||
'extract_messages': babel.extract_messages,
|
||||
'init_catalog': babel.init_catalog,
|
||||
'update_catalog': babel.update_catalog,
|
||||
},
|
||||
cmdclass=cmdclass,
|
||||
url='https://github.com/caronc/apprise',
|
||||
keywords='Push Notifications Alerts Email AWS SNS Boxcar Discord Dbus '
|
||||
'Emby Faast Flock Gitter Gnome Gotify Growl IFTTT Join KODI Mailgun '
|
||||
|
Loading…
Reference in New Issue
Block a user