diff --git a/.github/workflows/code_analysis.yml b/.github/workflows/code_analysis.yml index 472f54b..2a004ea 100644 --- a/.github/workflows/code_analysis.yml +++ b/.github/workflows/code_analysis.yml @@ -8,14 +8,14 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: '3.6' + python-version: '3.10' - run: pip install bandit flake8 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 25ce77f..c5e36cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,10 +4,10 @@ on: [ push ] jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: - python-version: [ "3.5", "3.6", "3.7", "3.8", "3.9", "3.10" ] + python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11" ] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -26,7 +26,7 @@ jobs: deploy: needs: test - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') diff --git a/setup.py b/setup.py index 6e6c7d0..9d4cd8b 100644 --- a/setup.py +++ b/setup.py @@ -32,19 +32,20 @@ zip_safe=False, keywords='dparse', classifiers=[ - 'Development Status :: 2 - Pre-Alpha', + 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', ], - python_requires=">=3.5", + python_requires=">=3.6", extras_require={ - 'pipenv': ["pipenv"], + 'pipenv': ["pipenv<=2022.12.19"], 'conda': ["pyyaml"] } ) diff --git a/test_requirements.txt b/test_requirements.txt index e483b62..da7a7b7 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -1,4 +1,4 @@ -pipenv +pipenv<=2022.12.19 pyyaml pytest pytest-cov diff --git a/tests/test_updater.py b/tests/test_updater.py index 7c63686..541f77d 100644 --- a/tests/test_updater.py +++ b/tests/test_updater.py @@ -455,12 +455,6 @@ def test_update_pipfile(monkeypatch): toml = "*" """ - import pipenv.project - monkeypatch.setattr( - pipenv.project.pipfile.Pipfile, - 'find', - lambda max_depth: '/tmp/MockPipFile' - ) dep_file = parse(content=content, file_type=filetypes.pipfile) dep = dep_file.dependencies[0] new_content = PipfileUpdater.update(content, version="2.1", dependency=dep)