-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
40 lines (34 loc) · 1.1 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
from contextlib import contextmanager
from pathlib import Path
from setuptools import setup
import parser_tests
@contextmanager
def link_tests():
"""
Just a little bit of fuckery to symlink the data files in to the source tree
"""
data_files = Path('tests').resolve()
src_dir = Path('parser_tests').resolve()
src_data = (src_dir / 'data')
src_data.symlink_to(data_files, True)
yield
src_data.unlink()
with link_tests():
setup(
name="irc-parser-tests",
# Generate the version string from __version__ tuple
version='.'.join(map(str, parser_tests.__version__)),
description="A library of tests for various IRC protocol parsers",
url='https://github.com/ircdocs/parser-tests',
author="linuxdaemon",
author_email="[email protected]",
classifiers=[
'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication',
],
keywords='irc tests parser',
packages=['parser_tests'],
install_requires=[
'PyYaml',
],
include_package_data=True,
)