Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG] Added numpy bound to the requirements file #580

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ jobs:
- run:
name: Test install from sdist
command: |
echo "0.0.0" > ~/pmdarima/pmdarima/VERSION
# echo "0.0.0" > ~/pmdarima/pmdarima/VERSION

# we'll need packaging, numpy, and cython to build this. let install_requires do all the
# rest of the work. We build with our lowest supported numpy version to make sure there is no regression
pip install "packaging>=17.1" "numpy~=1.19.3" "cython>=0.29,!=0.29.18,!=0.29.31"
python setup.py sdist

cd dist
pip install pmdarima-0.0.0.tar.gz
pip install pmdarima-*.tar.gz
python -c 'import pmdarima as pm; print(pm.__version__)'

# --- Unit tests ---
Expand Down
7 changes: 2 additions & 5 deletions pmdarima/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
#
# We only create a VERSION file in CI/CD on tagged commits.
# For local development, or non-tagged commits, we will use 0.0.0
try:
version_path = Path(__file__).parent / 'VERSION'
__version__ = version_path.read_text().strip()
except FileNotFoundError:
__version__ = '0.0.0'

__version__ = '2.0.4'

try:
# this var is injected in the setup build to enable
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
joblib>=0.11
Cython>=0.29,!=0.29.18,!=0.29.31
numpy>=1.21.2
numpy>=1.21.2, <2.0
pandas>=0.19
scikit-learn>=0.22
scipy>=1.3.2
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@

# import restricted version of pmdarima that does not need the compiled code
import pmdarima
VERSION = pmdarima.__version__ # will be 0.0.0 unless tagging


VERSION = pmdarima.__version__

# get the installation requirements:
with open('requirements.txt') as req:
Expand Down