Skip to content

Commit

Permalink
Update for v2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fedecalendino committed Nov 1, 2022
1 parent b6aa8cf commit addfa43
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 170 deletions.
4 changes: 2 additions & 2 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>./dist/main/main $@</string>
<string>/usr/bin/python3 ./dist/main.py $@</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -186,7 +186,7 @@ The valid 3-letter fiat currency codes can be found here: https://www.iban.com/c
</dict>
</array>
<key>version</key>
<string>2.6.0</string>
<string>2.7.0</string>
<key>webaddress</key>
<string>https://github.com/fedecalendino/alfred-currency-converter</string>
</dict>
Expand Down
163 changes: 17 additions & 146 deletions poetry.lock

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

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Currency Converter"
version = "2.6.0"
version = "2.7.0"
description = "Convert between multiple fiat and crypto currencies"
documentation = "https://github.com/fedecalendino/alfred-currency-converter/blob/main/README.md"
homepage = "https://github.com/fedecalendino/alfred-currency-converter"
Expand All @@ -14,12 +14,11 @@ authors = [
python = ">=3.8,<3.11"
alfred-pyflow = "latest"
requests = "^2.28.1"
pycoingecko = "^3.0.0"
ccy = "^1.2.2"
pycoingecko = "^3.1.0"
ccy = "^1.3.0"

[tool.poetry.dev-dependencies]
black = "22.10.0"
pyinstaller = "5.5"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
27 changes: 11 additions & 16 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
function build() {
echo "Generating $1 binary"
echo

poetry run pyinstaller --onedir --paths ./src/ "src/$1.py" 1> /dev/null

echo "Workspace cleanup"
echo
rm -rf "./dist/"

rm "./$1.spec"
rm -rf "./build/"
echo "Copy dependencies"
cp -r $(find .venv | egrep "site-packages$") ./dist

echo
echo "Finished generating bin file for $1"
echo
}
echo "Clean up dist folder"
cd dist
ls -d */ | grep info | xargs rm -rf
ls | egrep "^\_.*" | xargs rm -rf

rm -rf *.so black blackd blib2to3 distutils* pkg_resources pip* setuptools* wheel*

rm -rf "./dist/"
cd ..

build main
echo "Copy source code"
cp -r ./src/* dist

echo "Finished"
echo
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo "NEW VERSION: v$VERSION"
echo


echo "Building binaries..."
echo "Building dist..."
echo
./scripts/build.sh > /dev/null
echo
Expand Down
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import sys

from pyflow import Workflow
from src import util, api

import api
import util


def fetch_rates(workflow):
Expand Down

0 comments on commit addfa43

Please sign in to comment.