Skip to content

Commit 5ce740c

Browse files
refactor: rename module src/ to steam_library_manager/ (v1.2.0)
Complies with Python packaging conventions (PEP 423). The module name 'src' is generic and conflicts with other packages when installed system-wide. 'steam_library_manager' is globally unique. - Renamed directory and updated all 1027 imports across 251 files - Updated pyproject.toml, CI workflows, packaging (AUR/AppImage) - Updated README screenshots, metainfo URLs, documentation - All 1589 tests passing, linters clean - Version bumped to 1.2.0 Requested by: AUR user yochananmarqos
1 parent e6494f2 commit 5ce740c

400 files changed

Lines changed: 1727 additions & 1707 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-appimage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Extract version
2525
id: version
2626
run: |
27-
VERSION=$(python -c "exec(open('src/version.py').read()); print(__version__)")
27+
VERSION=$(python -c "exec(open('steam_library_manager/version.py').read()); print(__version__)")
2828
echo "version=$VERSION" >> $GITHUB_OUTPUT
2929
3030
- name: Install system dependencies
@@ -45,8 +45,8 @@ jobs:
4545
run: |
4646
pyinstaller --windowed --noconfirm \
4747
--name SteamLibraryManager \
48-
--add-data "src:src" \
49-
src/main.py
48+
--add-data "steam_library_manager:steam_library_manager" \
49+
steam_library_manager/main.py
5050
5151
- name: Create AppDir structure
5252
run: |
@@ -58,7 +58,7 @@ jobs:
5858
AppDir/usr/share/applications/
5959
cp flatpak/io.github.switch_bros.SteamLibraryManager.svg \
6060
AppDir/usr/share/icons/hicolor/scalable/apps/
61-
cp src/resources/io.github.switch_bros.SteamLibraryManager.metainfo.xml \
61+
cp steam_library_manager/resources/io.github.switch_bros.SteamLibraryManager.metainfo.xml \
6262
AppDir/usr/share/metainfo/
6363
cp flatpak/io.github.switch_bros.SteamLibraryManager.desktop AppDir/
6464
cp flatpak/io.github.switch_bros.SteamLibraryManager.svg AppDir/

.github/workflows/publish-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Verify version consistency
2222
run: |
2323
TAG_VERSION="${GITHUB_REF#refs/tags/v}"
24-
PY_VERSION=$(python -c "exec(open('src/version.py').read()); print(__version__)")
24+
PY_VERSION=$(python -c "exec(open('steam_library_manager/version.py').read()); print(__version__)")
2525
if [ "$TAG_VERSION" != "$PY_VERSION" ]; then
2626
echo "::error::Version mismatch! Tag=$TAG_VERSION, version.py=$PY_VERSION"
2727
exit 1

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
pip install black flake8 mypy
2727
2828
- name: Check formatting with black
29-
run: black --check --diff src tests
29+
run: black --check --diff steam_library_manager tests
3030

3131
- name: Lint with flake8
32-
run: flake8 src tests
32+
run: flake8 steam_library_manager tests
3333

3434
- name: Type check with mypy
35-
run: mypy src
35+
run: mypy steam_library_manager
3636

3737
- name: Validate i18n locale files
3838
run: python scripts/validate_i18n.py
@@ -67,7 +67,7 @@ jobs:
6767
pip install -r requirements-dev.txt
6868
6969
- name: Test with pytest
70-
run: pytest tests/ -v --cov=src --cov-report=xml --cov-report=term
70+
run: pytest tests/ -v --cov=steam_library_manager --cov-report=xml --cov-report=term
7171

7272
- name: Upload coverage to Codecov
7373
if: matrix.python-version == '3.12'

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ data/
3838
*.log
3939
.idea/
4040
.vscode/
41-
src/resources/icons/Icon_Namen.txt
41+
steam_library_manager/resources/icons/Icon_Namen.txt
4242
cleanup_dependencies_dev.sh
4343
*.zip
4444
/AGENTS.md

README.md

Lines changed: 60 additions & 60 deletions
Large diffs are not rendered by default.

README_DE.md

Lines changed: 60 additions & 60 deletions
Large diffs are not rendered by default.

build-appimage.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ pyinstaller \
1515
--name SteamLibraryManager \
1616
--windowed \
1717
--noconfirm \
18-
--add-data "src:src" \
19-
src/main.py
18+
--add-data "steam_library_manager:steam_library_manager" \
19+
steam_library_manager/main.py
2020

2121
# 2. Create AppDir structure
2222
mkdir -p AppDir/usr/{bin,share/{applications,icons/hicolor/scalable/apps,metainfo}}
@@ -31,7 +31,7 @@ cp flatpak/io.github.switch_bros.SteamLibraryManager.desktop \
3131
AppDir/usr/share/applications/
3232
cp flatpak/io.github.switch_bros.SteamLibraryManager.svg \
3333
AppDir/usr/share/icons/hicolor/scalable/apps/
34-
cp src/resources/io.github.switch_bros.SteamLibraryManager.metainfo.xml \
34+
cp steam_library_manager/resources/io.github.switch_bros.SteamLibraryManager.metainfo.xml \
3535
AppDir/usr/share/metainfo/
3636

3737
# AppRun needs these at the top level too

docs/de/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Nein. Der Steam-API-Key ist optional. SLMs primäre Methode liest deine Spiele d
7575

7676
Nein. SLM hat keinerlei Telemetrie und macht keine Netzwerkaufrufe außer an Steams API, SteamGridDB, HowLongToBeat und ProtonDB. Du kannst das selbst überprüfen:
7777
```bash
78-
grep -r "requests\.\(get\|post\)" src/ | grep -v test | grep -v __pycache__
78+
grep -r "requests\.\(get\|post\)" steam_library_manager/ | grep -v test | grep -v __pycache__
7979
```
8080

8181
### Wie widerrufe ich SLMs Zugriff auf meinen Account?

docs/en/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ No. The Steam API key is optional. SLM's primary method reads your games directl
7575

7676
No. SLM has zero telemetry and makes no network calls except to Steam's API, SteamGridDB, HowLongToBeat, and ProtonDB. You can verify this yourself:
7777
```bash
78-
grep -r "requests\.\(get\|post\)" src/ | grep -v test | grep -v __pycache__
78+
grep -r "requests\.\(get\|post\)" steam_library_manager/ | grep -v test | grep -v __pycache__
7979
```
8080

8181
### How do I revoke SLM's access to my account?

packaging/aur/.SRCINFO

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgbase = steam-library-manager
22
pkgdesc = A powerful Steam library organizer for Linux - the modern Depressurizer alternative
3-
pkgver = 1.1.1
3+
pkgver = 1.2.0
44
pkgrel = 1
55
url = https://github.com/Switch-Bros/SteamLibraryManager
66
arch = any
@@ -23,7 +23,7 @@ pkgbase = steam-library-manager
2323
depends = qt6-base
2424
optdepends = python-keyring: secure token storage via system keyring
2525
optdepends = python-steamgriddb: artwork browsing via SteamGridDB
26-
source = steam-library-manager-1.1.1.tar.gz::https://github.com/Switch-Bros/SteamLibraryManager/archive/v1.1.1.tar.gz
27-
sha256sums = c12487f1a814758a27549ed71b198aef02451dc25472db182dbaff786d061a34
26+
source = steam-library-manager-1.2.0.tar.gz::https://github.com/Switch-Bros/SteamLibraryManager/archive/v1.2.0.tar.gz
27+
sha256sums = SKIP
2828

2929
pkgname = steam-library-manager

0 commit comments

Comments
 (0)