Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace appdirs with platformdirs dependency #871

Merged
merged 3 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ verify_ssl = true
[dev-packages]

[packages]
appdirs = "==1.4.4"
attrs = "==22.2.0"
"backports.cached-property" = {version="==1.0.2", python_version="<='3.7'"}
cattrs = {version="==22.2.0", python_version=">='3.7'"}
Expand Down
10 changes: 1 addition & 9 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ plextraktsync sync
```

NOTE: `pipx` install will use OS specific paths for Config, Logs, Cache, see
[appdirs] documentation for details or check output of [info command](#info-command).
[platformdirs] documentation for details or check output of [info command](#info-command).

[appdirs]: https://pypi.org/project/appdirs
[platformdirs]: https://pypi.org/project/platformdirs
[install-pipx]: https://github.com/pypa/pipx#install-pipx

### Docker Compose
Expand Down
4 changes: 2 additions & 2 deletions plextraktsync/util/Path.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def log_dir(self):

@cached_property
def app_dir(self):
from appdirs import AppDirs
from platformdirs import PlatformDirs

return AppDirs(self.app_name)
return PlatformDirs(self.app_name)

@cached_property
def installed(self):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#

-i https://pypi.org/simple/
appdirs==1.4.4
attrs==22.2.0
backports.cached-property==1.0.2; python_version <= '3.7'
cattrs==22.2.0; python_version >= '3.7'
Expand Down