bump pyversions (#116)

pull/115/head
Laurel Orr 5 months ago committed by GitHub
parent 533624f4fe
commit a657bdd2c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10"] python-version: ["3.10", "3.11"]
services: services:
# Label used to access the service container # Label used to access the service container
redis: redis:

@ -9,7 +9,7 @@ repos:
- id: check-merge-conflict - id: check-merge-conflict
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/timothycrosley/isort - repo: https://github.com/timothycrosley/isort
rev: 5.9.3 rev: 5.13.2
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/psf/black - repo: https://github.com/psf/black

@ -1,20 +1,16 @@
dev: dev:
pip install -e .[all] pip install -e .[all]
pip install -e git+https://github.com/microsoft/DeepSpeed.git#egg=deepspeed
pre-commit install pre-commit install
test: dev check test: dev check
pytest tests pytest tests
deepspeed:
pip install -e git+https://github.com/microsoft/DeepSpeed.git#egg=deepspeed
format: format:
isort --atomic manifest/ tests/ web_app/ isort --atomic manifest/ tests/ web_app/
black manifest/ tests/ web_app/ black manifest/ tests/ web_app/
check: check:
isort -c manifest/ tests/ web_app/ isort -c -v manifest/ tests/ web_app/
black manifest/ tests/ web_app/ --check black manifest/ tests/ web_app/ --check
flake8 manifest/ tests/ web_app/ flake8 manifest/ tests/ web_app/
mypy manifest/ tests/ web_app/ mypy manifest/ tests/ web_app/

@ -3,6 +3,7 @@ import json
from pathlib import Path from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple, Union, cast from typing import Any, Dict, List, Optional, Tuple, Union, cast
import deepspeed
import numpy as np import numpy as np
import PIL import PIL
import torch import torch
@ -26,7 +27,6 @@ from transformers import (
PreTrainedTokenizer, PreTrainedTokenizer,
) )
import deepspeed
from manifest.api.models.model import Model from manifest.api.models.model import Model
MODEL_REGISTRY = { MODEL_REGISTRY = {

@ -28,6 +28,23 @@ combine_as_imports = true
force_grid_wrap = 0 force_grid_wrap = 0
include_trailing_comma = true include_trailing_comma = true
known_first_party = ["manifest"] known_first_party = ["manifest"]
known_third_party = [
"accelerate",
"accelerate.utils.modeling",
"deepspeed",
"diffusers",
"dill",
"flask",
"numpy",
"pyChatGPT",
"torch",
"transformers",
"tqdm",
"tqdm.asyncio",
"sentence_transformers",
"sqlalchemy",
"sqlitedict",
]
line_length = 88 line_length = 88
multi_line_output = 3 multi_line_output = 3

@ -23,7 +23,7 @@ DESCRIPTION = "Manifest for Prompting Foundation Models."
URL = "https://github.com/HazyResearch/manifest" URL = "https://github.com/HazyResearch/manifest"
EMAIL = "laurel.orr@numbersstation.ai" EMAIL = "laurel.orr@numbersstation.ai"
AUTHOR = "Laurel Orr" AUTHOR = "Laurel Orr"
REQUIRES_PYTHON = ">=3.8.0" REQUIRES_PYTHON = ">=3.10.0"
VERSION = main_ns["__version__"] VERSION = main_ns["__version__"]
# What packages are required for this module to be executed? # What packages are required for this module to be executed?
@ -43,12 +43,12 @@ REQUIRED = [
EXTRAS = { EXTRAS = {
"api": [ "api": [
"accelerate>=0.10.0", "accelerate>=0.10.0",
"deepspeed>=0.7.0", "deepspeed>=0.10.0",
"diffusers>=0.6.0", "diffusers>=0.6.0",
"Flask>=2.1.2", "Flask>=2.1.2",
"sentence_transformers>=2.2.0", "sentence_transformers>=2.2.0",
"torch>=1.8.0", "torch>=1.8.0",
"transformers>=4.29.0,<4.31.0", "transformers>=4.29.0",
"tokenizers>=0.13.3", "tokenizers>=0.13.3",
], ],
"app": [ "app": [
@ -66,7 +66,7 @@ EXTRAS = {
"dev": [ "dev": [
"autopep8>=1.6.0", "autopep8>=1.6.0",
"black>=22.3.0", "black>=22.3.0",
"isort>=5.9.3", "isort>=5.13.2",
"flake8>=4.0.0", "flake8>=4.0.0",
"flake8-docstrings>=1.6.0", "flake8-docstrings>=1.6.0",
"mypy>=0.950", "mypy>=0.950",

Loading…
Cancel
Save