pypi

PyPI: Problems uploading a module

PyPI: Problems uploading a module Question: I am trying to upload a python module to PyPI using setuptools and twine. My module can be seen at https://pypi.org/project/mousecontroller/. If you try installing the module using pip install mousecontroller, you will encounter an error: Collecting mousecontroller Using cached mousecontroller-1.0.2.tar.gz (1.4 kB) Preparing metadata (setup.py) … done Requirement …

Total answers: 1

Some python libraries not installing on arch linux

Some python libraries not installing on arch linux Question: Today I am tried to install this python project to check my airpods battery percentage on arch linux. So it needs some python libraries to run it. When I going to install pywin32 library with: pip install pypiwin32 It giving an error like this: [thinura@archlinux AirStatus]$ …

Total answers: 1

LInk github repo with package on Pypi

LInk github repo with package on Pypi Question: I uploaded a python package on Pypi, but I’d also like to upload it to Github, so it can be opensource and anyone can contribute. Is is possible to link the github repo with the already uploaded package on Pypi, so whenever I push something to the …

Total answers: 2

How to publish python package to Artifactory PyPi using JFrog CLI?

How to publish python package to Artifactory PyPi using JFrog CLI? Question: Assuming we have a PyPi repository (simple API) created in Artifactory. Inside of a Jenkins pipeline, it’s required to use JFrog CLI to publish any kind of artifacts because of the security policies. Is there a way to push a python package (dist/tar.gz, …

Total answers: 1

How to hide internal modules in a package's namespace?

How to hide internal modules in a package's namespace? Question: My Python package, tinted, finally works. However, when I run dir(tinted), the core.py and sequences.py files exist in the package! I want only the function tint to be included in the package. Current output of dir(tinted): [‘__builtins__’, ‘__cached__’, ‘__doc__’, ‘__file__’, ‘__loader__’, ‘__name__’, ‘__package__’, ‘__path__’, ‘__spec__’, …

Total answers: 2

Remove parent directories in python build source archive

Remove parent directories in python build source archive Question: I have the following setup for my python package: my_package ┣ src ┃ ┗ __init__.py ┣ setup.cfg ┗ pyproject.toml The __init__.py is empty, the pyproject.toml and the setup.cfg contain example output from the PyPi documentation page (content shown below). Now, for uploading to PyPi and for …

Total answers: 2

using python-poetry to publish to test.pypi.org

using python-poetry to publish to test.pypi.org Question: I have been investigating the use of Poetry to publish Python projects. I wanted to test the publishing process using a trivial project similar to the Python Packaging Authority tutorial. Since this is a trivial project, I want to publish it to the test instance of pypi rather …

Total answers: 2

Which Python version to be used for building PyPi package?

Which Python version to be used for building PyPi package? Question: I’m building PyPi package, which is compatible with Python 3.8 and higher. That means that the minimum version of Python is 3.8, so I build the package in Python 3.8 environment. My question is should I build package separately for Python 3.8 and 3.9? …

Total answers: 3

Can I exclude libraries from auditwheel repair?

Can I exclude libraries from auditwheel repair? Question: I’m using manylinux2014_x86_64 build some precompiled linux wheels for a python library that acts as an API to a C++ library involving CUDA. I create the wheels with pip wheel, then run auditwheel repair to include external libraries in the wheels (my c++ library, pybind11, etc.) The …

Total answers: 2

pip not reading the ~/.pip/pip.conf

pip not reading the ~/.pip/pip.conf Question: This is pertaining to jfrog artifactory. pypi-public is our virtual repo and our internal pypi-internal is associated to pypi-public. I can see the package vapi_common on the web UI. The below command is able to search the package pip search vapi_common –index=https://<username>:<apikey>@company.jfrog.io/artifactory/api/pypi/pypi-public/simple However, if I use the same index-url …

Total answers: 1