Skip to content

Commit 5f61441

Browse files
authored
Merge pull request #32 from nschloe/src-layout
use src/ layout
2 parents 6fcbf59 + 7f956cb commit 5f61441

File tree

8 files changed

+8
-3
lines changed

8 files changed

+8
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ jobs:
3838
- name: Test with tox
3939
run: |
4040
pip install tox
41-
tox
41+
tox -- --cov blacktex --cov-report xml --cov-report term
4242
- uses: codecov/codecov-action@v1
4343
if: ${{ matrix.python-version == '3.9' }}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ publish: tag upload
1919

2020
clean:
2121
@find . | grep -E "(__pycache__|\.pyc|\.pyo$\)" | xargs rm -rf
22-
@rm -rf *.egg-info/ build/ dist/ MANIFEST .pytest_cache/
22+
@rm -rf src/*.egg-info/ build/ dist/ MANIFEST .pytest_cache/ .tox/
2323

2424
format:
2525
isort .

setup.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,16 @@ keywords =
3232
linting
3333

3434
[options]
35+
package_dir =
36+
=src
3537
packages = find:
3638
install_requires =
3739
importlib_metadata;python_version<"3.8"
3840
python_requires = >=3.6
3941

42+
[options.packages.find]
43+
where=src
44+
4045
[options.entry_points]
4146
console_scripts =
4247
blacktex = blacktex.cli:main
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ deps =
77
pytest
88
pytest-cov
99
commands =
10-
pytest --cov {envsitepackagesdir}/blacktex --cov-report xml --cov-report term
10+
pytest {posargs}

0 commit comments

Comments
 (0)