Skip to content

Commit 133096b

Browse files
authored
releng - get rid of pythonpath hacks in tests by packaging properly cloud-custodian#6
2 parents 4ed7178 + 86f7104 commit 133096b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎setup.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
maintainer=None,
3333
maintainer_email=None,
3434
url='https://cel-python.io',
35-
packages=find_packages(),
35+
packages=find_packages(where='src'),
36+
package_dir={'': 'src'},
3637
package_data={"celpy": ["*.lark"]},
3738
install_requires=(here/"requirements.txt").read_text().splitlines(),
3839
python_requires='>=3.6, <4',
39-
)
40+
)

‎tox.ini‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ envlist = py36,py37,py38,lint
2020
[testenv]
2121
usedevelop = true
2222
setenv =
23-
PYTHONPATH = {toxinidir}/src{:}{env:PYTHONPATH:}
2423
docs = $(ls {toxinidir}/docs/source/*.rst)
2524
deps =
2625
-rrequirements.txt
@@ -30,7 +29,7 @@ commands =
3029
pytest -v --cov=src --cov-append
3130
pytest -v --cov=src --cov-append --doctest-modules src
3231
pytest -v --cov=src --cov-append --doctest-modules README.rst
33-
coverage run --source=src -a -m behave -D PYTHONPATH={toxinidir}/src --tags=~@wip
32+
coverage run --source=src -a -m behave --tags=~@wip
3433
# Deferred Work-in-Progress... left here as reminders.
3534
# coverage run --source=src -a -m behave --tags=~@wip features/dynamic.feature
3635
# coverage run --source=src -a -m behave --tags=~@wip features/proto2.feature

0 commit comments

Comments
 (0)