Skip to content

Commit ecaaa98

Browse files
committed
1 parent 33046cd commit ecaaa98

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

tests/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ def test_subpackage(baked_withdevdeps):
4848
subpackage = (project_dir / 'my_python_package' / 'mysub')
4949
subpackage.mkdir()
5050
(subpackage / '__init__.py').write_text('FOO = "bar"', encoding="utf-8")
51-
build_output = run('python3 setup.py build', project_dir)
51+
build_output = run('env/bin/python3 setup.py build', project_dir)
5252
assert build_output.returncode == 0
5353
assert (project_dir / 'build' / 'lib' / 'my_python_package' / 'mysub' / '__init__.py').exists()

{{cookiecutter.project_name}}/setup.cfg

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ version = {{ cookiecutter.version }}
3434
[options]
3535
zip_safe = False
3636
include_package_data = True
37-
packages =
38-
{{ cookiecutter.package_name }}
37+
packages = find:
3938
install_requires =
4039

4140
[options.data_files]
@@ -57,10 +56,13 @@ dev =
5756
sphinx
5857
sphinx_rtd_theme
5958
recommonmark
60-
publishing =
59+
publishing =
6160
twine
6261
wheel
6362

63+
[options.packages.find]
64+
include = {{ cookiecutter.package_name }}, {{ cookiecutter.package_name }}*
65+
6466
[coverage:run]
6567
branch = True
6668
source = {{ cookiecutter.package_name }}

0 commit comments

Comments
 (0)