Skip to content

Commit

Permalink
Merge pull request #147 from planetlabs/zip_archive_update
Browse files Browse the repository at this point in the history
Include license file in the plugin zip archive
  • Loading branch information
john-dupuy authored Jul 30, 2024
2 parents fe21e97 + a121ce7 commit 7c12eb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ def filter_excludes(some_files):

zipfile.writestr("planet_explorer/pe_utils.py", txt)

# Include the license file in the zip archive
license_file = os.path.join(os.path.dirname(__file__), "LICENSE")
with open(license_file) as f:
license_text = f.read()
zipfile.writestr("planet_explorer/LICENSE", license_text)


@dataclass
class GithubRelease:
Expand Down

0 comments on commit 7c12eb6

Please sign in to comment.