From b7cab63f60b9458c613ab4ae029eebbe36d7c9e8 Mon Sep 17 00:00:00 2001 From: Edvard Rejthar Date: Mon, 14 Oct 2024 16:11:54 +0200 Subject: [PATCH] setup extras fix --- .github/workflows/run-unittest.yml | 4 ++-- requirements.txt | 3 +-- setup.py | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-unittest.yml b/.github/workflows/run-unittest.yml index 064cca9..a2b4e2b 100644 --- a/.github/workflows/run-unittest.yml +++ b/.github/workflows/run-unittest.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", 3.11, 3.12] + python-version: ["3.10", 3.11, 3.12, 3.13] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -26,7 +26,7 @@ jobs: run: pip uninstall python-magic -y - name: Test libmagic missing id: should_fail - run: python3 tests.py TestMime.test_libmagic + run: python3 test_.py TestMime.test_libmagic continue-on-error: true - name: Check on failures if: steps.should_fail.outcome != 'failure' diff --git a/requirements.txt b/requirements.txt index 3ccd454..d66dfe5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ jsonpickle python-magic python-gnupg>=0.5 -py3-validate-email -cryptography>=43 \ No newline at end of file +py3-validate-email \ No newline at end of file diff --git a/setup.py b/setup.py index e5141ce..dbcc4ef 100644 --- a/setup.py +++ b/setup.py @@ -32,8 +32,8 @@ long_description_content_type="text/markdown", install_requires=install_requires, extras_require={ - "smime": "M2Crypto", # need to have: `sudo apt install swig` - "cryptography": "cryptography>=43" # need to have `pip install cryptography` + "smime": ["M2Crypto", # need to have: `sudo apt install swig` + "cryptography>=43"] }, entry_points={ 'console_scripts': [