Commit c0f008ed authored by dmitry.mashoshin's avatar dmitry.mashoshin
Browse files

Merge branch 'zamirets/18/remove-frozen-versions-from-setup' into 'master'

build: Remove frozen versions of packages from setup

See merge request !59
parents 222d188a 53729a6c
......@@ -7,6 +7,7 @@ COPY Pipfile .
COPY Pipfile.lock .
RUN pip install --upgrade pipenv
RUN pipenv install --system --deploy
RUN pip list
FROM prod_base as prod
COPY src/ .
......@@ -22,5 +23,6 @@ COPY .coveragerc .coveragerc
FROM prod as local
RUN pipenv install --dev --system --deploy
RUN pip list
FROM prod
import os
import json
from setuptools import find_packages, setup
requirements = [
# TODO: filter only required packages not all for setup
with open(os.path.join(os.path.dirname(__file__), 'Pipfile.lock')) as pip_file:
pipfile_json = json.load(pip_file)
requirements, dependency_links = list(), list()
for package, detail in pipfile_json['default'].items():
requirements.append(f"{package}{detail.get('version', '')}")
if detail.get('index'):
dependency_links = [
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment