Skip to content

Commit

Permalink
Merge pull request #2047 from glensc/pyproject-v2
Browse files Browse the repository at this point in the history
Build: Move entry points and packages to pyproject
  • Loading branch information
glensc authored Sep 1, 2024
2 parents cbb398b + 36050b2 commit d8f34fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,30 @@ requires = [
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = [
"plextraktsync",
"plextraktsync.commands",
"plextraktsync.config",
"plextraktsync.decorators",
"plextraktsync.logger",
"plextraktsync.media",
"plextraktsync.mixin",
"plextraktsync.plan",
"plextraktsync.plex",
"plextraktsync.plugin",
"plextraktsync.queue",
"plextraktsync.rich",
"plextraktsync.sync",
"plextraktsync.sync.plugin",
"plextraktsync.trakt",
"plextraktsync.util",
"plextraktsync.watch",
]

[project.scripts]
plextraktsync = "plextraktsync.cli:cli"

[tool.ruff]
# https://docs.astral.sh/ruff/settings/#line-length
line-length = 150
Expand Down
22 changes: 0 additions & 22 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
[options]
packages =
plextraktsync
plextraktsync.commands
plextraktsync.config
plextraktsync.decorators
plextraktsync.logger
plextraktsync.media
plextraktsync.mixin
plextraktsync.plan
plextraktsync.plex
plextraktsync.plugin
plextraktsync.queue
plextraktsync.rich
plextraktsync.sync
plextraktsync.sync.plugin
plextraktsync.trakt
plextraktsync.util
plextraktsync.watch
include_package_data = True

[options.packages.find]
exclude =
tests

[options.entry_points]
console_scripts =
plextraktsync = plextraktsync.cli:cli

[options.data_files]
. =
requirements.txt
Expand Down

0 comments on commit d8f34fd

Please sign in to comment.