-
|
How about a beginner's guide? I have some experience with Python (hobby projects), but not with big projects. I'm interested in testing my skills when performing light tasks. I'm currently stumped by the environment preparation, I use There is I also cloned the repository and created a virtual environment for it. After that I try to install dependencies and get: Information about what I use:
Sorry for the trivial question. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
|
The best current documentation is available at https://vobject.readthedocs.io/latest/. In particular, the "Quick Start" chapter should cover your setup, but I'm sure it can be better ... You should first ensure you have Python installed, version 3.9 or later. It mostly doesn't matter how you do this: however you'd normally install software. For Windows the installer from python.org is a good option, but for Ubuntu you should just use apt (although it's probably already installed -- you said Python 3.12, which will be great). Note that some Python tools manage both Python code and the Python interpreter installation as well. I think pipx and uv both do this, for example. Unless you know you want to use these tools, I would not do this to start. Second step is to create a virtual environment. How you do that again depends on what tools you choose to use. The default is to use venv, like python -m venv venv And then activate it, using source venv/bin/activate (or call venv\scripts\activate.bat on Windows). You should find more details about doing this in one of the million Python tutorials available. If you're using PyCharm, you could use its methods of creating a virtual environment instead? Either way should be fine. Now you're ready to install vobject. Are you wanting to write programs that use vobject? If so, you can simply do pip install vobject -- pip will install all the dependencies for you. There's no need to manually install dependencies, and no need for Poetry: pip understands pyproject.toml files (as will most Python tools). |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, I guess I wasn't clear in the question. I mean the contributor's guide on how to set up the development environment. Searching led me to this:
Installed dependencies in edit mode and updated pip: I'm trying to run tests through IDE: First I want to run tests, this is my indicator that I did everything correctly and can move on. I understand that the error says that I don't have |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, this is exactly what I needed. Again, sorry for the stupid questions, but this is really confusing. https://github.com/py-vobject/vobject/blob/master/CONTRIBUTING.md |
Beta Was this translation helpful? Give feedback.
-
|
It also looks like PyCharm is trying to run the I cloned When I right-click on the "tests" directory in the project's file panel, I get a "Run purest in tests" option (and a matching debug option). Running that fails (as expected) because it cannot find I can't find a way to have PyCharm install the dependencies from the Once I'd done that, right-click on the |
Beta Was this translation helpful? Give feedback.

To install for development of vobject itself (instead of developing with vobject), you should use
pip install -e '.[dev]'.In the
pyproject.toml, you can see there's a "project.optional-dependencies" section, which adds the extra things needed to do development on vobject, includingpytest.