mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge remote-tracking branch 'inventree/master'
This commit is contained in:
commit
2024967b9b
5
.github/workflows/docker.yaml
vendored
5
.github/workflows/docker.yaml
vendored
@ -21,10 +21,6 @@ on:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
|
||||
# Build the docker image
|
||||
@ -58,6 +54,7 @@ jobs:
|
||||
docker-compose run inventree-dev-server invoke update
|
||||
docker-compose run inventree-dev-server invoke setup-dev
|
||||
docker-compose up -d
|
||||
docker-compose run inventree-dev-server pip install --upgrade setuptools
|
||||
docker-compose run inventree-dev-server invoke wait
|
||||
- name: Check Data Directory
|
||||
# The following file structure should have been created by the docker image
|
||||
|
@ -59,13 +59,6 @@ def get_config_file(create=True) -> Path:
|
||||
def load_config_data() -> map:
|
||||
"""Load configuration data from the config file."""
|
||||
|
||||
import sys
|
||||
|
||||
print("load_config_data()")
|
||||
print("- cwd:", os.getcwd())
|
||||
print("- exe:", sys.executable)
|
||||
print("- path:", sys.path)
|
||||
|
||||
import yaml
|
||||
|
||||
cfg_file = get_config_file()
|
||||
|
@ -33,13 +33,13 @@ TESTING = 'test' in sys.argv
|
||||
|
||||
# Note: The following fix is "required" for docker build workflow
|
||||
# Note: 2022-12-12 still unsure why...
|
||||
if TESTING:
|
||||
if TESTING and os.getenv('INVENTREE_DOCKER'):
|
||||
# Ensure that sys.path includes global python libs
|
||||
python_dir = os.path.dirname(sys.executable)
|
||||
python_lib = os.path.join(python_dir, "lib", "site-packages")
|
||||
site_packages = '/usr/local/lib/python3.9/site-packages'
|
||||
|
||||
if python_lib not in sys.path:
|
||||
sys.path.append(python_lib)
|
||||
if site_packages not in sys.path:
|
||||
print("Adding missing site-packages path:", site_packages)
|
||||
sys.path.append(site_packages)
|
||||
|
||||
# Are environment variables manipulated by tests? Needs to be set by testing code
|
||||
TESTING_ENV = False
|
||||
|
@ -13,7 +13,7 @@ import common.models
|
||||
from InvenTree.api_version import INVENTREE_API_VERSION
|
||||
|
||||
# InvenTree software version
|
||||
INVENTREE_SW_VERSION = "0.9.0 dev"
|
||||
INVENTREE_SW_VERSION = "0.10.0 dev"
|
||||
|
||||
|
||||
def inventreeInstanceName():
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -527,6 +527,9 @@ class PartScheduling(RetrieveAPI):
|
||||
|
||||
quantity = max(line.quantity - line.received, 0)
|
||||
|
||||
# Multiply by the pack_size of the SupplierPart
|
||||
quantity *= line.part.pack_size
|
||||
|
||||
add_schedule_entry(
|
||||
target_date,
|
||||
quantity,
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
# Set DEBUG to True for a development setup
|
||||
INVENTREE_DEBUG=True
|
||||
INVENTREE_DEBUG_LEVEL=INFO
|
||||
INVENTREE_LOG_LEVEL=INFO
|
||||
|
||||
# Database configuration options
|
||||
# Note: The example setup is for a PostgreSQL database (change as required)
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Basic package requirements
|
||||
invoke>=1.4.0 # Invoke build tool
|
||||
pyyaml>=6.0
|
||||
setuptools==60.0.5
|
||||
setuptools==65.6.3
|
||||
wheel>=0.37.0
|
||||
|
||||
# Database links
|
||||
|
Loading…
Reference in New Issue
Block a user