-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·64 lines (55 loc) · 1.83 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
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
here = os.path.abspath(os.path.dirname(__file__))
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = [
'--pep8',
'--flakes',
'--cov={path}'.format(path=os.path.join(here, 'codekitlang')),
'--cov-report=term-missing',
]
self.test_suite = True
def run_tests(self):
import pytest
pytest.main(self.test_args)
setup(
name='CodeKitLang',
version='0.5dev1',
description='CodeKit Language Compiler, Python implementation',
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGES.txt').read(),
]),
author='OCHIAI, Gouji',
author_email='[email protected]',
url='https://github.com/gjo/python-codekitlang',
license='BSD',
packages=find_packages(exclude=["*.tests"]),
include_package_data=False,
zip_safe=False,
install_requires=('setuptools',),
tests_require=('pytest-cov', 'pytest-pep8', 'pytest-flakes', 'mock',
'testfixtures', 'pytest-cache', ),
cmdclass={'test': PyTest},
test_suite='codekitlang.tests',
entry_points={
'console_scripts': (
'pykitlangc = codekitlang.command:main',
),
},
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Site Management',
'Topic :: Software Development :: Code Generators',
'Topic :: Text Processing :: Markup :: HTML',
],
)