Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 23 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,31 @@ jobs:
name: Check code quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.8'
python-version: '3.12'
- uses: pre-commit/action@v3.0.1

test_pipenv:
name: Run tests in development environment with pipenv
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.8'
- run: pip install pipenv
- run: pipenv sync --dev
- run: pipenv run pytest
python-version: '3.12'
- run: pip install -r requirements.txt
- run: pytest

check_install:
runs-on: ubuntu-latest
name: Check package installation via setup.py works
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.8'
python-version: '3.12'
- run: pip install --upgrade setuptools
- name: Build package
run: python setup.py sdist
Expand All @@ -55,13 +54,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.11', '3.12', '3.13', '3.14']
fail-fast: false
runs-on: ${{ matrix.os }}
name: Run Tests on ${{ matrix.os }} - Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade setuptools
Expand All @@ -73,12 +72,12 @@ jobs:
needs: [pre-commit, test_pipenv, test_general]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Fetch all tags, so setuptools_scm can determine version
run: git fetch --prune --unshallow --tags
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.8'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -94,10 +93,10 @@ jobs:
needs: [dist]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.8'
python-version: '3.12'
- name: Install dependencies
run: pip install twine
- uses: actions/download-artifact@v4
Expand All @@ -117,7 +116,7 @@ jobs:
name: dist
path: dist
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
user: __token__
password: ${{ secrets.test_pypi_token }}
Expand All @@ -135,12 +134,12 @@ jobs:
name: dist
path: dist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
user: __token__
password: ${{ secrets.pypi_token }}
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
user: __token__
password: ${{ secrets.test_pypi_token }}
Expand Down
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/requsim.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ sphinx:
configuration: docs/source/conf.py

build:
os: ubuntu-20.04
os: ubuntu-24.04
tools:
python: "3.9"
python: "3.12"

python:
install:
Expand Down
20 changes: 10 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ an official release.

## Development Environment

This project uses `pipenv` for setting up a stable development environment.
The following assumes Python 3.8 and `pipenv` are installed on your system.
You can set up the development environment like this:

This project uses Python 3.12 and virtualenv for setting up the development
environment:
```
git clone https://github.com/jwallnoefer/requsim.git
cd requsim
git checkout dev
pipenv sync --dev
pipenv run pre-commit install
pipenv shell
python3.12 -m venv .venv
source .venv/bin/activate
```
When the virtual environment is active, you can then install all the exact
versions of this project's dependencies and set up pre-commit like this:
```
pip install -r requirements.txt
pre-commit install
```

This clones the repository and installs the necessary tools and dependencies
into a Python virtual environment, that is managed by `pipenv`. `pipenv shell`
launches a new subshell with this virtual environment activated.

## Tests

Expand Down
29 changes: 0 additions & 29 deletions Pipfile

This file was deleted.

Loading