Skip to content

Commit

Permalink
use poetry to replace setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hynn01 committed Feb 8, 2022
1 parent 7ca415d commit d778396
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 33 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
# pip install -e .
# curl -sSL https://install.python-poetry.org | python3 -
pip install poetry
poetry install
- name: Run tests
run: |
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,7 @@ dmypy.json
.DS_Store

# Hugo
docs/gh-pages/public
docs/gh-pages/public

# poetry
poetry.lock
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,48 @@ exclude = '''

[tool.isort]
skip = 'scripts'

[tool.poetry]
name = "dslinter"
version = "1.1.0"
description = "`dslinter` is a pylint plugin for linting data science and machine learning code. We plan to support the following Python libraries: TensorFlow, PyTorch, Scikit-Learn, Pandas, NumPy and SciPy."

license = "GPL-3.0 License"

authors = [
"Mark Haakman",
"Haiyin Zhang",
"Daoyao Wang",
"Chadha Degachi"
]

readme = "README.md" # Markdown files are supported

repository = "https://github.com/Hynn01/dslinter"
homepage = "https://pypi.org/project/dslinter/"

keywords = ["machine learning", "software engineering"]

[tool.poetry.dependencies]
python = "^3.7" # Compatible python versions must be declared here
toml = "^0.9"
# Dependencies with extras
# requests = { version = "^2.13", extras = [ "security" ] }
# Python specific dependencies with prereleases allowed
# pathlib2 = { version = "^2.2", allow-prereleases = true }
# Git dependencies
# cleo = { git = "https://github.com/sdispater/cleo.git", branch = "master" }
# Optional dependencies (extras)
# pendulum = { version = "^1.4", optional = true }
pylint = { version = "2.12.2" }
astroid = { version = "2.9.3" }
mypy = { version = "0.931" }
data-science-types = { version = "0.2.23" }
pyspark-stubs = {version = "3.0.0.post3" }

[tool.poetry.dev-dependencies]
pytest = "^3.0"
pytest-cov = "^2.4"

# [tool.poetry.scripts]
# my-script = "my_package:main"
31 changes: 0 additions & 31 deletions setup.py

This file was deleted.

0 comments on commit d778396

Please sign in to comment.