Skip to content

Commit

Permalink
change pacakge manager to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshit-MQ committed Aug 20, 2024
1 parent 304d3d3 commit ed0f861
Show file tree
Hide file tree
Showing 17 changed files with 990 additions and 645 deletions.
1 change: 1 addition & 0 deletions .bootstrap
Submodule .bootstrap added at 42ad70
41 changes: 7 additions & 34 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,11 @@ jobs:

- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Install graphviz, plantuml and umlet
run: |
sudo apt-get -y install plantuml
which plantuml
sudo apt-get -y install graphviz
set GRAPHVIZ_DOT=$(which dot)
sudo apt-get -y install umlet
which umlet
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
- name: Install dependencies
run: |
pipenv install --deploy --dev
- name: Run test suite
run: |
pipenv run python -m pytest --verbose --capture=tee-sys
- name: Build package
run: |
pipenv run python -m build
- name: Create documentation

- name: Run build script
run: pwsh ./build.ps1 -install
shell: pwsh

- name: Deploy
run: |
pipenv run make --directory doc html
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_token_github_deploy }}
# Add your deployment steps here
40 changes: 7 additions & 33 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,11 @@ jobs:

- name: Check out repository code
uses: actions/checkout@v2
- name: Install graphviz, plantuml and umlet
run: |
sudo apt-get -y install plantuml
which plantuml
sudo apt-get -y install graphviz
set GRAPHVIZ_DOT=$(which dot)
sudo apt-get -y install umlet
which umlet

- name: Run build script
run: pwsh ./build.ps1 -install
shell: pwsh

# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
- name: Install dependencies
run: |
pipenv install --deploy --dev
- name: Run test suite
run: |
pipenv run python -m pytest --verbose --capture=tee-sys
- name: Build package
run: |
pipenv run python -m build
- name: Create documentation
run: |
pipenv run make --directory doc html
- name: Publish documentation
if: github.ref == 'refs/heads/develop'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc/build/html # The folder the action should deploy.
- name: Run tests
run: pwsh ./build.ps1 -clean
shell: pwsh
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
uses: actions/checkout@v2

- name: install tools, run selftests and create package (w/o deploying)
run: .\build.ps1 -installMandatory
run: .\build.ps1
shell: powershell
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ __pycache__/
/.eggs/

# PyCharm generated project folder
.idea
.idea

/.venv
16 changes: 0 additions & 16 deletions Pipfile

This file was deleted.

Loading

0 comments on commit ed0f861

Please sign in to comment.