Skip to content

Commit

Permalink
Transition to src layout`
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Mar 25, 2023
1 parent d73f5a0 commit d950c1b
Show file tree
Hide file tree
Showing 37 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
include:
- IS_QBT_DEV: false
# test dev versions of qBittorrent
# - QBT_VER: "master"
# IS_QBT_DEV: true
- QBT_VER: "master"
IS_QBT_DEV: true
- QBT_VER: "v4_5_x"
IS_QBT_DEV: true
- QBT_VER: "v4_4_x"
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
runner-os: ${{ matrix.OS_VER }}

coverage:
name: Combine & check coverage.
name: Combine & Check Coverage
runs-on: ubuntu-latest
needs: [Tests-qBittorrent, Tests-Python]
steps:
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ parallel = true
branch = true
relative_files = true
source_pkgs = ["qbittorrentapi"]
omit = ["qbittorrentapi/_attrdict.py"]
omit = ["**/_attrdict.py"]

[tool.coverage.paths]
source = [
"qbittorrentapi",
"src",
"**/site-packages",
]

[tool.coverage.report]
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ platforms = any
zip_safe = False
packages = find:
include_package_data = True
package_dir =
= src
install_requires =
backports.functools-lru-cache; python_version < "3.3"
enum34; python_version < "3"
Expand Down Expand Up @@ -77,5 +79,8 @@ dev =
types-requests
types-six

[options.packages.find]
where = src

[bdist_wheel]
universal = 1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def delete_feed(name):
client.app.preferences = dict(rss_auto_downloading_enabled=False)
# refreshing the feed is finicky...so try several times if necessary
done = False
for i in range(30):
for i in range(5):
delete_feed(name)
client.rss.add_feed(url=url, item_path=name)
# refreshing too quickly can cause it to never refresh.
Expand Down

0 comments on commit d950c1b

Please sign in to comment.