Skip to content

Commit

Permalink
update setup configs (#51)
Browse files Browse the repository at this point in the history
* update setup configs

* upgrade build tools
  • Loading branch information
thededlier committed May 31, 2023
1 parent d53d3da commit de8d25d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install .
Expand All @@ -37,8 +37,8 @@ jobs:
- name: Install package publish dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python -m pip install --upgrade pip setuptools wheel
pip install twine
- name: Build and publish
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install .
- name: Test package
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
requires = [
"setuptools",
"wheel",
"hyperopt>=0.2.5",
"hyperopt>=0.2.7",
"numpy",
"scikit-learn>=0.23.0",
"scikit-learn>=1.2.2",
"scikit-surprise",
"rich"
]
18 changes: 3 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
"""
When updating version
- Update version and download URL here
- Update release version in Docs configuration
"""

import setuptools

install_requires = [
"hyperopt>=0.2.5",
"numpy",
"scikit-learn>=0.23.0",
"scikit-surprise",
"rich"
]
with open("requirements.txt", "r") as fh:
install_requires =[line.strip() for line in fh.read().split("\n")]

with open("README.md", "r") as fh:
long_description = fh.read()
Expand All @@ -29,7 +17,7 @@
description="A python package that automates algorithm selection and hyperparameter tuning for the recommender system library Surprise",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/BeelGroup/Auto-Surprise",
url="https://github.com/ISG-Siegen/Auto-Surprise",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit de8d25d

Please sign in to comment.