forked from CZ-NIC/fred-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (41 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
#
# Copyright (C) 2006-2019 CZ.NIC, z. s. p. o.
#
# This file is part of FRED.
#
# FRED is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# FRED is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with FRED. If not, see <https://www.gnu.org/licenses/>.
from distutils.command.build import build
from setuptools import find_packages, setup
from setuptools.command.sdist import sdist
class custom_build(build):
sub_commands = [('compile_catalog', lambda x: True)] + build.sub_commands
class custom_sdist(sdist):
def run(self):
self.run_command('compile_catalog')
# sdist is an old style class so super cannot be used.
sdist.run(self)
setup(name='fred-client',
version='2.12.4',
description='Client FRED (Free Registry for enum and domain)',
author='Zdenek Bohm, CZ.NIC',
author_email='zdenek.bohm@nic.cz',
url='http://www.nic.cz',
license='GNU GPL',
packages=find_packages(),
include_package_data=True,
scripts=['setup_postinstall.py'],
setup_requires=['Babel >=2.3'],
cmdclass={'build': custom_build, 'sdist': custom_sdist},
entry_points={'console_scripts': ['fred-client = fred.console:main']})