EuroSciPy Website
New framework for EuroSciPy website, starting 2025.
Setup
- Select the right Python version, the one used and tested is stored in
./.python-version, however, most relatively current versions should work. Use whatever Python version manager you prefer, for examplepyenv. - Create a virtual environment and activate it, so that the dependencies for this project won't clash with other, locally installed libraries:
python -m venv ./venv && source venv/bin/activate. - Install the dependencies:
pip install -r requirements.txt.
Run locally
make run
Deployment/Hosting
The site is deployed as a github page and a workflow will take care of that part automatically. Have a look at ./.github/workflows/gh-pages.yml if you are interested in the details.
Content
Here is how you can add content like sponsors or blog posts to the EuroSciPy website.
Adding talks
Do not add talks directly in this repository. They are pulled from Pretalx and the talks pages will be automatically generated and deployed every 6 hours.
Adding a sponsor
To add a new sponsor, you need to do two things:
- Copy the svg logo to
./assets/static/sponsors/ - Add the information for the sponsor to
./databags/sponsors.json - Run
make sponsor-pages. This will generate the individual sponsor page, based on the data in the databag.
Blog Posts
- Create a new branch
- Add a folder for the new blog post under
./content/blog/<blogpost-title> - Add a
contents.lrfile to this folder.
This file will contain the blog post (as markdown) and some additional metadata. Here is an example on how this could look like:
title: Something exciting just happened!
---
pub_date: 2025-05-07
---
body:
# The air is thrumming with excitement
Something unbelievable just happened in the **Python** world. Let me tell you all about it:
The title field is a simple string.
The pub_date field is the date, formatted like this: YYYY-mm-dd.
the body is the blog post as markdown.
- Commit the changes to your new branch
- Push the changes
- Open a PR
- Merge the PR, once it has been approved
The new blog post will automatically be deployed, once it has been merged.
Add any images you might want to use to the same folder you added the contents.lr file to, so that all the content is contained in one place.
Using Pixi
Optionally, you can use Pixi.
You need to have Pixi installed.
Build locally
Run:
pixi run buildAdding a sponsor
See above.
Instead of step 3 do:
pixi run sponsorsList all tasks
pixi task list