diff --git a/Makefile b/Makefile index 507bf0aa..6b57c00f 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ check_code_quality: flake8 $(check_dirs) --count --max-line-length=88 --exit-zero --ignore=D --extend-ignore=E203,E501,W503 --statistics publish: - python setup.py sdist bdist_wheel + poetry build twine upload -r testpypi dist/* -u ${PYPI_USERNAME} -p ${PYPI_TEST_PASSWORD} --verbose twine check dist/* twine upload dist/* -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} --verbose \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index d92917dd..45dfbf4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "supervision" -version = "0.11.0" +version = "0.11.1" description = "A set of easy-to-use utils that will come in handy in any Computer Vision project" authors = ["Piotr Skalski "] maintainers = ["Piotr Skalski "] diff --git a/setup.py b/setup.py deleted file mode 100644 index ac3add4f..00000000 --- a/setup.py +++ /dev/null @@ -1,71 +0,0 @@ -import setuptools -from setuptools import find_packages -import re -from pathlib import Path - -FILE = Path(__file__).resolve() -PARENT = FILE.parent # root directory -README = (PARENT / "README.md").read_text(encoding="utf-8") - - -def get_version(): - file = PARENT / 'supervision/__init__.py' - return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', file.read_text(encoding="utf-8"), re.M)[1] - - -setuptools.setup( - name='supervision', - version=get_version(), - author='Piotr Skalski', - author_email='piotr.skalski92@gmail.com', - license='MIT', - description='A set of easy-to-use utils that will come in handy in any Computer Vision project', - long_description=README, - long_description_content_type='text/markdown', - url='https://github.com/roboflow/supervision', - install_requires=[ - 'numpy>=1.20.0', - 'opencv-python', - 'matplotlib', - 'pyyaml' - ], - packages=find_packages(exclude=("tests",)), - extras_require={ - 'dev': [ - 'flake8', - 'black==22.3.0', - 'isort', - 'twine', - 'pytest', - 'wheel', - 'notebook', - 'mkdocs-material', - 'mkdocstrings[python]' - ], - }, - classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Intended Audience :: Education', - 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3 :: Only', - 'Topic :: Software Development', - 'Topic :: Scientific/Engineering', - "Topic :: Scientific/Engineering :: Artificial Intelligence", - "Topic :: Scientific/Engineering :: Image Recognition", - 'Typing :: Typed', - 'Operating System :: Microsoft :: Windows', - 'Operating System :: POSIX', - 'Operating System :: Unix', - 'Operating System :: MacOS' - ], - keywords="machine-learning, deep-learning, vision, ML, DL, AI, YOLOv5, YOLOv8, SAM, Roboflow", - python_requires='>=3.7', -)