Skip to content

Commit 6ae2f8b

Browse files
committed
Update Travis CI configuration and requirements for Python 3.12 and add Alembic for migrations
1 parent a4d9cbb commit 6ae2f8b

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
language: python
22

33
python:
4-
- "3.8"
5-
- "3.9"
4+
- "3.12" # Specify the Python version to use
5+
6+
env:
7+
- TESTING=True
68

79
# Enable caching for pip to speed up builds by reusing previously downloaded packages
8-
cache: pip
10+
cache:
11+
pip: true
912

1013
# Add PostgreSQL service for testing database interactions
1114
services:

requirements.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ gunicorn>=20.1.0
1313
psycopg2-binary>=2.9.0 # Switched from psycopg2 to psycopg2-binary for easier installation
1414
python-dotenv>=0.19.1
1515
sqlalchemy>=1.4.31
16+
alembic>=1.7.4 # Added for database migrations
1617

1718
# Testing dependencies
1819
pytest>=7.4.0
@@ -22,11 +23,13 @@ pytest-cov>=4.0.0 # Added for coverage reporting
2223
pytest-xdist>=2.4.0 # Added for parallel test execution
2324
pytest-asyncio>=0.20.3 # If asynchronous tests are included
2425

25-
# Linting and code style (optional, but recommended)
26-
flake8==6.1.0
26+
# Development dependencies (optional but recommended)
27+
flake8>=6.1.0
28+
# mock>=4.0.3 # Remove if not needed
2729

28-
# Mocking dependencies
29-
mock>=4.0.3 # Added for mock compatibility
30+
# Documentation dependencies (optional)
31+
sphinx>=4.0.0
32+
furo>=2021.8.14
3033

31-
# Pin setuptools to avoid psycopg2 issues
32-
setuptools==70.0.0 # Added to avoid conflicts with psycopg2 setup
34+
# Pre-commit for linting and formatting (optional)
35+
pre-commit>=2.20.0ß

0 commit comments

Comments
 (0)