Skip to content

Commit

Permalink
feat: support for python 3.12 (#1521)
Browse files Browse the repository at this point in the history
* feat: support for python 3.12

* chore(deps): update numba version

* fix: update wheel

* fix: update setup classifiers

* fix: test remove embed upgrades

* chore(deps): update upper bound for numpy and numba

* chore(deps): upgrade visions version

* chore(deps): update numpy and pandas for spark

* fix: spark and visions version conflict

* fix: remove comments and older test versions

---------

Co-authored-by: alexbarros <[email protected]>
  • Loading branch information
aquemy and alexbarros committed Mar 18, 2024
1 parent 8d428f2 commit 22ffd69
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 21 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:
python-version: 3.7.16
pandas: "pandas>1.1"
numpy: "numpy"
# - os: windows-2016
# python-version: 3.6
# pandas: "pandas>1.1"
# numpy: "numpy"
- os: ubuntu-22.04
python-version: 3.7.16
pandas: "pandas>1.1"
Expand All @@ -48,6 +44,10 @@ jobs:
python-version: "3.11"
pandas: "pandas>1.1"
numpy: "numpy"
- os: ubuntu-22.04
python-version: "3.12"
pandas: "pandas>1.1"
numpy: "numpy"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -158,22 +158,11 @@ jobs:
matrix:
os: [ ubuntu-22.04 ]
python-version: [3.7, 3.8]
pandas: ["pandas==0.25.3", "pandas==1.0.5", "pandas>1.1"]
spark: ["2.3.0", "2.4.7", "3.0.1"]
pandas: ["pandas>1.1"]
spark: ["3.0.1"]
hadoop: [ 2.7 ]
numpy: ["numpy"]
java_home: [ /usr/lib/jvm/java-8-openjdk-amd64 ]
exclude:
- python-version: 3.8
spark: "2.3.0"
- python-version: 3.8
spark: "2.4.7"
# - os: macos-latest
# python-version: 3.6
# pandas: ">1.1"
# - os: windows-2016
# python-version: 3.6
# pandas: ">1.1"

name: Tests Spark | python ${{ matrix.python-version }}, ${{ matrix.os }}, spark${{ matrix.spark }}, ${{ matrix.pandas }}, ${{ matrix.numpy }}
env:
Expand Down
2 changes: 2 additions & 0 deletions requirements-spark.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ pyspark>=2.3.0
pyarrow>=2.0.0
pandas>1.1, <2, !=1.4.0
numpy>=1.16.0,<1.24
visions[type_image_path]==0.7.5

6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ matplotlib>=3.2, <3.9
pydantic>=2
PyYAML>=5.0.0, <6.1
jinja2>=2.11.1, <3.2
visions[type_image_path]==0.7.5
numpy>=1.16.0,<1.26
visions[type_image_path]>=0.7.5, <0.7.7
numpy>=1.16.0, <2
# Could be optional
# Related to HTML report
htmlmin==0.1.12
Expand All @@ -24,4 +24,4 @@ typeguard>=4.1.2, <5
imagehash==4.3.1
wordcloud>=1.9.1
dacite>=1.8
numba>=0.56.0,<0.59.0
numba>=0.56.0, <1
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
url="https://github.com/ydataai/ydata-profiling",
license="MIT",
description="Generate profile report for pandas DataFrame",
python_requires=">=3.7, <3.12",
python_requires=">=3.7, <3.13",
install_requires=requirements,
extras_require={
"notebook": [
Expand Down Expand Up @@ -63,6 +63,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords="pandas data-science data-analysis python jupyter ipython",
long_description=long_description,
Expand Down

0 comments on commit 22ffd69

Please sign in to comment.