-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (32 loc) · 1.04 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
#!/usr/bin/env python3
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='pulsar-messages',
version='0.0.1',
description='Messages plugin for the pulsar project',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license='MIT',
author='sharebears',
author_email='[email protected]',
url='https://github.com/sharebears',
packages=['messages'],
python_requires='>=3.7, <3.8',
tests_require=['pytest', 'mock'],
cmdclass={'test': PyTest},
)