Skip to content

Commit

Permalink
Loosen dependency policy
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Apr 6, 2020
1 parent 0490377 commit 0be5fdd
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 29 deletions.
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ cache:
directories:
- data/

python:
- "3.6"
- "3.7"
- "3.8"
jobs:
include:
- python: 3.6
- python: 3.7
- python: 3.8
- python: 3.9-dev
allow_failures:
- python: 3.9-dev

env:
- TEST=unit
Expand All @@ -19,10 +23,15 @@ env:
- TEST=lint
- TEST=typing

install:
- pip install --upgrade pip six
before_install:
- pip install --upgrade pip setuptools wheel
- pip install -r requirements.txt
- pip install -r requirements-test.txt

install:
- check-manifest
- python setup.py sdist bdist_wheel
- twine check dist/*
- pip install -e .[notebook,app,html]

script:
Expand Down
20 changes: 19 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Requirements
include requirements*.txt

# Include license, Readme, etc.
include LICENSE
include *.md

# Styles
include src/pandas_profiling/visualisation/*.mplstyle

# Templates and static resources
recursive-include src/pandas_profiling/report/presentation/flavours/html/templates *.html *.js *.css

# Configuration
include src/pandas_profiling/*.yaml
include README.md

# Exclude development, testing and example code
exclude .pre-commit-config.yaml
include Makefile make.bat
exclude docs examples tests
recursive-exclude docs *
recursive-exclude examples *
recursive-exclude tests *
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ test:
pytest --nbval tests/notebooks/
flake8 . --select=E9,F63,F7,F82 --show-source --statistics

pypi_package:
make install
check-manifest
python setup.py sdist bdist_wheel
twine check dist/*
twine upload --skip-existing dist/*

install:
pip install -e .

Expand Down
6 changes: 4 additions & 2 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ IF "%1" == "examples" (

IF "%1" == "pypi_package" (
make install
python setup.py sdist
twine upload dist/*
check-manifest
python setup.py sdist bdist_wheel
twine check dist/*
twine upload --skip-existing dist/*
ECHO "PyPi package completed"
GOTO end
)
Expand Down
6 changes: 4 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ pytest-mypy
pytest-cov
pytest-black
nbval
fastparquet==0.3.3
flake8
fastparquet>=0.3.3
flake8
check-manifest>=0.41
twine>=3.1.1
28 changes: 14 additions & 14 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
scipy>=1.4.1
pandas==0.25.3
matplotlib==3.1.3
confuse==1.0.0
jinja2==2.11.1
visions==0.2.3
pandas>=0.25.3
matplotlib>=3.1.3
confuse>=1.0.0
jinja2>=2.11.1
visions>=0.2.3
numpy>=1.16.0
statsmodels==0.11.1
statsmodels>=0.11.1
# Could be optional
# Related to HTML report
htmlmin==0.1.12
htmlmin>=0.1.12
# Missing values
missingno==0.4.2
missingno>=0.4.2
# Correlations
phik==0.9.10
phik>=0.9.10
# Dynamic histograms
astropy==4.0
astropy>=4.0
# Text analysis
tangled-up-in-unicode==0.0.4
tangled-up-in-unicode>=0.0.4
# Examples
requests==2.23.0
requests>=2.23.0
# Progress bar
tqdm==4.43.0
tqdm>=4.43.0
# Jupyter notebook
ipywidgets==7.5.1
ipywidgets>=7.5.1
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
with (source_root / "requirements.txt").open(encoding="utf8") as f:
requirements = f.readlines()

version = "2.5.3"
version = "2.5.4"

with (source_root / "src" / "pandas_profiling" / "version.py").open(
"w", encoding="utf-8"
Expand All @@ -37,8 +37,8 @@
python_requires=">=3.6",
install_requires=requirements,
extras_require={
"notebook": ["jupyter-client==6.0.0", "jupyter-core==4.6.3"],
"app": ["pyqt5==5.14.1"],
"notebook": ["jupyter-client>=6.0.0", "jupyter-core>=4.6.3"],
"app": ["pyqt5>=5.14.1"],
},
include_package_data=True,
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion src/pandas_profiling/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""This file is auto-generated by setup.py, please do not alter."""
__version__ = "2.5.3"
__version__ = "2.5.4"

0 comments on commit 0be5fdd

Please sign in to comment.