python-packaging Questions

2

I have a python package that I want to install inside a docker file. pyproject.toml looks like: [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_me...
Melia asked 7/11, 2022 at 23:11

3

I searched a bit but could not find a clear answer. The goal is, to have two pip indexes, one is a private index, that will be a first priority. And one is the standard PyPI. The priority is there ...
Outlying asked 25/4, 2021 at 11:59

3

What is the best way to check if a PyPI package name is taken? Several times now I have searched pypi for a package and received no results. Then I have taken the time to create a package with a na...
Toback asked 18/11, 2021 at 17:7

5

Solved

Here is the full code. It runs perfectly fine on https://learn.deeplearning.ai/ notebook. But when I run it on my local machine, I get an error about ImportError: Could not import docarray python ...
Nonu asked 11/8, 2023 at 1:41

2

I was following a tutorial on how to build a Python package, and after installing the package locally using pip install . In the project directory. The next was to python -m build in the project di...
Longo asked 29/4, 2023 at 10:36

5

Solved

I am trying to run my poetry based python project inside docker using docker compose When I run the application, it works but it gives me this warning ch_news_dev_python | Warning: 'news' is an e...
Semilunar asked 30/5, 2023 at 14:1

4

Solved

I have a project which I want to structure like this: myproject ├── api │ ├── __init__.py │ └── api.py ├── backend │ ├── __init__.py │ └── backend.py ├── models │ ├── __init__.py │ └── some_model.p...

5

Solved

I am not very familiar with python, I only done automation with so I am a new with packages and everything. I am creating an API with Flask, Gunicorn and Poetry. I noticed that there is a version n...
Tattoo asked 12/1, 2023 at 17:23

5

Solved

I am using poetry to create .whl files. I have an FTP sever running on a remote host. I wrote a Python script (log_revision.py) which save in a database the git commit, few more parameters and in t...
Sanious asked 11/12, 2019 at 13:33

2

Solved

Using Artifactory (https://cloud.google.com/artifact-registry) I intend to add a dependency with poetry (https://python-poetry.org/docs/repositories/). I can install with command: pip install --ind...

4

I use NLTK with wordnet in my project. I did the installation manually on my PC, with pip: pip3 install nltk --user in a terminal, then nltk.download() in a python shell to download wordnet. I wan...
Jerol asked 7/11, 2014 at 11:7

3

We have multiple python projects, and are considering converting them to use pyproject.toml instead of setup.py. Is there a simple way to automate this?
Joly asked 1/7, 2022 at 16:13

4

Solved

pytest recommends including an additional directory to separate the source code within a project: my_package ├── src # <-- no __init__.py on this layer │   └── my_package │   ├── __init__.py │  ...
Nondisjunction asked 3/5, 2018 at 12:47

2

Should I be using only pyproject.toml or use it with setup.py and setup.cfg? Or perhaps some other combination of them. I can't find any definitive answer to this question so I'd be pleased i...
Yea asked 10/8, 2022 at 16:54

2

Solved

I have, in a single repo, two Python projects that both depend on a shared utility package. My goal is to package each of the two projects in a software distribution package (i.e. a .tzr.gz file) I...
Right asked 15/6, 2022 at 10:13

5

Solved

I have an environment.yml file, but don't want to use Conda: name: foo channels: - defaults dependencies: - matplotlib=2.2.2 Is it possible to have pip install the dependencies inside an environ...
Fumed asked 1/7, 2022 at 4:46

3

I got a script transferred from someone else. And there is a module imported into the script. I'm wondering what is the best way to find out which pip package installed this library (other than sea...

1

I am using setuptools with a pyproject.toml file, and want setuptools to get the package version dynamically from the package contents. Instead, it is always setting the package version in the name...

21

While downloading pip install allennlp==1.0.0 allennlp-models==1.0.0, I faced this problem: [6 lines of output] running bdist_wheel running build running build_py running build_ext building '...
Mignon asked 6/2, 2022 at 17:14

3

Solved

I'm building my own install of Python, then using pip to install some packages into it. I want to use the pre-built binary wheels for packages like Cryptography. Python 2.7.15 / 2.7.16 Pip 19.0.3...
Regatta asked 28/3, 2019 at 20:8

14

Solved

I've been here: PEP 328 – Imports: Multi-Line and Absolute/Relative Modules, Packages Python packages: relative imports Python relative import example code does not work Relative imports in Python...

34

Solved

How do I uninstall all packages installed by pip from my currently activated virtual environment?
Haerr asked 28/6, 2012 at 15:36

25

Solved

Is there a standard way to associate version string with a Python package in such way that I could do the following? import foo print(foo.version) I would imagine there's some way to retrieve that...
Coons asked 19/1, 2009 at 18:5

1

Solved

I am using the toml package to read my pyproject.toml file. I want to add custom data which in this case I will read in my docs/conf.py file. When I try and add a custom section I get errors and wa...
Milena asked 17/8, 2023 at 20:22

0

I'm puzzled by an issue with Rtree, a Python package that I occasionally contribute to. The package uses cibuildwheel to generate binary wheels for PyPI. This package uses ctypes to bind to the C A...
Quirita asked 25/7, 2023 at 21:32

© 2022 - 2024 — McMap. All rights reserved.