Skip to content

Commit 063f864

Browse files
committed
Initial changes after fork
- renamed package to pytest_ordering2 - added blurb about fork in README - removed link to documentation on ReadTheDocs (to be adapted)
1 parent 3948344 commit 063f864

File tree

11 files changed

+54
-31
lines changed

11 files changed

+54
-31
lines changed

CHANGELOG

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
Unreleased
22
---
3+
4+
Imported version from pytest-ordering, including some PRs (manually merged).
5+
36
### Added
4-
- #50 Add ``--indulgent-ordering`` to request that the sort from
7+
- PR #37 (imported)
8+
Add support for markers like run(before=...), run(after=), run("first") etc.
9+
- PR #50 (imported)
10+
Add ``--indulgent-ordering`` to request that the sort from
511
pytest-ordering be run before other plugins. This allows the built-in
612
``--failed-first`` implementation to override the ordering.
13+
- PR #68 (imported)
14+
Include LICENSE file in distribution
15+
16+
### Infrastructure
17+
- PR #74 (imported)
18+
Add more pytest versions, fix pytest-cov compatibility issue,
19+
remove Python 3.4, add Python 3.8
720

821
0.6
922
---
10-
- #44 fix deprecation warnings
23+
- version imported from pytest-ordering

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
pytest-ordering
2-
===============
1+
pytest-ordering2
2+
================
3+
This is a fork of [pytest-ordering](https://github.com/ftobia/pytest-ordering).
4+
That project is not maintained anymore, and there are several helpful PRs
5+
waiting for merge. Therefore I decided to create this fork that tries to
6+
combine the original code with most of the provided PRs.
7+
My hope is that the original project will be moved to the pytest
8+
organization as outlined in
9+
[this issue](https://github.com/ftobia/pytest-ordering/issues/32). When this
10+
happens, this fork will be obsolete.
311

4-
pytest plugin to run your tests in a specific order
512

6-
[![Build Status](https://travis-ci.org/ftobia/pytest-ordering.svg?branch=develop)](https://travis-ci.org/ftobia/pytest-ordering)
13+
pytest-ordering is a pytest plugin to run your tests in a specific order.
14+
15+
[![Build Status](https://travis-ci.org/mrbean-bremen/pytest-ordering2.svg?branch=master)](https://travis-ci.org/mrbean-bremen/pytest-ordering2)
716

817
Have you ever wanted to easily run one of your tests before any others run?
918
Or run some tests last? Or run this one test before that other test? Or
@@ -13,7 +22,7 @@ Now you can.
1322

1423
Install with:
1524

16-
pip install pytest-ordering
25+
pip install pytest-ordering2
1726

1827
This defines some pytest markers that you can use in your code.
1928

@@ -42,4 +51,3 @@ Yields this output:
4251

4352
=========================== 2 passed in 0.01 seconds ===========================
4453

45-
Check out the docs: http://pytest-ordering.readthedocs.org/

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
# |version| and |release|, also used in various other places throughout the
5858
# built documents.
5959
#
60-
exec(open(os.path.join(__here__, '..', '..', 'pytest_ordering', '_version.py')).read())
60+
exec(open(os.path.join(__here__, '..', '..', 'pytest_ordering2',
61+
'_version.py')).read())
6162
# The short X.Y version.
6263
version = __version__
6364
# The full version, including alpha/beta/rc tags.

pytest_ordering/_version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pytest_ordering/__init__.py renamed to pytest_ordering2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def pytest_configure(config):
3232
options"""
3333

3434
provided_by_pytest_ordering = (
35-
'Provided by pytest-ordering. '
35+
'Provided by pytest-ordering2. '
3636
'See also: http://pytest-ordering.readthedocs.org/'
3737
)
3838

pytest_ordering2/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.7'

setup.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@
55

66
__here__ = os.path.abspath(os.path.dirname(__file__))
77

8-
# define __version__
9-
# execfile doesn't exist in python 3
10-
# see: http://stackoverflow.com/questions/6357361/alternative-to-execfile-in-python-3-2
11-
exec(open(os.path.join(__here__, 'pytest_ordering', '_version.py')).read())
8+
from pytest_ordering2 import __version__
9+
10+
with open(os.path.join(__here__, 'README.md')) as f:
11+
LONG_DESCRIPTION = f.read()
1212

1313

1414
setup(
15-
name='pytest-ordering',
15+
name='pytest-ordering2',
1616
description='pytest plugin to run your tests in a specific order',
17+
long_description=LONG_DESCRIPTION,
1718
version=__version__,
18-
author='Frank Tobia',
19-
author_email='frank.tobia@gmail.com',
20-
url='https://github.com/ftobia/pytest-ordering',
21-
packages=['pytest_ordering'],
22-
entry_points = {
19+
author='mrbean-bremane',
20+
author_email='hansemrbean@googlemail.com',
21+
url='https://github.com/mrbean-bremen/pytest-ordering2',
22+
packages=['pytest_ordering2'],
23+
entry_points={
2324
'pytest11': [
24-
'pytest_ordering = pytest_ordering',
25+
'pytest_ordering2 = pytest_ordering2',
2526
]
2627
},
2728
install_requires=['pytest>=3.6'],

tests/test_indulgent_ordering.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33

44
import pytest
5-
import pytest_ordering
5+
import pytest_ordering2
66

77
pytest_plugins = ["pytester"]
88

@@ -27,14 +27,14 @@ def test_me_first():
2727
"""
2828
)
2929
args = ["--quiet", "--color=no", testname]
30-
pytest.main(args, [pytest_ordering])
30+
pytest.main(args, [pytest_ordering2])
3131
out, err = capsys.readouterr()
3232
assert "..F" in out
3333
args.insert(0, "--ff")
34-
pytest.main(args, [pytest_ordering])
34+
pytest.main(args, [pytest_ordering2])
3535
out, err = capsys.readouterr()
3636
assert "..F" in out
3737
args.insert(0, "--indulgent-ordering")
38-
pytest.main(args, [pytest_ordering])
38+
pytest.main(args, [pytest_ordering2])
3939
out, err = capsys.readouterr()
4040
assert "F.." in out

tests/test_misc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# -*- coding: utf-8 -*-
22
import re
33

4-
import pytest_ordering
4+
import pytest_ordering2
55

66

77
def test_version_exists():
8-
assert hasattr(pytest_ordering, '__version__')
8+
assert hasattr(pytest_ordering2, '__version__')
99

1010

1111
def test_version_valid():
1212
assert re.match(r'[0-9]+\.[0-9]+(\.[0-9]+)?$',
13-
pytest_ordering.__version__)
13+
pytest_ordering2.__version__)

tests/test_ordering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,4 @@ def test_markers_registered(capsys):
424424
assert '@pytest.mark.run' in out
425425
assert '@pytest.mark.first' in out
426426
assert '@pytest.mark.last' in out
427-
assert out.count('Provided by pytest-ordering') == 17
427+
assert out.count('Provided by pytest-ordering2') == 17

0 commit comments

Comments
 (0)