quota/setquota wrapper for Python (unmaintained, old, ....)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.1KB

  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. """ Copyright (C) 2007 Technische Universität Darmstadt,
  4. Fachbereich Architektur
  5. Bernd Zeimetz <bernd@bzed.de>
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License along
  15. with this program; if not, write to the Free Software Foundation, Inc.,
  16. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. """
  18. __long_desc__ = """ Very simple disk quota management module,
  19. using Popen to run the OS' quota tools and parsing their output
  20. should make it easy to modify/extend the module for other
  21. Unix/Linux/BSD-like operating systems.
  22. It comes with a tool to mange group based quota policies and
  23. was developed for the specific needs of
  24. Techniche Universität Darmstadt, Fachbereich Architektur
  25. """
  26. from distutils.core import setup
  27. import sys
  28. sys.path.insert(0, 'src')
  29. from diskquota import VERSION
  30. classifiers = ['Development Status :: 3 - Alpha',
  31. 'License :: OSI Approved :: GNU General Public License (GPL)',
  32. 'Operating System :: POSIX :: Linux',
  33. 'Programming Language :: Python',
  34. 'Topic :: System :: Systems Administration']
  35. setup(name="diskquota",
  36. version=VERSION,
  37. author="Bernd Zeimetz",
  38. author_email="bernd@bzed.de",
  39. license = "GPL v2 or later",
  40. platforms = ["GNU/Linux"],
  41. description = 'Disk quota management module',
  42. classifiers = classifiers,
  43. package_dir = {'': 'src'},
  44. packages = ['diskquota'],
  45. scripts=['bin/diskquota'],
  46. long_description = __long_desc__,
  47. data_files=[('/etc', [ 'src/diskquota/diskquota.cfg'])]
  48. )