diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..2f4411bd --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +# Default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Handle python file as text +*.py text + +# Every shell file must be cloned with LF line ending +*.sh text eol=lf \ No newline at end of file diff --git a/.github/workflows/entrypoint_nightly.yml b/.github/workflows/entrypoint_nightly.yml index ad37f42c..37db5656 100644 --- a/.github/workflows/entrypoint_nightly.yml +++ b/.github/workflows/entrypoint_nightly.yml @@ -4,8 +4,8 @@ on: push: branches: - "dev" - paths: - - "**.py" + #paths: + # - "**.py" jobs: test: @@ -27,13 +27,19 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" + - name: Upgrade pip + run: python -m pip install --upgrade pip - name: Install requirements - run: python -m pip install --user build + run: python -m pip install --user build virtualenv setuptools - name: Cleaning run : python setup.py clean - name: Build Exegol run: python -m build --sdist --outdir dist/ . + - name: Create testing venv + run: python -m venv vtest + - name: Install pip package + run: ./vtest/bin/pip install ./dist/* - name: Publish distribution 📦 to Test PyPI uses: pypa/gh-action-pypi-publish@release/v1 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') diff --git a/exegol/config/ConstantConfig.py b/exegol/config/ConstantConfig.py index c4519dde..7315741e 100644 --- a/exegol/config/ConstantConfig.py +++ b/exegol/config/ConstantConfig.py @@ -5,7 +5,7 @@ class ConstantConfig: """Constant parameters information""" # Exegol Version - version: str = "4.3.5" + version: str = "4.3.6" # Exegol documentation link documentation: str = "https://exegol.rtfd.io/" diff --git a/requirements.txt b/requirements.txt index af0af7db..cf72eb36 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ rich~=13.7.1 GitPython~=3.1.43 PyYAML>=6.0.2 argcomplete~=3.5.0 -tzlocal~=5.2 +tzlocal~=5.2; platform_system != 'Linux' diff --git a/setup.py b/setup.py index 89d4c500..4cb8c89a 100644 --- a/setup.py +++ b/setup.py @@ -31,9 +31,6 @@ for k, v in data_files_dict.items(): data_files.append((k, v)) -with open("requirements.txt", "r", encoding="utf-8") as f: - requirements = [x.strip() for x in f.readlines()] - setup( name='Exegol', version=__version__, @@ -57,7 +54,15 @@ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", ], - install_requires=requirements, + install_requires=[ + 'docker~=7.1.0', + 'requests~=2.32.3', + 'rich~=13.7.1', + 'GitPython~=3.1.43', + 'PyYAML>=6.0.2', + 'argcomplete~=3.5.0', + 'tzlocal~=5.2; platform_system != "Linux"' + ], packages=find_packages(exclude=["tests"]), include_package_data=True, data_files=data_files, diff --git a/tests/test_exegol.py b/tests/test_exegol.py index 2de37b16..15f0d804 100644 --- a/tests/test_exegol.py +++ b/tests/test_exegol.py @@ -2,4 +2,4 @@ def test_version(): - assert __version__ == '4.3.5' + assert __version__ == '4.3.6'