Skip to content

Commit

Permalink
MAINT - Miscellaneous maintenance/governance tasks (conda-incubator#865)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Aug 29, 2024
1 parent c8c78bb commit ca48ae0
Show file tree
Hide file tree
Showing 168 changed files with 2,823 additions and 2,087 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/generate_api_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,32 @@ on:
jobs:
update-openapi-json:
runs-on: ubuntu-latest
# so that we can skip this job by adding 'skip openapi' to the commit message
# and only run it when the PR is against the main branch of our repo
if: "!contains(github.event.head_commit.message, '[openapi skip]') && github.repository=='conda-incubator/conda-store'"
permissions:
contents: write
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout repository
- name: "Checkout repository 🛎️"
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up Miniconda
- name: "Set up Miniconda 🐍"
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: conda-store-server/environment-dev.yaml

- name: Install conda-store-server
- name: "Install conda-store-server 📦"
run: python -m pip install conda-store-server/.

- name: Run openapi.json generation script
- name: "Run openapi.json generation script"
run: python docusaurus-docs/scripts/generate_openapi_json.py

- name: Commit changes
- name: "Commit changes"
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
Expand Down
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code of Conduct

The conda-store project is governed by the [conda organization Code of Conduct](https://github.com/conda/governance/blob/main/CODE_OF_CONDUCT.md).
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2021, conda-store development team
Copyright (c) 2020-2024, conda-store development team
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 4 additions & 0 deletions conda-store-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# conda-store-server Dockerfile
# the generated Docker image is used with docker compose to run the conda-store
# server and public conda-store Docker images
Expand Down
5 changes: 4 additions & 1 deletion conda-store-server/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Copyright 2020 Quansight LLC
BSD 3-Clause License

Copyright (c) 2020-2024, conda-store development team
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
Expand Down
4 changes: 4 additions & 0 deletions conda-store-server/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) conda-store development team. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

include conda_store LICENSE
recursive-include conda_store_server/_internal/server/templates *
prune .github
Expand Down
4 changes: 4 additions & 0 deletions conda-store-server/conda_store_server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import datetime
import hashlib
import typing
Expand Down
3 changes: 3 additions & 0 deletions conda-store-server/conda_store_server/_internal/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

from conda_store_server._internal.action.base import action # noqa isort: skip
from conda_store_server._internal.action.add_conda_prefix_packages import ( # noqa
action_add_conda_prefix_packages,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import hashlib
import json
import os
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import typing

from conda.models.dist import Dist
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import contextlib
import functools
import io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import os
import pathlib
import shutil
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import pathlib

from conda_store_server._internal import action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import json
import pathlib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import pathlib

import conda_pack
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import os
import pathlib
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import json
import os
import pathlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import pathlib

from conda_store_server._internal import action, conda_utils, utils
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import json
import pathlib
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import json
import pathlib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import pathlib
import shutil

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import pathlib
import stat

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.


def logged_command(context, command, **kwargs):
# This is here only for backward compatibility, new code should use the
# run_command method instead of calling this function
Expand Down
4 changes: 4 additions & 0 deletions conda-store-server/conda_store_server/_internal/alembic.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
; Copyright (c) conda-store development team. All rights reserved.
; Use of this source code is governed by a BSD-style
; license that can be found in the LICENSE file.

# A generic, single database configuration.

[alembic]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// Copyright (c) conda-store development team. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

Generic single-database configuration.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

from logging.config import fileConfig

from alembic import context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) conda-store development team. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

"""${message}

Revision ID: ${up_revision}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""add canceled status
Revision ID: 03c839888c82
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""add worker
Revision ID: 0f7e23ff24ee
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""split conda_package into conda_package and conda_package_build
Revision ID: 16f65805dc8f
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""add build_key_version
Revision ID: 30b37e725c32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""initial schema
Revision ID: 48be4072fe58
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""add installer
Revision ID: 57cd11b949d5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""Adding CONTAINER_REGISTRY value to enum
Revision ID: 5ad723de2abd
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""add v2 role mappings
Revision ID: 771180018e1b
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""Add Environment.description
Revision ID: 8d63a091aff8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""adding a settings table
Revision ID: abd7248d5327
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""role mapping
Revision ID: b387747ca9b7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""lockfile spec
Revision ID: bf065abf375b
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""add status_info
Revision ID: d78e9889566a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""add build hash
Revision ID: e17b4cc6e086
Expand Down
4 changes: 4 additions & 0 deletions conda-store-server/conda_store_server/_internal/build.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import collections
import datetime
import json
Expand Down
4 changes: 4 additions & 0 deletions conda-store-server/conda_store_server/_internal/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import requests


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

"""Interface between conda-store and conda
This module provides all the functionality that is required for
Expand Down
4 changes: 4 additions & 0 deletions conda-store-server/conda_store_server/_internal/dbutil.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import json
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) conda-store development team. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import pathlib

import pydantic
Expand Down
Loading

0 comments on commit ca48ae0

Please sign in to comment.