Skip to content

Commit

Permalink
Move to simple venv (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kislovskiy committed Aug 2, 2023
1 parent 401f612 commit 31176aa
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 33 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/2023-PyConIT-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: Generate Gallery PDF
name: "2023 PyConIT generate galery.pdf"
run-name: "️2023 PyConIT (${{ github.sha }})"
on:
pull_request:
push:
branches: [ 2023-PyConIT* ]
branches: [ main, 2023-PyConIT* ]

jobs:
generate-pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Setup Python environment
uses: actions/checkout@v3

- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
- uses: actions/setup-python@v4
with:
environment-file: 2023_PyConIT/environment.yml
activate-environment: 2023_PyConIT
python-version: '3.11'
- name: Install dependencies
run:
pip install -r 2023_PyConIT/requirements.txt
- name: Run tests
shell: bash -el {0}
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
name: Generate Gallery PDF
name: "2023 PyData Berlin generate galery.pdf"
run-name: "️2023 PyData Berlin (${{ github.sha }})"
on:
pull_request:
push:
branches: [2023-pycon-de*]
branches: [ main, 2023-pycon-de*]

jobs:
generate-pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Setup Python environment
uses: actions/checkout@v3

- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
- uses: actions/setup-python@v4
with:
environment-file: 2023_PyData_Berlin/environment.yml
activate-environment: 2023_PyData_Berlin
python-version: '3.11'
- name: Install dependencies
run:
pip install -r 2023_PyData_Berlin/requirements.txt

- name: Run tests
shell: bash -el {0}
run:
Expand Down
7 changes: 0 additions & 7 deletions 2023_PyConIT/environment.yml

This file was deleted.

1 change: 1 addition & 0 deletions 2023_PyConIT/requirements.txt
7 changes: 4 additions & 3 deletions 2023_PyData_Berlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
To start:

```
conda env create -f environment.yml
python -m venv .venv
source .venv/bin/activate
```

## General stracture of the project
Expand All @@ -28,7 +29,7 @@ conda env create -f environment.yml
β”‚ └── 2023-pycon-de-python-pdf-workflow.yml
β”œβ”€β”€ 2023_PyData_Berlin
β”‚ β”œβ”€β”€ data
β”‚ β”œβ”€β”€ environment.yml
β”‚ β”œβ”€β”€ requirements.txt
β”‚ β”œβ”€β”€ README.md
β”‚ β”œβ”€β”€ results
β”‚ β”œβ”€β”€ src
Expand Down Expand Up @@ -233,7 +234,7 @@ Spend some time verifying your data pipelines.

Now let's get back to structure of the data visualisation project.
The repository contains the src, tests, data, and results directories.
I prefer to use conda for managing my environments, and I use the environment.yml file to specify the dependencies.
I prefer to use venv for managing my environments, and I use the `requirements.txt` file to specify the dependencies.

The src directory contains the python scripts for generating the plots.
It also contains the `assemble_plots.py` script that assembles all the plots into a single pdf file.
Expand Down
7 changes: 0 additions & 7 deletions 2023_PyData_Berlin/environment.yml

This file was deleted.

4 changes: 4 additions & 0 deletions 2023_PyData_Berlin/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy==1.25.0
pandas==2.0.1
matplotlib==3.7.1
pytest==7.3.0

0 comments on commit 31176aa

Please sign in to comment.