From 86ad4afc53745057e2b25e3290a515bfc909a21d Mon Sep 17 00:00:00 2001 From: JPI Date: Fri, 24 Nov 2023 10:53:56 +0100 Subject: [PATCH] Delete setup.py Setup.py is no longer needed, as we use pyproject isntead now. --- .dockerignore | 1 - setup.py | 70 -------------------------------------------- src/isar/__init__.py | 6 +--- 3 files changed, 1 insertion(+), 76 deletions(-) delete mode 100644 setup.py diff --git a/.dockerignore b/.dockerignore index aad49084..728c85a8 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,7 +2,6 @@ !src/isar !src/robot_interface !main.py -!setup.py !pyproject.toml !poetry.lock !LICENSE diff --git a/setup.py b/setup.py deleted file mode 100644 index f8aac5bd..00000000 --- a/setup.py +++ /dev/null @@ -1,70 +0,0 @@ -from setuptools import find_packages, setup - -setup( - name="isar", - description="Integration and Supervisory control of Autonomous Robots", - long_description=open("README.md").read(), - long_description_content_type="text/markdown", - author="Equinor ASA", - author_email="fg_robots_dev@equinor.com", - url="https://github.com/equinor/isar", - packages=find_packages(where="src"), - package_dir={"": "src"}, - package_data={ - "isar": [ - "config/logging.conf", - ] - }, - classifiers=[ - "Environment :: Other Environment", - "Intended Audience :: Developers", - "Intended Audience :: Science/Research", - "Programming Language :: Python", - "Topic :: Scientific/Engineering", - "Topic :: Scientific/Engineering :: Physics", - "Topic :: Software Development :: Libraries", - ], - include_package_data=True, - install_requires=[ - "alitra>=1.1.0", - "azure-identity", - "azure-keyvault-secrets", - "azure-storage-blob", - "backoff", - "click", - "dacite", - "fastapi-azure-auth", - "fastapi", - "injector", - "opencensus-ext-logging", - "opencensus-ext-requests", - "opencensus-ext-azure", - "numpy", - "paho-mqtt", - "pydantic", - "pydantic_settings", - "PyJWT", - "python-dotenv", - "PyYAML", - "requests-toolbelt", - "requests", - "transitions", - "uvicorn", - ], - extras_require={ - "dev": [ - "black", - "flake8", - "mypy", - "myst-parser", - "pre-commit", - "pytest-dotenv", - "pytest-mock", - "pytest-xdist", - "pytest", - "requests-mock", - "sphinx", - ] - }, - python_requires=">=3.10", -) diff --git a/src/isar/__init__.py b/src/isar/__init__.py index 9c967cac..abf4e117 100644 --- a/src/isar/__init__.py +++ b/src/isar/__init__.py @@ -1,6 +1,2 @@ -from pkg_resources import DistributionNotFound, get_distribution +__version__ = "1.16.8" -try: - __version__ = get_distribution(__name__).version -except DistributionNotFound: - pass # package is not installed