Skip to content

Commit

Permalink
Loosen default requirements and added pinned ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarusso committed Aug 7, 2024
1 parent 4f58189 commit 8f75ecc
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_pinned.txt
pip install protobuf==3.20.3
pip install tensorflow==2.7.0
pip install statsmodels==0.12.1
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ MAINTAINER Stefano Alberto Russo <[email protected]>
RUN apt-get update

# Install Python requirements
COPY requirements.txt /tmp
RUN pip3 install -r /tmp/requirements.txt
COPY requirements_pinned.txt /tmp
RUN pip3 install -r /tmp/requirements_pinned.txt

# Add headless Chromium support for rendering plots as images
RUN apt-get install -y xdg-utils wget libxrandr2 libxkbcommon0 libxfixes3 libxext6 libxdamage1 libxcomposite1 \
Expand Down
36 changes: 18 additions & 18 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Keras==2.7.0
matplotlib==3.7.2
numpy==1.21.4
scikit-learn==1.0.1
pandas==1.3.4
chardet==3.0.4
convertdate==2.3.2
lunarcalendar==0.0.9
cython==0.29.17
requests==2.26.0
h5py==3.6.0
scipy==1.7.3
pyppeteer==0.2.6
Keras >=2.1.3, <3.0.0
matplotlib >=2.1.2, <4.0.0
numpy >=1.19.5, <2.0.0
scikit-learn >=0.2.2, <2.0.0
pandas >=0.23.4, <2.0.0
chardet >=3.0.4, <4.0.0
convertdate >=2.1.2, <3.0.0
lunarcalendar >=0.0.9, <1.0.0
cython >=0.29.17, <1.0.0
requests >=2.20.0, <3.0.0
h5py >=2.10.0, <4.0.0
scipy >=1.5.4, <2.0.0
pyppeteer >=0.2.6, <1.0.0
propertime>=1.0.0, < 2.0.0
fitter==1.7.0
propertime==1.0.0

# Optional
#tensorflow==2.7.0 # TensorFlow (also -gpu, -macos or -aarch64 variants)
#prophet==1.1.5 # Facebook's Prophet
#pmdarima==1.8 # AARIMA
#statsmodels==0.12.1 # ARIMA, SARIMAX
#tensorflow >=1.15.2, <3.0.0 # TensorFlow (also -gpu, -macos or -aarch64 variants)
#prophet >=1.1.4, <2.0.0 # Facebook's Prophet
#pmdarima >=1.8, <2.0.0 # AARIMA
#statsmodels >=0.12.1, <1.0.0 # ARIMA, SARIMAX
21 changes: 21 additions & 0 deletions requirements_pinned.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Keras==2.7.0
matplotlib==3.7.2
numpy==1.21.4
scikit-learn==1.0.1
pandas==1.3.4
chardet==3.0.4
convertdate==2.3.2
lunarcalendar==0.0.9
cython==0.29.17
requests==2.26.0
h5py==3.6.0
scipy==1.7.3
pyppeteer==0.2.6
propertime==1.0.0
fitter==1.7.0

# Optional
#tensorflow==2.7.0 # TensorFlow (also -gpu, -macos or -aarch64 variants)
#prophet==1.1.5 # Facebook's Prophet
#pmdarima==1.8 # AARIMA
#statsmodels==0.12.1 # ARIMA, SARIMAX
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'h5py >=2.10.0, <4.0.0',
'scipy >=1.5.4, <2.0.0',
'pyppeteer>=0.2.6, <1.0.0',
'fitter>=1.7.0, <2.0.0',
'fitter>=1.7.0',
'propertime>=1.0.0, <2.0.0'
],
extras_require = {
Expand Down

0 comments on commit 8f75ecc

Please sign in to comment.