Skip to content

Commit

Permalink
drop 3.7
Browse files Browse the repository at this point in the history
This closes #37.
  • Loading branch information
HuangXingBo committed Sep 12, 2023
1 parent f9eb8c3 commit e850dcb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.11
- name: Get build dependencies
working-directory: ./dev
run: python -m pip install -r dev-requirements.txt
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
matrix:
buildplat:
- [macos-latest, macosx_*]
python: ["cp37", "cp38", "cp39", "cp310", "cp311"]
python: ["cp38", "cp39", "cp310", "cp311"]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/java_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
matrix:
os: ['macos-latest', 'ubuntu-20.04']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Prerequisites for building PemJa:
* Git
* Maven (we recommend version 3.2.5 and require at least 3.1.1)
* Java 8 or 11 (Java 9 or 10 may work)
* Python >= 3.7 (we recommend version 3.7, 3.8, 3.9)
* Python >= 3.8 (we recommend version 3.8, 3.9, 3.10, 3.11)

```
git clone https://github.com/alibaba/pemja.git
Expand Down
2 changes: 1 addition & 1 deletion dev/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -e -x
dev/lint-python.sh -s py_env

PY_ENV_DIR=`pwd`/dev/.conda/envs
py_env=("3.7" "3.8" "3.9" "3.10" "3.11")
py_env=("3.8" "3.9" "3.10" "3.11")
## 2. install dependency
for ((i=0;i<${#py_env[@]};i++)) do
if [[ "$(uname)" != "Darwin" ]]; then
Expand Down
6 changes: 3 additions & 3 deletions dev/lint-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function install_miniconda() {
# Install some kinds of py env.
function install_py_env() {
py_env=("3.7" "3.8" "3.9" "3.10" "3.11")
py_env=("3.8" "3.9" "3.10" "3.11")
for ((i=0;i<${#py_env[@]};i++)) do
if [[ -d "$CURRENT_DIR/.conda/envs/${py_env[i]}" ]]; then
rm -rf "$CURRENT_DIR/.conda/envs/${py_env[i]}"
Expand Down Expand Up @@ -391,7 +391,7 @@ function install_environment() {
print_function "STEP" "install miniconda... [SUCCESS]"

# step-3 install python environment which includes
# 3.7 3.8 3.9 3.10 3.11
# 3.8 3.9 3.10 3.11
if [[ ${STEP} -lt 3 ]] && [[ `need_install_component "py_env"` = true ]]; then
print_function "STEP" "installing python environment..."
install_py_env
Expand Down Expand Up @@ -585,7 +585,7 @@ usage: $0 [options]
so do not use this option with -e,-i simultaneously.
Examples:
./lint-python -s basic => install environment with basic components.
./lint-python -s py_env => install environment with python env(3.7,3.8,3.9,3.10,3.11).
./lint-python -s py_env => install environment with python env(3.8,3.9,3.10,3.11).
./lint-python -s all => install environment with all components such as python env,tox,flake8,sphinx,mypy etc.
./lint-python -s tox,flake8 => install environment with tox,flake8.
./lint-python -s tox -f => reinstall environment with tox.
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ requires = [
"packaging==20.5; platform_machine=='arm64'", # macos M1
"setuptools==59.2.0",
"wheel==0.37.0",
"numpy==1.21.4"
]

[tool.cibuildwheel.macos]
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from setuptools import setup, Extension

if sys.version_info < (3, 7):
if sys.version_info < (3, 8):
print('Python versions prior to 3.7 are not supported for PemJa.',
file=sys.stderr)
sys.exit(-1)
Expand Down Expand Up @@ -194,7 +194,7 @@ def build_extension(self, ext):
author='Apache Software Foundation',
license='https://www.apache.org/licenses/LICENSE-2.0',
author_email='hxbks2ks@gmail.com',
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=['find-libpython'],
cmdclass={'build_ext': build_ext},
description='PemJa',
Expand All @@ -204,7 +204,6 @@ def build_extension(self, ext):
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
Expand Down

0 comments on commit e850dcb

Please sign in to comment.