Skip to content

Commit

Permalink
Merge pull request #11171 from archesproject/dev/7.6.x
Browse files Browse the repository at this point in the history
Update with latest from 7.6
  • Loading branch information
jacobtylerwalls authored Jul 12, 2024
2 parents dd6863b + c68c1d0 commit c6b043a
Show file tree
Hide file tree
Showing 518 changed files with 223,821 additions and 46,443 deletions.
6 changes: 0 additions & 6 deletions .eggs/README.txt

This file was deleted.

10 changes: 10 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Normalize line endings
3fe93f1e11e517e06884c7a10591fa99074cb0fe
# Reformat python code with black (2024)
6d519d00e752448362b880b73c3641a562ee9ee3
eea27d316c5ff975556e15ccd4c11d7c393dd95c
8de09526329685ee4d80c816c3475a66b19d46e9
9740c846eda0cc067f49d7abffdcb1a93fe3e0a9
eff6710e8b44faef5a628b0ea1373cd99cb47e9e
# Relevant subset of git log --grep black
9b7e30d4499cb02dec6d17c7c99f9a7087fcdd47
b959f1139a1d789e6c116d43d8be7daa0baa6075
9a0a8789635af909dbef7edc4bb3f7e1b6d68bc4
Expand Down Expand Up @@ -26,6 +35,7 @@ a6027f6485abf8da610ffa6b41e890da361f359a
389d8c846b011a04a22a000f1cc914c4e8987a90
6ed0767170ff67764a2e676971541ef1e83010d6
c7d4eb120f13eee2d9f9708e203387a875663110
# git log --grep 'Fixing style errors.'
5df93c451e4123b96b1e32b79e60b97db9d6fad1
60d32a3f795e5e3eff67979c3239c84d7c0c7eaa
0af36402f86f2b6d6a70238d85ae290c5201ba17
Expand Down
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Known binary formats
*.png binary
*.jpg binary
*.ico binary
*.gif binary
*.ttf binary
*.woff binary
*.woff2 binary
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ jobs:
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install .
pip install -r ${{ github.event.repository.name }}/install/requirements.txt
pip install -r ${{ github.event.repository.name }}/install/requirements_dev.txt
pip install '.[dev]'
echo Python packages installed
- uses: ankane/setup-elasticsearch@v1
Expand All @@ -61,6 +59,18 @@ jobs:
echo "package.json not found, skipping npm commands."
fi
- name: Check frontend formatting with prettier
run: |
npm run prettier:check
- name: Check backend formatting with black
run: |
black . --check --exclude=node_modules
- name: Check line endings
run: |
! git ls-files --eol | grep 'w/crlf\|w/mixed'
- name: Run frontend tests
run: |
npm run vitest
Expand Down Expand Up @@ -136,9 +146,7 @@ jobs:
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install .
pip install -r ${{ github.event.repository.name }}/install/requirements.txt
pip install -r ${{ github.event.repository.name }}/install/requirements_dev.txt
pip install '.[dev]'
echo Python packages installed
- uses: ankane/setup-elasticsearch@v1
Expand Down
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
repos:

- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: [--quiet]
exclude: node_modules

- repo: local
hooks:
- id: prettier
name: prettier
entry: npm run prettier:fix
language: system
files: arches/app/src
- id: eslint
name: eslint
entry: npm run eslint:fix
language: system
files: arches/app/src
- id: typescript
name: typescript
entry: npm run ts:check
language: system
types: [
"ts",
"vue",
]
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleAttributePerLine": true
}
116 changes: 0 additions & 116 deletions .travis.yml

This file was deleted.

14 changes: 2 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ FROM base as wheelbuilder

WORKDIR ${WHEELS}

# Install pip requirements files
COPY ./arches/install/requirements.txt ${WHEELS}/requirements.txt
COPY ./arches/install/requirements_dev.txt ${WHEELS}/requirements_dev.txt

# Install packages required to build the python libs, then remove them
RUN set -ex \
&& BUILD_DEPS=" \
Expand All @@ -42,9 +38,7 @@ RUN set -ex \
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python3.8 get-pip.py

