Skip to content

Commit

Permalink
Handle local package creation via specifying path to setup.py or .tom…
Browse files Browse the repository at this point in the history
…l files (#1)

Co-authored-by: Igr @ObjatieGroba
  • Loading branch information
ObjatieGroba authored and amdei committed Nov 24, 2024
1 parent cf5df8b commit c5af917
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/fpm/package/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ def input(package)
if File.directory?(path_to_package)
setup_py = File.join(path_to_package, "setup.py")
pyproject_toml = File.join(path_to_package, "pyproject.toml")
elsif File.basename(path_to_package) == "setup.py"
setup_py = path_to_package
pyproject_toml = ""
elsif File.basename(path_to_package) == "pyproject.toml"
setup_py = ""
pyproject_toml = path_to_package
else
setup_py = path_to_package
pyproject_toml = path_to_package
Expand Down

0 comments on commit c5af917

Please sign in to comment.