Skip to content

Commit 7691ce8

Browse files
committed
Avoid import pytest_dependency, set version and long description in setup.py.
1 parent 7fa2f36 commit 7691ce8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
#! /usr/bin/python
2+
"""pytest-dependency - Manage dependencies of tests
3+
4+
This pytest plugin manages dependencies of tests. It allows to mark
5+
some tests as dependent from other tests. These tests will then be
6+
skipped if any of the dependencies did fail or has been skipped.
7+
"""
28

39
import sys
410
if sys.version_info < (2, 7):
511
raise RuntimeError("You are using Python %s.\n"
612
"Please apply python2_6.patch first."
713
% sys.version.split()[0])
814
from setuptools import setup
9-
import pytest_dependency
1015

1116

1217
setup(
1318
name='pytest-dependency',
14-
version=pytest_dependency.__version__,
19+
version='0.2',
1520
description='Manage dependencies of tests',
1621
author='Rolf Krahl',
1722
author_email='[email protected]',
1823
maintainer='Rolf Krahl',
1924
maintainer_email='[email protected]',
2025
url='https://github.com/RKrahl/pytest-dependency',
2126
license='Apache Software License 2.0',
22-
long_description=pytest_dependency.__doc__,
27+
long_description=__doc__,
2328
py_modules=['pytest_dependency'],
2429
install_requires=['pytest >= 2.8.0'],
2530
classifiers=[

0 commit comments

Comments
 (0)