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
INDEX_URL = 'https://pypi-int.prozorro.sale/'
requirements = [
'aiohttp',
'ipaddress',
'cryptography',
'prozorro-aiohttp-swagger',
'prozorro-tools',
'PyYAML',
'PyJWT',
'uvloop'
]
# 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.append(f'{INDEX_URL}{package}')
dependency_links = [
'https://pypi-int.prozorro.sale/prozorro-aiohttp-swagger',
'https://pypi-int.prozorro.sale/prozorro-tools'
]
setup(
name='prozorro-auth',
......
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