Questions tagged [pyproject.toml]

Questions pertaining to the python package configuration system based on a pyproject.toml file, as discussed in PEP517 and PEP518, among others.

Questions pertaining to the python package configuration system based on a pyproject.toml file, as discussed in PEP517 and PEP518, among others.

268 questions
0
votes
0 answers

Using pyproject.toml for python applications

I ran into a problem when trying to figure out how to specify dependencies for a python application which uses pyproject.toml. What is the best practice when it comes to installing applications? Couple of approaches I am considering: have…
user430953
  • 191
  • 2
  • 19
0
votes
0 answers

Building wheel for pyproj (pyproject.toml) - Doesn't work

So im trying to install this package called etrago (https://pypi.org/project/eTraGo/). but it doesn't work. At the end I get something like this in my terminal: note: This error originates from a subprocess, and is likely not a problem with pip. …
jpwitt13
  • 57
  • 1
  • 9
0
votes
0 answers

Dependency from another PyPI in pyproject.toml with Setuptools

I'm setting up a local PyPI repository on self-managed GitLab for wheels that cannot be made public. Pip is configured to look for wheels there. If not found, GitLab forwards request to global PyPI. This can lead to distribution name conflicts, so…
badbishop
  • 1,281
  • 2
  • 18
  • 38
0
votes
1 answer

An updated guide on releasing and versioning PyPi packages

I have recently bumped into an issue while trying to release a new version of my PyPi package. After updating the source code (and preparing the files for the release), I cannot find any updated guide on how to release a new version (see this, for…
corvusMidnight
  • 518
  • 1
  • 4
  • 19
0
votes
0 answers

How to specify package installation order in pyproject.toml?

Using pyproject.toml, I'm trying to install a specific dependency (lap==0.4.0). As per the project's setup.py script, it requires numpy. This is fine. But it's also problematic for me because, despite numpy being defined higher than lap under my…
Ian
  • 3,605
  • 4
  • 31
  • 66
0
votes
0 answers

Add private Python package hosted at private package index server as dependency in `pyproject.toml`

I am developing new package mypackage2 that has a private package mypackage1 as a dependency. mypackage1 is hosted on a private package index server (pypiserver in this case) and can be installed by: pip install -i http://myprivatepypiserver/simple/…
cpage
  • 119
  • 6
  • 27
0
votes
0 answers

What's the correct way to version pyproject.toml

According to this article https://py-pkgs.org/07-releasing-versioning.html, versions in pyproject.toml follow the semantic versioning standarts. So my file looks like : [tool.poetry] name = "my_project" version = "0.1.0" description =…
Portevent
  • 714
  • 3
  • 12
  • 34
0
votes
1 answer

pip ignores pyproject.toml

[build-system] requires = ["wheel", "setuptools>=18.0", "cython>=0.29.0", "numpy>=1.20"] I package via python setup.py sdist bdist_wheel, then twine upload --repository testpypi dist/*, and pip install -i https://test.pypi.org/simple/…
OverLordGoldDragon
  • 1
  • 9
  • 53
  • 101
0
votes
0 answers

poetry: Managing local dependencies in both dev and prod environments

Say I have two modules: a main application and a utility. With poetry I can add the utility as local dependency to the main application thus: poetry add ../utilities/mailer/dist/my_mailer-0.1.0-py3-none-any.whl This then generates the following in…
loris
  • 450
  • 8
  • 20
0
votes
1 answer

How can i fix the: ERROR: Failed building wheel for cuvec

I want to install a package. But there is the following error. I could not fix this error. Any help is appreciated. Python version: 3.9 Ubuntu version: 20.04 note: This error originates from a subprocess, and is likely not a problem with…
0
votes
1 answer

Cookiecutter: Add information to pyproject.toml according to template variable

In my cookiecutter template, I have the following question: "Do you want to use an internal repository? ["Yes", "No"]. If answered "Yes", I would like to add another table to my pyproject.toml configuration file. [[tool.poetry.source]] name =…
Andi
  • 3,196
  • 2
  • 24
  • 44
0
votes
0 answers

pip install from local directory doesnt add [build-system] dependencies

In our project (Locust) we use setuptools_scm for versioning, so it is needed for all installations from local directory. We used to have this specified in setup.py: setup( setup_requires=["setuptools_scm>=6.2"], ... ) But we have upgraded…
Cyberwiz
  • 11,027
  • 3
  • 20
  • 40
0
votes
0 answers

Console scripts outside the main module aren't packaged along (ModuleNotFoundError)

Behold, my tree: src/ ├── bin │ ├── cli.py ├── mypackage │ ├── __init__.py │ ├── api.py │ ├── models │ └── utils.py Now, observe, my setup.cfg: [options] zip_safe = False packages = find: package_dir = …
bluppfisk
  • 2,538
  • 3
  • 27
  • 56
0
votes
0 answers

Can I use pyproject.toml with pip?

I want to replace multiple projects where I work, that use setup.py with pyproject.toml. I couldn't find a whole lot details about pyproject.toml and all I could find seems to use poetry. I don't really want to replace our use of pip since…
Ema Il
  • 405
  • 1
  • 5
  • 14
0
votes
0 answers

pyproject.toml with extra source from Rospypi - "Could not find a version..."

I am trying to create a pyproject.toml that also installs some ROS packages as extras from https://rospypi.github.io/simple/. In my first explorations, installation via pip install --extra-index-url https://rospypi.github.io/simple/ rospy rosbag…
stklik
  • 834
  • 1
  • 8
  • 19
1 2 3
17
18