Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

I'm seeing non-deterministic import failures when using uv to manage a Python project created with uv init --package. After a fresh uv sync, my local package is importable, but after running a few uv ...
Jesús S.'s user avatar
1 vote
1 answer
64 views

I am experimenting with how to package my python code as a zip archive. I understand there are other ways to share and distribute code. Right now I am specifically interested in how to get this to ...
Nukesub's user avatar
  • 227
2 votes
0 answers
172 views

To be clear, I'm not suggesting anyone actually should import pkg.__init__ directly. This is to understand potential pitfalls if someone decides to convert a module-only distribution into a package, ...
dROOOze's user avatar
  • 4,224
2 votes
1 answer
66 views

I want to install my single file module together with its py.typed file using setuptools and pyproject.toml. I'm packaging a Python single-module, and so far I was using a very simple pyproject.toml: [...
Raúl Núñez de Arenas Coronado's user avatar
2 votes
2 answers
69 views

My goal is to create a .whl installer file for only one given package. There are multiple packages in the directory tree. setup.py: from setuptools import setup setup( name="package1", ...
awesome_sangram's user avatar
0 votes
0 answers
127 views

I am new to PyO3. Out of the box it supports building with maturin or setuptools-rust. It does not support making Python type stub (.pyi) files by itself yet (incomplete feature). Mypy's stubgen does ...
plswork04's user avatar
  • 693
-2 votes
1 answer
93 views

I have a very complex Python library that is used by several people/projects for different purposes. The structure is basically the same as many Python libraries, but I would like to give the ability ...
jcfaracco's user avatar
  • 880
0 votes
0 answers
100 views

I don't manage to make the editable mode pip install -e . for a local installation of my project. After the installation, when I import a constructor from a module of my package within in python shell ...
kouign amann's user avatar
1 vote
2 answers
126 views

I have a repository which needs just one folder from another, but it needs to keep updating when the other repo changes, so I plan to use a submodule, but how do I take just the singular folder? This ...
DeepThought42's user avatar
-5 votes
1 answer
112 views

I'm using Python only for simple scripts and every time I look into Python packaging, there is a new standard or technologie. Now when I develop a small one-file tool and want to load a jinja2 ...
Thomas Koch's user avatar
  • 2,941
0 votes
0 answers
57 views

I'm using Google Artifact Registry to host Python packages, and I'm running into a serious issue with pip installing incompatible versions of packages (like numpy or scipy) Problem: When I run: pip ...
makplay's user avatar
2 votes
1 answer
3k views

I want to use uv to install packages and add dependencies, equivalent to the following pip workflow: git clone https://github.com/<username>/<repository>.git cd <repository> pip ...
Chris's user avatar
  • 23
0 votes
0 answers
30 views

Detail of the Problem: My simple project structure is as follows: └─mris ├─mris.egg-info ├─seggms │ ├─training │ │ └─run_training.py ├─utilities │ └─config.py (contains ...
Natsuki Ruan's user avatar
2 votes
1 answer
75 views

I am uncertain of how to do development against an existing connector using pyairbyte. I cannot get pyairbyte to successfully load my modified source connector. I have made changes to the source-...
nickolasclarke's user avatar
0 votes
0 answers
64 views

I currently build my simple Python module with a command like: python3 -m build --wheel --outdir /tmp . This creates the /tmp/mypackage-0.1-py3-none-any.whl -- as one would expect. However, it also ...
Mikhail T.'s user avatar
  • 4,302
1 vote
0 answers
137 views

I have a rather small package, with only the single __init__.py at the top-level, which I attempt to install with pip-3.11 install --user .. Pip duly processes my pyproject.toml, checking all of the ...
Mikhail T.'s user avatar
  • 4,302
0 votes
0 answers
60 views

I’m building a Python package with a custom CUDA extension using PyTorch. My setup is managed with uv and a pyproject.toml file, and the build process is defined in setup.py, similar to the ...
wyldecat's user avatar
0 votes
0 answers
70 views

I'm working on a Python project that depends on several local .whl files, each built specifically for: different Python versions (3.9, 3.10, 3.11, 3.12) different platforms (win32, linux) different ...
Lfeikb's user avatar
  • 11
0 votes
0 answers
61 views

I have all my dependencies like below in pyproject.toml [tool.poetry.dependencies] python = ">=3.9,<4.0" docutils = "0.21.2" loguru = "0.7.3" build = "*" ...
Samdan Sk's user avatar
0 votes
0 answers
75 views

Looking at Python packaging with pyproject.toml, I wonder whether it is possible to add a standalone executable (with #!/usr/bin/env python in the first line) to pyproject.toml, without going for a [...
xealits's user avatar
  • 4,818
0 votes
1 answer
85 views

I have this pipeline: name: Build and deploy Python app to Azure Web App - app-xx-xx-api-dev on: push: branches: - dev workflow_dispatch: jobs: build: runs-on: ubuntu-latest ...
Thomas Segato's user avatar
0 votes
0 answers
32 views

I'm new to rez. I ran rez bind --quickstart and got the following: PS C:\WINDOWS\system32> rez-bind python searching d:\opt\rez\Lib\site-packages\rez\bind... creating package 'python' in C:\Users\...
Ibrahim Saber's user avatar
-2 votes
1 answer
189 views

I have a project structured like this: project+ |-folder1+ | |-__init__.py | |-script | |-folder2+ | |-__init__.py | |-...
Chompy's user avatar
  • 21
1 vote
0 answers
157 views

We are migrating a large Python monorepo from Poetry 1.1.15 to 2.1.2 (primarily to gain support for URL dependency authentication). This migration has introduced challenges with our lock file ...
AIGAMER's user avatar
  • 55
0 votes
0 answers
33 views

I'm working on a Python CLI application that deals with climate data, using conda as a package manager. To run the tool locally, I create and activate a conda environment (conda env create --file ...
Edward Gargan's user avatar
1 vote
1 answer
46 views

I just start learning Poetry. I am trying to import a local package in a poetry project. This is the structure of the project: MyProject myproject __init__.py tests __init__.py ...
TenukiPy's user avatar
0 votes
0 answers
40 views

I'd like to revert my conda environment back a few stages. I see this can be done with conda activate envname then conda install --revision #. This fails with the error message: PackagesNotFoundError: ...
ioparttable's user avatar
2 votes
1 answer
368 views

I have a package with a pyproject.toml that has a core package & an optional GUI package with its own extra dependencies. This is the project structure: . └── my_project/ ├── src/ │ └── ...
frimann's user avatar
  • 189
1 vote
0 answers
188 views

I created a project with uv that has the following package structure: a src folder has all the modules and functions a data folder and a notebook and script folders where the modules in src and data ...
caeduft's user avatar
  • 11
0 votes
0 answers
117 views

I want to deploy a custom package (Python whl) to Synapse workspace using REST API (using Python request library). I need it to automate packages deployment via CI/CD (GitLab). I managed to do it ...
Worldmaster's user avatar
0 votes
1 answer
120 views

I want to use the ydf package in a docker image, but every time I try to build Docker Image of Python with ydf package I get this error: 1.699 ERROR: Could not find a version that satisfies the ...
Nicolas Guilland's user avatar
0 votes
0 answers
103 views

I have my Python package structured in src-layout. I run multiple github repositories with each the same super-package-name, structured as follows: package-subpackage1 ├── .git/ ├── src/ │ └── ...
yunkz's user avatar
  • 1
0 votes
1 answer
44 views

I wrote a python project that automates tasks and makes use of the smartsheet api but when I package this project into an executable with nuitka I get the error: ImportError! Could not load api or ...
Mariano Gongora's user avatar
1 vote
0 answers
36 views

My package's Python version depends on one of its dependencies'. Since it integrates with Databricks, the corresponding runtime environment (DBR) sets a dependency package databricks-connect which ...
Diego-MX's user avatar
  • 2,349
1 vote
1 answer
395 views

I am using PDM for virtual environment package management. Also, I am using the pdm build backend, which is problematic. When I was originally packaging apps with setuptools, I was able to specify non-...
Adam Bajger's user avatar
0 votes
1 answer
210 views

I am currently writing a package that seeks to load entrypoint contributions from other installed packages using importlib.metadata.entry_points, but am unsure how I can test this properly. I am using ...
Maddy Guthridge's user avatar
0 votes
0 answers
27 views

I have created a Python package, and one of the functions I have written opens a .txt file in the same directory as that function. Locally, this works fine, but when the package is built and executed ...
RoyalSwish's user avatar
  • 1,583
0 votes
0 answers
51 views

I have a Python package that I publish to PyPI. However, it does not support Windows, and I want to prevent that users install it on Windows. Can this be done using just pyproject.toml? Note: I am ...
icpp-pro's user avatar
  • 1,486
1 vote
0 answers
458 views

I am trying to create a simple pyproject.toml file where I can disable disable build isolation for a specific dependency. The idea is that a the install process should install setuptools if this is ...
Albe's user avatar
  • 125
1 vote
1 answer
71 views

In pyproject.toml we have a optional-dependencies for a windows package: [project.optional-dependencies] windows = [ "pywinpty>=2.0.14" ] To install: # on windows pip install .[...
MortenB's user avatar
  • 3,776
0 votes
1 answer
277 views

Background: I am new to using the standard Python packaging tools and have typically relied on custom tooling. However, I’ve decided to get a better understanding of the packaging process, but I’m ...
avalon20's user avatar
  • 199
0 votes
1 answer
57 views

I want to configure a python package with poetry for better dependency management, for some reason it connot find the any packages i mention as it should, I am new to using poetry so I want to know ...
Sanjith Kumar's user avatar
-1 votes
1 answer
50 views

I have a Python3 project arranged as follows: C:\automation\framework\constants.py C:\automation\tests\unit-tests\test_myunittest.py In my unit test, I'm trying to call methods in framework folder, ...
bearaman's user avatar
  • 1,091
0 votes
0 answers
128 views

Problem Whilst running some unit tests I was presented with the following error when trying to import from absolute path: tests/unit/test_parameter_combinations.py:3: in <module> from ...
InvestingScientist's user avatar
0 votes
0 answers
51 views

(Neither this question nor this question are duplicates - they are all resolved by setting the PYTHONPATH correctly.) I have the basic file structure of a Python package, located in ~/github/mypackage:...
Wasserwaage's user avatar
1 vote
0 answers
257 views

I'm trying to set different user-versions inside the same directory, so when using pip install . only the basic version module should be installed, namely only installing foo_tool. When using pip ...
TheTelefone's user avatar
0 votes
1 answer
206 views

With setup.py I can do something like this : if not os.environ.get("DO_NOT_INSTALL_THIS_PACKAGE"): install_requires.append("this_package") How can I do the same thing with ...
thebaptiste's user avatar
3 votes
1 answer
88 views

I have several python packages that need to be installed on various os/environments. These packages have dependencies and some of them like Polars needs a different package depending on the OS, for ...
FiReTiTi's user avatar
  • 5,979
0 votes
3 answers
123 views

I am trying to package a Python project using py -m build within an Anaconda environment. However, I noticed that only the .tar.gz source distribution is being created, and the .whl (wheel) ...
Kate Crawford's user avatar
-1 votes
1 answer
132 views

I have a project on a machine behind a firewall with PyCharm installed and I'm trying to get some structure into it. Therefore I am trying to create some kind of utility module that I want to edit/...
ibanezONE's user avatar

1
2 3 4 5
32