trac-dvbcronrecording-plugin / src / setup.py

Guido Draheim 406b74d 





Guido Draheim 1106a2a 
Guido Draheim 406b74d 






Guido Draheim 1106a2a 




















Guido Draheim 406b74d 

Guido Draheim e8d80a8 


Guido Draheim 406b74d 


















Guido Draheim 1106a2a 
Guido Draheim 9deb172 
Guido Draheim 406b74d 
#!/usr/bin/env python
# -*- coding: utf8 -*-

from setuptools import setup
import re

from mysetup import spec, copy_catalog, dist
##########################################        

RPM = "trac-dvbcronrecording-plugin.spec"
PACKAGENAME = 'DvbCronRecording'
PACKAGE = 'dvbcronrecording'
VERSION = spec(RPM, "version")
README = spec(RPM, "description")

from babel.messages import frontend as babel

extractors = { PACKAGE : [
     ('**.py', 'python', None),
     ('templates/**.mako', 'mako', None),
     ('templates/**.html', 'genshi', None),
     ('public/**', 'ignore', None)]}

cmdclass = {
    'compile_catalog': babel.compile_catalog,
    'extract_messages': babel.extract_messages,
    'init_catalog': babel.init_catalog,
    'update_catalog': babel.update_catalog,
    'copy_catalog': copy_catalog,
    'dist' : dist, 'sdist' : dist,
    }

from distutils.command.build import build 
build.sub_commands.insert(0, ('compile_catalog', lambda x: True))    
build.sub_commands.insert(0, ('copy_catalog', lambda x: True))    
 
setup(
  package_data = { PACKAGE: ['templates/*.html', 
                             'htdocs/css/*.css',  
                             'htdocs/js/*.js',  
                             "locale/*/LC_MESSAGES/*.mo"]},
  name = PACKAGENAME,
  version = VERSION,
  packages = [ PACKAGE, PACKAGE+".db" ],
  include_package_data=True,
  entry_points = {'trac.plugins': [
    'DvbCronRecording.init = dvbcronrecording.init',
    'DvbCronRecording.core = dvbcronrecording.core',
    'DvbCronRecording.channels = dvbcronrecording.channels',
    'DvbCronRecording.channelsconf = dvbcronrecording.channelsconf',
    'DvbCronRecording.files = dvbcronrecording.files',
    'DvbCronRecording.tuning = dvbcronrecording.tuning',
  ]},
  keywords = 'dvb trac recorder',
  author = 'Guido Draheim',
  author_email = 'guidod@gmx.de',
  url = 'http://guidod.homelinux.org',
  description = README,
  license = '''BSD''',
  message_extractors = extractors, cmdclass = cmdclass,
  test_suite = 'tests'
)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.