Skip to content

Commit

Permalink
Rm support for Python=3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
siboehm committed Nov 21, 2021
1 parent 6e211e5 commit 3100582
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ python -m pip install --no-use-pep517 --no-deps --disable-pip-version-check -e .
pytest -v tests

# Check documentation build only in one job, also do releases
if [ "${PYTHON_VERSION}" = "3.6" ]; then
if [ "${PYTHON_VERSION}" = "3.7" ]; then
pushd docs
make html
popd
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@ jobs:
with:
path: ./.hypothesis
key: hypothesisDB ${{ matrix.PYTHON_VERSION }}
- if: matrix.PYTHON_VERSION == '3.6'
shell: bash -x -l {0}
run: pip install dataclasses
- name: Run the unittests
shell: bash -x -l {0}
run: ./.github/ci.sh ${{ matrix.PYTHON_VERSION }}
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.PYTHON_VERSION == '3.6'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.PYTHON_VERSION == '3.7'
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- nodefaults
dependencies:
# runtime deps
- python>=3.6
- python>=3.7
- llvmlite>=0.36
- numpy
# testing
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
description="LLVM-based compiler for LightGBM models",
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.6",
install_requires=["llvmlite>=0.36", "numpy", "dataclasses; python_version < '3.7'"],
python_requires=">=3.7",
install_requires=["llvmlite>=0.36", "numpy"],
)

0 comments on commit 3100582

Please sign in to comment.