From e3d9ab6836cba17053a8a129fadf896a94b457ed Mon Sep 17 00:00:00 2001 From: "Carl J. Nobile" Date: Sat, 16 Dec 2023 19:48:56 -0500 Subject: [PATCH] Updated the .github/workflows/python-app.yml file and fixed a few things in the setup.py file. --- .github/workflows/python-app.yml | 6 +++--- setup.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 7f453c0..ddb7d72 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,15 +19,15 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f requirements/development.txt ]; then pip install -r requirements/development.txt; fi - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names diff --git a/setup.py b/setup.py index fefec26..8dc318b 100644 --- a/setup.py +++ b/setup.py @@ -18,8 +18,9 @@ def version(): :rtype: str """ regex = r'(?m)(^{}[\s]*=[\s]*(?P\d*)$)' + fullpath = os.path.join(filepath, 'include.mk') - with open(os.path.join(filepath, 'include.mk')) as f: + with open(fullpath, mode='r', encoding='UTF-8') as f: ver = f.read() major = re.search(regex.format('MAJORVERSION'), ver).group('ver')