Skip to content

Commit

Permalink
Remove hacks in setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
kmmbvnr committed Jul 14, 2012
1 parent 86708ee commit b9cf614
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions setup.py
@@ -1,31 +1,24 @@
#!/usr/bin/env python
import codecs
from os import path
from subprocess import check_call
from distutils.core import setup
from distutils.command.build import build
from setuptools import setup

read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()

read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()

class build_with_submodules(build):
def run(self):
if path.exists('.git'):
check_call(['git', 'submodule', 'init'])
check_call(['git', 'submodule', 'update'])
build.run(self)

setup(
name = 'django-jenkins',
cmdclass={"build": build_with_submodules},
version = '0.12.1',
version = '0.13.0',
author = 'Mikhail Podgurskiy',
author_email = 'kmmbvnr@gmail.com',
description = 'Plug and play continuous integration with django and jenkins',
long_description=read(path.abspath(path.join(path.dirname(__file__), 'README.rst'))),
license = 'LGPL',
platforms = ['Any'],
keywords = ['pyunit', 'unittest', 'testrunner', 'hudson', 'jenkins', 'django'],
keywords = ['pyunit', 'unittest', 'testrunner', 'hudson', 'jenkins',
'django', 'pylint', 'pep8', 'pyflakes', 'csslint', 'jslint',
'coverage'],
url = 'http://github.com/kmmbvnr/django-jenkins',
classifiers = [
'Development Status :: 4 - Beta',
Expand All @@ -37,11 +30,13 @@ def run(self):
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Testing'
],
requires=[
'Django (>=1.3)',
'coverage (>=3.4)',
'pylint (>=0.23)',
install_requires=[
'Django>=1.3',
'coverage>=3.4',
'pylint>=0.23',
],
packages = ['django_jenkins', 'django_jenkins.management', 'django_jenkins.tasks', 'django_jenkins.management.commands'],
package_data={'django_jenkins': ['tasks/pylint.rc', 'tasks/jslint_runner.js', 'tasks/jslint/jslint.js', 'tasks/csslint/release/csslint-rhino.js', 'tasks/csslint/release/npm/cli.js']},
zip_safe = False,
include_package_data = True
)

0 comments on commit b9cf614

Please sign in to comment.