forked from platypush/platypush
Replaced remaining setup.py references in the code with pyproject.toml.
This commit is contained in:
parent
fb99eefe40
commit
88cc18de92
6 changed files with 6 additions and 7 deletions
|
@ -7,7 +7,7 @@ WORKDIR /var/lib/platypush
|
||||||
RUN --mount=type=bind,source=.,target=/curdir \
|
RUN --mount=type=bind,source=.,target=/curdir \
|
||||||
apk update && \
|
apk update && \
|
||||||
# If the current directory is the Platypush repository, then we can copy the existing files \
|
# 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 \
|
then \
|
||||||
cp -r /curdir /install; \
|
cp -r /curdir /install; \
|
||||||
# Otherwise, we need to clone the repository \
|
# Otherwise, we need to clone the repository \
|
||||||
|
|
|
@ -10,7 +10,7 @@ ENV DOCKER_CTX=1
|
||||||
RUN --mount=type=bind,source=.,target=/curdir \
|
RUN --mount=type=bind,source=.,target=/curdir \
|
||||||
apt update && \
|
apt update && \
|
||||||
# If the current directory is the Platypush repository, then we can copy the existing files \
|
# 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 \
|
then \
|
||||||
cp -r /curdir /install; \
|
cp -r /curdir /install; \
|
||||||
# Otherwise, we need to clone the repository \
|
# Otherwise, we need to clone the repository \
|
||||||
|
|
|
@ -7,7 +7,7 @@ ENV DOCKER_CTX=1
|
||||||
|
|
||||||
RUN --mount=type=bind,source=.,target=/curdir \
|
RUN --mount=type=bind,source=.,target=/curdir \
|
||||||
# If the current directory is the Platypush repository, then we can copy the existing files \
|
# 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 \
|
then \
|
||||||
cp -r /curdir /install; \
|
cp -r /curdir /install; \
|
||||||
# Otherwise, we need to clone the repository \
|
# Otherwise, we need to clone the repository \
|
||||||
|
|
|
@ -10,7 +10,7 @@ ENV DOCKER_CTX=1
|
||||||
RUN --mount=type=bind,source=.,target=/curdir \
|
RUN --mount=type=bind,source=.,target=/curdir \
|
||||||
apt update && \
|
apt update && \
|
||||||
# If the current directory is the Platypush repository, then we can copy the existing files \
|
# 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 \
|
then \
|
||||||
cp -r /curdir /install; \
|
cp -r /curdir /install; \
|
||||||
# Otherwise, we need to clone the repository \
|
# 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
|
Otherwise, the source directory will be cloned from git into a
|
||||||
temporary folder.
|
temporary folder.
|
||||||
"""
|
"""
|
||||||
setup_py_path = os.path.join(os.getcwd(), 'setup.py')
|
if os.path.isfile(os.path.join(os.getcwd(), 'pyproject.toml')):
|
||||||
if os.path.isfile(setup_py_path):
|
|
||||||
logger.info('Using local checkout of the Platypush source code')
|
logger.info('Using local checkout of the Platypush source code')
|
||||||
yield os.getcwd()
|
yield os.getcwd()
|
||||||
else:
|
else:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -17,7 +17,7 @@ def parse_deps(deps):
|
||||||
ret = []
|
ret = []
|
||||||
for dep in deps:
|
for dep in deps:
|
||||||
if dep.startswith('git+'):
|
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)
|
ret.append(dep)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue