Compare commits
2 commits
fb99eefe40
...
52d92da907
Author | SHA1 | Date | |
---|---|---|---|
52d92da907 | |||
88cc18de92 |
7 changed files with 7 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2017, 2020 Fabio Manganiello
|
||||
Copyright (c) 2017, 2024 Fabio Manganiello
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -7,7 +7,7 @@ WORKDIR /var/lib/platypush
|
|||
RUN --mount=type=bind,source=.,target=/curdir \
|
||||
apk update && \
|
||||
# If the current directory is the Platypush repository, then we can copy the existing files \
|
||||
if grep 'name="platypush"' /curdir/setup.py >/dev/null 2>&1; \
|
||||
if grep 'name="platypush"' /curdir/pyproject.toml >/dev/null 2>&1; \
|
||||
then \
|
||||
cp -r /curdir /install; \
|
||||
# Otherwise, we need to clone the repository \
|
||||
|
|
|
@ -10,7 +10,7 @@ ENV DOCKER_CTX=1
|
|||
RUN --mount=type=bind,source=.,target=/curdir \
|
||||
apt update && \
|
||||
# If the current directory is the Platypush repository, then we can copy the existing files \
|
||||
if grep 'name="platypush"' /curdir/setup.py >/dev/null 2>&1; \
|
||||
if grep 'name="platypush"' /curdir/pyproject.toml >/dev/null 2>&1; \
|
||||
then \
|
||||
cp -r /curdir /install; \
|
||||
# Otherwise, we need to clone the repository \
|
||||
|
|
|
@ -7,7 +7,7 @@ ENV DOCKER_CTX=1
|
|||
|
||||
RUN --mount=type=bind,source=.,target=/curdir \
|
||||
# If the current directory is the Platypush repository, then we can copy the existing files \
|
||||
if grep 'name="platypush"' /curdir/setup.py >/dev/null 2>&1; \
|
||||
if grep 'name="platypush"' /curdir/pyproject.toml >/dev/null 2>&1; \
|
||||
then \
|
||||
cp -r /curdir /install; \
|
||||
# Otherwise, we need to clone the repository \
|
||||
|
|
|
@ -10,7 +10,7 @@ ENV DOCKER_CTX=1
|
|||
RUN --mount=type=bind,source=.,target=/curdir \
|
||||
apt update && \
|
||||
# If the current directory is the Platypush repository, then we can copy the existing files \
|
||||
if grep 'name="platypush"' /curdir/setup.py >/dev/null 2>&1; \
|
||||
if grep 'name="platypush"' /curdir/pyproject.toml >/dev/null 2>&1; \
|
||||
then \
|
||||
cp -r /curdir /install; \
|
||||
# Otherwise, we need to clone the repository \
|
||||
|
|
|
@ -91,8 +91,7 @@ class VenvBuilder(BaseBuilder):
|
|||
Otherwise, the source directory will be cloned from git into a
|
||||
temporary folder.
|
||||
"""
|
||||
setup_py_path = os.path.join(os.getcwd(), 'setup.py')
|
||||
if os.path.isfile(setup_py_path):
|
||||
if os.path.isfile(os.path.join(os.getcwd(), 'pyproject.toml')):
|
||||
logger.info('Using local checkout of the Platypush source code')
|
||||
yield os.getcwd()
|
||||
else:
|
||||
|
|
2
setup.py
2
setup.py
|
@ -17,7 +17,7 @@ def parse_deps(deps):
|
|||
ret = []
|
||||
for dep in deps:
|
||||
if dep.startswith('git+'):
|
||||
continue # Don't include git dependencies in the setup.py, or Twine will complain
|
||||
continue # Don't include git dependencies in pip, or Twine will complain
|
||||
|
||||
ret.append(dep)
|
||||
|
||||
|
|
Loading…
Reference in a new issue