# Python3 plugin development

**URL:** <https://talk.getindico.io/t/python3-plugin-development/2207>\
**Category:** Plugin Development\
**Created:** [April 13, 2021, 9:15am UTC](https://talk.getindico.io/t/python3-plugin-development/2207 "2021-04-13T09:15:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinGrignard](https://talk.getindico.io/user_avatar/talk.getindico.io/martingrignard/32/702_2.png) [@MartinGrignard](https://talk.getindico.io/u/MartinGrignard)\
**Post date:** [April 13, 2021, 9:15am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/1 "2021-04-13T09:15:03Z")

</div>

Hi! 🙂

I’m trying to develop a plugin for Indico but the available documentation is for Python 2.7.  
Yet, all the plugins from the plugin repository require Python 3.9 and Indico 3.0dev0.

Is there a way to install this version in order to build a new plugin? PyPI and the Github repository of Indico only provide versions up to 2.3.4.

Sorry if my question seems silly.

Have a nice day!

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [April 13, 2021, 9:17am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/2 "2021-04-13T09:17:05Z")

</div>

Use the `2.3-maintenance` branch if you are developing for the current stable version (v2.3.x).

---

<div class="post-metadata">

**Author:** ![MartinGrignard](https://talk.getindico.io/user_avatar/talk.getindico.io/martingrignard/32/702_2.png) [@MartinGrignard](https://talk.getindico.io/u/MartinGrignard)\
**Post date:** [April 13, 2021, 9:26am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/3 "2021-04-13T09:26:25Z")

</div>

Thanks for the quick response!

The 2.3-maintenance branch still requires Python 2.7 as far as I can tell from the `setup.py`.  
So if I want to use Python 3+, I have to use the `search` or `master` branch is that right?

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [April 13, 2021, 9:28am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/4 "2021-04-13T09:28:55Z")

</div>

Yes, use `master` in both indico and plugins if you want Python 3.

There’s a (dev) setup guide for v3 here: [Installation guide (development) — Indico 3.0-dev documentation](https://docs.getindico.io/en/latest/installation/development/)

But please note that while 3.0 is already pretty stable (we’ll likely deploy it at CERN once we finished the development related to search), we do not yet recommend using it in production.

---

<div class="post-metadata">

**Author:** ![MartinGrignard](https://talk.getindico.io/user_avatar/talk.getindico.io/martingrignard/32/702_2.png) [@MartinGrignard](https://talk.getindico.io/u/MartinGrignard)\
**Post date:** [April 13, 2021, 9:31am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/5 "2021-04-13T09:31:57Z")

</div>

Oh thanks, I did not see that the dev installation instruction were for Python 3+.  
Do you have an approximate date for the release?  
I’m currently considering using Indico but I need a way to manage hardware and machines in addition to rooms (thus the need for a plugin).

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [April 13, 2021, 9:39am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/6 "2021-04-13T09:39:40Z")

</div>

We plan to deploy it at CERN this month; at that point we will fix any issues we found quickly (because it’ll be used in production)… once we feel it’s stable enough so we don’t have to bother others with updates every few days and we updated the [prod setup docs](https://github.com/indico/indico/issues/4700), we’ll probably make the “public” release.

But tbh, if you have the technical skills to deploy Python 3.9 (usually via pyenv), and adapt the instructions from the setup guide (such as not installing anything related to Python 2 and installing uwsgi via pip and adding the systemd unit for it yourself), and are willing to build your own Python wheel, then you could probably start using 3.0 without many issues about a week after we started using it at CERN - the first few hours/days are where Googlebot crawlers and users tend to find the majority of issues.

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [April 13, 2021, 9:44am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/7 "2021-04-13T09:44:54Z")

</div>

> [@MartinGrignard](#):
>
> I’m currently considering using Indico but I need a way to manage hardware and machines in addition to rooms (thus the need for a plugin).

Depending on your exact workflow, you may want to add those as “rooms” as well and then just use the room booking module. If you do not need rooms but _just_ machines, then have a look at the burotel plugin in the indico-plugins-cern repo; it’s for booking desks, but should give you a good example on how to repurpose the room booking module.

---

<div class="post-metadata">

**Author:** ![MartinGrignard](https://talk.getindico.io/user_avatar/talk.getindico.io/martingrignard/32/702_2.png) [@MartinGrignard](https://talk.getindico.io/u/MartinGrignard)\
**Post date:** [April 13, 2021, 10:30am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/8 "2021-04-13T10:30:05Z")

</div>

> [@ThiefMaster](#):
>
> We plan to deploy it at CERN this month;

> [@ThiefMaster](#):
>
> then you could probably start using 3.0 without many issues about a week after we started using it at CERN

This is an almost perfect timing for our usage! I might wait a bit then.

> [@ThiefMaster](#):
>
> you may want to add those as “rooms” as well and then just use the room booking module. If you do not need rooms but _just_ machines, then have a look at the burotel plugin in the indico-plugins-cern repo

I considered the “add them as rooms” option but it might conflict with the actual rooms in our case. I’ll take a look at the burotel plugin, thanks for the hint 🙂

---

<div class="post-metadata">

**Author:** ![MartinGrignard](https://talk.getindico.io/user_avatar/talk.getindico.io/martingrignard/32/702_2.png) [@MartinGrignard](https://talk.getindico.io/u/MartinGrignard)\
**Post date:** [June 23, 2021, 11:12am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/9 "2021-06-23T11:12:24Z")

</div>

Hi 🙂

I just update to thread to check if the `3.0` release is now in use at CERN.  
I see that the repository is very active so I suppose that the latest version should soon get published?

Have a nice day!

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [June 23, 2021, 11:29am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/10 "2021-06-23T11:29:43Z")

</div>

Indeed, 3.0 is in use at CERN since pretty much exactly one month and very stable.

I’m actually thinking about making a prerelease for 3.0 later this week. There are a few open PRs I’d like to merge first but nothing major.

---

<div class="post-metadata">

**Author:** ![MartinGrignard](https://talk.getindico.io/user_avatar/talk.getindico.io/martingrignard/32/702_2.png) [@MartinGrignard](https://talk.getindico.io/u/MartinGrignard)\
**Post date:** [June 23, 2021, 11:40am UTC](https://talk.getindico.io/t/python3-plugin-development/2207/11 "2021-06-23T11:40:39Z")

</div>

Great news! 🥳  
I’ll give it try then.
