Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constructor manager cli #34

Open
wants to merge 67 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
d10bfd8
Add initial structure
goanpeca Sep 30, 2022
3050e4d
Check for updates
goanpeca Oct 5, 2022
61d327f
Refactor code and utilities
goanpeca Oct 5, 2022
c454605
Format code
goanpeca Oct 5, 2022
2cad62f
Add clean actions
goanpeca Oct 5, 2022
a342f72
Cli
goanpeca Oct 5, 2022
6fc7660
Refactor code
goanpeca Oct 5, 2022
20dc0d6
Format code
goanpeca Oct 5, 2022
348161b
Update README
goanpeca Oct 5, 2022
7033e83
Update channel management
goanpeca Oct 5, 2022
57fa3c8
Add locking implementation and format code
goanpeca Oct 7, 2022
f62013f
Update typing information
goanpeca Oct 7, 2022
f4d5930
Format code and fix types
goanpeca Oct 10, 2022
9a3b60b
Add precommit fixes and typing checks
goanpeca Oct 11, 2022
2242910
Add workflow
goanpeca Oct 11, 2022
49dde4f
Fix tests on GH actions
goanpeca Oct 11, 2022
ab203a2
test
goanpeca Oct 11, 2022
c2cc1af
Add mypy config
goanpeca Oct 11, 2022
954a982
Fix format
goanpeca Oct 11, 2022
f023478
Testing
goanpeca Oct 11, 2022
2ca0a13
Update metadata
goanpeca Oct 11, 2022
6699be2
Add more paths
goanpeca Oct 11, 2022
1aaf3f2
Update with restore features
goanpeca Oct 21, 2022
7fb093a
Add constructor update api package
goanpeca Oct 26, 2022
ae6df2d
Fix code format
goanpeca Oct 26, 2022
01b0d1c
Rename modules
goanpeca Oct 26, 2022
b2a8b75
Add new actions
goanpeca Oct 26, 2022
3203ae8
Rename to constructor manager
goanpeca Oct 26, 2022
08021dd
Fix precommit
goanpeca Oct 26, 2022
0dda148
Fix CI
goanpeca Oct 26, 2022
e3fb407
Fix testing
goanpeca Oct 26, 2022
658a141
Fix format
goanpeca Oct 26, 2022
971138d
Fix typing
goanpeca Oct 26, 2022
bd15d18
Fix CI
goanpeca Oct 26, 2022
150beb2
Add new functions to handle plugins
goanpeca Nov 2, 2022
a0681bf
Reformat update logic
goanpeca Nov 3, 2022
d2328aa
Update conda lock
goanpeca Nov 28, 2022
2734f35
Fix precommit
goanpeca Nov 28, 2022
13ab7e6
Fix typing
goanpeca Nov 28, 2022
041e965
Add ruff to pre-commit
goanpeca Nov 28, 2022
557eb43
Fix conda-lock mechanism
goanpeca Nov 29, 2022
624fb98
Add restore command
goanpeca Nov 29, 2022
7ba3689
Fix CI file
goanpeca Nov 29, 2022
f455a3e
Fix typing
goanpeca Nov 29, 2022
ee4d795
Fix format
goanpeca Nov 29, 2022
1e9fd52
Split api module to separate PR
goanpeca Nov 29, 2022
28b9d9e
Fix tests
goanpeca Nov 29, 2022
884f749
Update structure
goanpeca Dec 7, 2022
ad82b1b
Fix tests
goanpeca Dec 7, 2022
404640b
Fix tests
goanpeca Dec 7, 2022
e56bf44
Fix tests
goanpeca Dec 7, 2022
aeb8600
Fix imports
goanpeca Dec 13, 2022
b08b4c4
Update comments
goanpeca Jan 24, 2023
0ab9885
Update to use an action manager class
goanpeca Jan 25, 2023
9c57a76
Update action manager to work with the API and fix style issues
goanpeca Jan 26, 2023
a89ab59
Add basic logging and update actions
goanpeca Jan 28, 2023
2264544
Separate CLI module and clean up locking mechanism
goanpeca Jan 30, 2023
efd4588
finish locking mechanism and add logging
goanpeca Feb 1, 2023
5c20e61
Update logging and action execution
goanpeca Feb 7, 2023
54723b3
Rename package to backend
goanpeca Feb 22, 2023
a699db2
Add support for delayed updates
goanpeca Feb 23, 2023
d36c26e
Rename package to constructor manager
goanpeca Mar 7, 2023
014108c
update io imports
goanpeca Mar 7, 2023
8208247
Remove icons and update shortcut handling
goanpeca Mar 8, 2023
be091e9
Fix menu creation
goanpeca Mar 8, 2023
1e905c4
Update CI and fix tests
goanpeca Mar 15, 2023
ff7e9f5
Update code review comments
goanpeca May 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 33 additions & 24 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ on:
- main
paths:
- 'constructor-manager/**'
- 'constructor-manager-cli/**'
- 'constructor-manager-api/**'
- 'constructor-manager-ui/**'
workflow_dispatch:

jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
Expand All @@ -25,36 +29,41 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
activate-environment: "constructor-manager"
auto-activate-base: true

- name: Install dependencies constructor-manager-cli
- name: Install dependencies on base environment
run: |
python -m pip install --upgrade pip
python -m pip install setuptools tox tox-gh-actions
cd constructor-manager-cli
pip install -e .
pip list
conda install -n base conda-lock mamba -c conda-forge --quiet
conda list

- name: Test constructor-manager-cli
- name: Install constructor-manager-environment dependencies
run: |
cd constructor-manager-cli
python -m tox
env:
PLATFORM: ${{ matrix.platform }}
conda install -n constructor-manager conda packaging requests pyyaml -c conda-forge --quiet

- name: Install dependencies constructor-manager
# List installed packages
conda list

- name: Install constructor-manager
run: |
cd constructor-manager
pip install -e . --no-deps

# List installed packages
conda list

- name: Install test dependencies
run: |
cd constructor-manager-cli
pip install -e .
pip list
env:
PLATFORM: ${{ matrix.platform }}
conda install -n constructor-manager pytest pytest-cov -c conda-forge --quiet

# List installed packages
conda list

- name: Test constructor-manager
run: |
cd constructor-manager
python -m tox
env:
PLATFORM: ${{ matrix.platform }}
cd constructor-manager/src

# Run Tests
pytest constructor_manager --cov=constructor_manager
50 changes: 0 additions & 50 deletions .github/workflows/tests_ui.yml

This file was deleted.

14 changes: 13 additions & 1 deletion .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main
paths:
- 'constructor-manager/**'
- 'constructor-manager-cli/**'
- 'constructor-manager-api/**'
- 'constructor-manager-ui/**'
workflow_dispatch:

Expand All @@ -30,6 +30,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
cd constructor-manager
python -m pip install --upgrade pip
python -m pip install mypy typing-extensions types-requests types-urllib3 typing-inspect mypy-extensions types-PyYAML
pip list

- name: Typing
run: |
cd constructor-manager
mypy src

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ repos:
args: ["-j8", "--ignore=TYP001,E501,W503"]
exclude: ^constructor-manager-ui/src/constructor_manager_ui/style/images.py
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.143
rev: v0.0.165
hooks:
- id: ruff
args: ["--fix"]
exclude: ^constructor-manager-ui/src/constructor_manager_ui/style/images.py
21 changes: 0 additions & 21 deletions constructor-manager-cli/LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions constructor-manager-cli/MANIFEST.in

This file was deleted.

3 changes: 0 additions & 3 deletions constructor-manager-cli/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions constructor-manager-cli/pyproject.toml

This file was deleted.

59 changes: 0 additions & 59 deletions constructor-manager-cli/setup.cfg

This file was deleted.

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions constructor-manager-cli/tox.ini

This file was deleted.

Loading