RUN pip3 wheel --no-cache-dir -b /tmp -r ${WHEELS}/requirements.txt \
&& pip3 wheel --no-cache-dir -b /tmp -r ${WHEELS}/requirements_dev.txt \
&& pip3 wheel --no-cache-dir -b /tmp gunicorn \
RUN pip3 wheel --no-cache-dir -b /tmp gunicorn \
&& pip3 wheel --no-cache-dir -b /tmp django-auth-ldap

# Add Docker-related files
Expand Down Expand Up @@ -100,10 +94,6 @@ RUN python3.8 -m venv ENV \
&& pip install requests \
&& pip install -f ${WHEELS} django-auth-ldap \
&& pip install -f ${WHEELS} gunicorn \
&& pip install -r ${WHEELS}/requirements.txt \
-f ${WHEELS} \
&& pip install -r ${WHEELS}/requirements_dev.txt \
-f ${WHEELS} \
&& rm -rf ${WHEELS} \
&& rm -rf /root/.cache/pip/*

Expand All @@ -115,7 +105,7 @@ COPY . ${ARCHES_ROOT}
WORKDIR ${ARCHES_ROOT}

RUN . ../ENV/bin/activate \
&& pip install -e . --no-binary :all:
&& pip install -e '.[dev]' --no-binary :all:

# Set default workdir
WORKDIR ${ARCHES_ROOT}
Expand Down
52 changes: 28 additions & 24 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
recursive-include arches *
include README.md
exclude Dockerfile
exclude arches/logs/*.txt
exclude arches/settings_local.py
exclude .*
exclude *.yml
recursive-exclude .eggs *
recursive-exclude .github *
recursive-exclude .idea *
recursive-exclude docker *
recursive-exclude tests *
recursive-exclude docs *
recursive-exclude virtualenv *
recursive-exclude arches/elasticsearch *
recursive-exclude arches/uploadedfiles *
recursive-exclude arches/tileserver *
recursive-exclude arches/app/media/packages *
recursive-exclude arches/app/media/js/docs *
global-exclude *.log
global-exclude *.pyc
global-exclude *.zip
global-exclude *.DS_Store
global-exclude *.orig
recursive-include arches *
include README.md
exclude Dockerfile
exclude manage.py
exclude arches/logs/*.txt
exclude arches/settings_local.py
exclude .*
exclude *.yml
recursive-exclude .eggs *
recursive-exclude .github *
recursive-exclude .idea *
recursive-exclude contributing *
recursive-exclude cypress *
recursive-exclude docker *
recursive-exclude node_modules *
recursive-exclude releases *
recursive-exclude tests *
recursive-exclude docs *
recursive-exclude virtualenv *
recursive-exclude webpack *
recursive-exclude arches/uploadedfiles *
recursive-exclude arches/staticfiles *
recursive-exclude arches/app/media/build *
global-exclude *.log
global-exclude *.pyc
global-exclude *.zip
global-exclude *.DS_Store
global-exclude *.orig
5 changes: 3 additions & 2 deletions arches/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import
from arches.setup import get_version
from arches.version import get_version

try:
# This will make sure the app is always imported when
Expand All @@ -10,6 +10,7 @@
except Exception as e:
pass

VERSION = (7, 6, 0, "alpha", 1) # VERSION[3] options = "alpha", "beta", "rc", or "final"
# VERSION[3] options = "alpha", "beta", "rc", or "final"
VERSION = (7, 6, 0, "alpha", 1)

__version__ = get_version(VERSION)
2 changes: 2 additions & 0 deletions arches/app/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
1012: "Node Groups without matching nodes",
}


@unique
class IntegrityCheck(Enum):
NODE_HAS_ONTOLOGY_GRAPH_DOES_NOT = 1005
Expand All @@ -20,3 +21,4 @@ class ExtensionType(Enum):
ETL_MODULES = "etl_modules"
FUNCTIONS = "functions"
SEARCH_COMPONENTS = "search_components"
PERMISSIONS_FRAMEWORKS = "permissions"
Loading

0 comments on commit c6b043a

Please sign in to comment.