From 07c3c1e1357dfd87ff424a8a31315108ce3ec49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Piotr=20Przeradowski?= Date: Thu, 22 Feb 2024 17:13:01 +0100 Subject: [PATCH] Remove setup.py (#679) --- Dockerfile | 1 - setup.py | 60 ------------------------------------------------------ 2 files changed, 61 deletions(-) delete mode 100644 setup.py diff --git a/Dockerfile b/Dockerfile index 655b82088..1599057af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,7 +57,6 @@ RUN python3 -m pip install pip==23.3.1 virtualenv==20.17.1 && \ python3 -m virtualenv /opt/venv && \ /opt/venv/bin/python3 -m pip install setuptools==67.4.0 && \ /opt/venv/bin/python3 -m pip install --no-deps -r requirements/prod.txt -r requirements/test.txt && \ - /opt/venv/bin/python3 -m pip install -e . && \ /opt/venv/bin/python3 -m pip check RUN ln -s /opt/app/bin/wait-for-it.sh /opt/venv/bin/ diff --git a/setup.py b/setup.py deleted file mode 100644 index 541a73512..000000000 --- a/setup.py +++ /dev/null @@ -1,60 +0,0 @@ -import glob -import os -import re - -from setuptools import find_packages, setup - -# approach stolen from sqlalchemy -with open( - os.path.join(os.path.dirname(__file__), "inbox", "__init__.py") -) as version_file: - VERSION = ( - re.compile(r""".*VERSION = ["'](.*?)['"]""", re.S) - .match(version_file.read()) - .group(1) - ) - - -setup( - name="inbox-sync", - version=VERSION, - packages=find_packages(), - install_requires=[], - include_package_data=True, - package_data={ - # "inbox-sync": ["alembic.ini"], - # If any package contains *.txt or *.rst files, include them: - # '': ['*.txt', '*.rst'], - # And include any *.msg files found in the 'hello' package, too: - # 'hello': ['*.msg'], - }, - data_files=[ - ("sync-engine-test-config", glob.glob("etc/*test*")), - ("alembic-inbox-sync", ["alembic.ini"]), - ( - "alembic-inbox-sync/migrations", - filter(os.path.isfile, glob.glob("migrations/*")), - ), - ( - "alembic-inbox-sync/migrations/versions", - filter(os.path.isfile, glob.glob("migrations/versions/*")), - ), - ], - scripts=[ - "bin/inbox-start", - "bin/inbox-api", - "bin/syncback-service", - "bin/purge-transaction-log", - "bin/delete-marked-accounts", - ], - # See: - # https://pythonhosted.org/setuptools/setuptools.html#dynamic-discovery-of-services-and-plugins - # https://pythonhosted.org/setuptools/pkg_resources.html#entry-points - zip_safe=False, - author="Nylas Team", - author_email="support@nylas.com", - description="The Nylas Sync Engine", - license="AGPLv3", - keywords="nylas", - url="https://www.nylas.com", -)