-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·45 lines (40 loc) · 1.4 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
#!/usr/bin/env python
"""Pygments lexer for Robot Framework test data."""
from os.path import abspath, dirname, join
import re
from setuptools import setup
NAME = 'robotframeworklexer'
CLASSIFIERS = '''
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python :: 2
Programming Language :: Python :: 3
'''.strip().splitlines()
CURDIR = dirname(abspath(__file__))
with open(join(CURDIR, NAME + '.py')) as source:
VERSION = re.search("\n__version__ = '(.*)'", source.read()).group(1)
with open(join(CURDIR, 'README.rst')) as readme:
README = readme.read()
with open(join(CURDIR, 'requirements.txt')) as requirements:
REQUIREMENTS = requirements.read().splitlines()
ENTRY_POINTS = '''
[pygments.lexers]
robotframework = robotframeworklexer:RobotFrameworkLexer
'''
setup(
name = NAME,
version = VERSION,
description = __doc__,
long_description = open('README.rst').read(),
author = u'Pekka Kl\xe4rck',
author_email = '[email protected]',
license = 'Apache License 2.0',
url = 'https://github.com/robotframework/pygmentslexer',
download_url = 'https://pypi.org/project/robotframeworklexer',
keywords = 'pygments robotframework',
platforms = 'any',
py_modules = [NAME],
entry_points = ENTRY_POINTS,
requires = REQUIREMENTS
)