Skip to content

Commit

Permalink
Test: Setup
Browse files Browse the repository at this point in the history
Signed-off-by: NaveenKumar Namachivayam ⚡ <[email protected]>
  • Loading branch information
QAInsights committed Nov 23, 2023
1 parent b965234 commit 518bd84
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 16 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ jobs:
with:
python-version: "3.10.11"

- name: Test Python version
run: |
python --version
python -m pip --version
dir .\windows\
# - uses: actions/checkout@v3
# - name: Set up Python 3.10.11
# uses: actions/setup-python@v3
Expand All @@ -54,11 +47,12 @@ jobs:
python -m pip install --upgrade pip
pip install -r .\windows\requirements.txt
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install py2app
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install py2app
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if: matrix.os == 'macos' || matrix.os == 'self-hosted'

- name: Generate app for intel architecture
run: |
Expand Down
4 changes: 2 additions & 2 deletions windows/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from collections import OrderedDict
from pathlib import Path
from windows import __VERSION__
# from windows import __VERSION__


class AppConfig:
Expand All @@ -17,7 +17,7 @@ def __init__(self):
self.menu_items_dict = OrderedDict()

self.jmeter_recent_files_pattern = re.compile("recent_file_.*")
self.app_version = __VERSION__
self.app_version = "0.0.1"
self.buy_me_a_coffee_url = 'https://www.buymeacoffee.com/QAInsights'
self.authors = ['NaveenKumar Namachivayam', 'Leela Prasad Vadla']
self.about_website = 'https://QAInsights.com'
Expand Down
50 changes: 50 additions & 0 deletions windows/config.py~
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import re

from collections import OrderedDict
from pathlib import Path
from windows import __VERSION__


class AppConfig:
def __init__(self):
self.app_title = 'Hamster'
self.app_title_emoji = f'🐹 {self.app_title}'
self.app_caption = 'Instantly Launch JMeter Test Plans'
self.app_caption_emoji = f'{self.app_caption} 🚀'
self.app_properties_template = "hamster_app.properties"
self.win_app_properties = self.app_properties_template.replace(".properties", ".ini")
self.home_dir = Path.home()
self.menu_items_dict = OrderedDict()

self.jmeter_recent_files_pattern = re.compile("recent_file_.*")
self.app_version = __VERSION__
self.buy_me_a_coffee_url = 'https://www.buymeacoffee.com/QAInsights'
self.authors = ['NaveenKumar Namachivayam', 'Leela Prasad Vadla']
self.about_website = 'https://QAInsights.com'

@property
def authors_str(self):
return '\n'.join(self.authors)

@property
def about_text(self):
return f'''{self.app_title_emoji} - {self.app_caption_emoji}\n\n
Authors:\n{self.authors_str}\n\n{self.about_website}
'''

@property
def help_text(self):
return '''
Hamster is a menu bar app to instantly launch JMeter test plans.\n\n
1. Configure `JMETER_HOME` by launching `Hamster > Edit JMETER_HOME`\n
2. To launch JMeter, click on `Hamster > Launch JMeter`\n
3. To launch JMeter test plans, click on `Hamster > Recent Test Plans > select the test plan`.\n
4. To view the configuration, click on `Hamster > View Config`\n
5. To restart Hamster, click on `Hamster > Refresh`\n
6. To know more about Hamster, click on `Hamster > About`\n
7. To refresh the recent test plans, click on `Hamster > Restart`\n
8. To quit Hamster, click on `Hamster > Quit`\n
'''


app_config = AppConfig()
4 changes: 2 additions & 2 deletions windows/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from cx_Freeze import setup, Executable
from ..windows import __VERSION__
# from windows import __VERSION__

build_exe_options = {
"include_files": [".\\img\\hamster.png",
Expand All @@ -15,7 +15,7 @@

setup(
name="Hamster",
version=__VERSION__,
version="0.0.1",
description="Instantly Launch JMeter Test Plans 🚀",
options={"build_exe": build_exe_options},
executables=[
Expand Down

0 comments on commit 518bd84

Please sign in to comment.