Skip to content

Commit

Permalink
Upgrade to Py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinas committed May 1, 2024
1 parent 9c769bc commit 4390dba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.7"
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
8 changes: 4 additions & 4 deletions pwmt/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ def __init__(self, project, meta):
self.changelog = meta["changelog"] if "changelog" in meta else {}

try:
self.filename = "{}-{}.tar.gz".format(project.name, self.name)
self.filename = f"{project.name}-{self.name}.tar.gz"
self.path = os.path.join(project.path, "download", self.filename)
if not os.path.exists(self.path):
self.filename = "{}-{}.tar.xz".format(project.name, self.name)
self.filename = f"{project.name}-{self.name}.tar.xz"
self.path = os.path.join(project.path, "download", self.filename)
self.sha2 = calculate_sha2_of_file(self.path)
except:
print("Can not read file for version '{}-{}'".format(self.project.name, self.name))
print(f"Can not read file for version '{self.project.name}-{self.name}'")
pass

def getNewsItem(self):
news = NewsItem()
news["title"] = "{} {}".format(self.project.name, self.name)
news["title"] = f"{self.project.name} {self.name}"
news["date"] = self.date
news["tags"] = ["release"]
news["categories"] = [self.project.name]
Expand Down

0 comments on commit 4390dba

Please sign in to comment.