Skip to content

Commit f82dc8d

Browse files
authored
Merge pull request #1 from python-trio/ci
Fix CI
2 parents 4242c44 + 5a77264 commit f82dc8d

File tree

10 files changed

+9
-13
lines changed

10 files changed

+9
-13
lines changed

.appveyor.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ build_script:
2424
- "pip install codecov"
2525

2626
test_script:
27-
- "mkdir empty"
28-
- "cd empty"
2927
# Make sure it's being imported from where we expect
3028
- "python -c \"import os, outcome; print(os.path.dirname(outcome.__file__))\""
31-
- "python -u -m pytest -W error -ra -v -s --pyargs outcome --cov=outcome --cov-config=../.coveragerc"
29+
- "python -u -m pytest -W error -ra -v -s --cov --cov-config=.coveragerc"
3230
- "codecov"

.coveragerc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[run]
2-
branch=True
3-
source=
2+
branch = True
3+
source =
44
outcome
5-
tests
5+
tests/
66

77
[report]
88
precision = 1

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
:alt: Automated test status (Linux and MacOS)
1212

1313
.. image:: https://ci.appveyor.com/api/projects/status/c54uu4rxlgs2usmj/branch/master?svg=true
14-
:target: https://ci.appveyor.com/project/python-trio/outcome/history
14+
:target: https://ci.appveyor.com/project/RazerM/outcome/history
1515
:alt: Automated test status (Windows)
1616

1717
.. image:: https://codecov.io/gh/python-trio/trio/branch/master/graph/badge.svg

ci/travis.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ else
8888
# Actual tests
8989
pip install -Ur test-requirements.txt
9090

91-
mkdir empty
92-
cd empty
93-
94-
pytest -W error -ra -v --pyargs outcome --cov=outcome --cov-config=../.coveragerc --verbose
91+
pytest -W error -ra -v tests --cov --cov-config=.coveragerc
9592

9693
bash <(curl -s https://codecov.io/bash)
9794
fi

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# read _version.py as bytes, otherwise exec will complain about
1111
# 'coding: utf-8', which we want there for the normal Python 2 import
12-
with open('outcome/_version.py', 'rb') as fp:
12+
with open('src/outcome/_version.py', 'rb') as fp:
1313
version_mod = fp.read()
1414

1515
exec(version_mod, version)
@@ -26,7 +26,8 @@
2626
author='Frazer McLean',
2727
author_email='[email protected]',
2828
license='MIT -or- Apache License 2.0',
29-
packages=find_packages(exclude=['tests']),
29+
packages=find_packages('src'),
30+
package_dir={'': 'src'},
3031
install_requires=['attrs'],
3132
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
3233
keywords='result',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)