Questions tagged [python-packaging]

Packages are namespaces which contain multiple packages and modules themselves.

A package is a directory containing a special file called __init__.py (which indicated that the directory contains a python package) and sub-packages and modules. The package name is determined by the name of the directory.

1369 questions
0
votes
1 answer

How to upload packages to PyPI server without setup.py?

I've setup my own PyPI server and I periodically backup all the packages present (their .tar.gz to be exact) in the server. How do I upload them back to a new PyPI server in case of recovery or migration of hardware? (I do not want to rebuild…
Rubbal
  • 779
  • 7
  • 19
0
votes
0 answers

Sys.path.append not loading depending on path order and package

I recently had to install for a local user on Centos7 a more recent version of python2.7(.10) than the default one (2.7.5) could not handle a task. With one of my script, I have a weird issue. Here is the import section of my script: #!/bin/env…
Breathe
  • 714
  • 5
  • 21
0
votes
2 answers

how to install hypothesis Python package?

I'm using Wing IDE, how do I install hypothesis Python package to my computer? I have already download the zip file, do I use command prompt to install it or there is an option in Wing IDE to do it?
Shakesbeer
  • 513
  • 1
  • 7
  • 12
0
votes
2 answers

What's the preferred python distribution if I want to package my env and code into one bundle

I have a python env and code that runs on that env. I have code to setup this env using wget and such, but that's not OS independent really. I wish to bundle this env and code into one (bundle?) and distribute, so the user doesn't has to set up the…
Hec
  • 824
  • 1
  • 5
  • 24
0
votes
1 answer

python package best practice: managing imports

Coming from R, I'm trying to wrap my head around the package system in python. My question (in short) is: what is the best practice for managing external library imports? Suppose I have a package (call it pointless) with the following directory…
Jordan Mackie
  • 1,193
  • 10
  • 17
0
votes
1 answer

Python module doesn't find file include in MANIFEST.in

So I have made a small gui application using pygobject. Works fine and all when executed from the directory. Tried to make a python package out of it but get this error everytime: In [2]:…
Vatsal
  • 462
  • 3
  • 9
0
votes
1 answer

python package, prevent sdist from adding dev-r0 to a package name

I own a python package called webpreview which extracts information from a webpage reading its meta data and contents. Its initial release was versioned 1.0.0. I used python setup.py sdist to package it. From its initial release sdist would append…
Asur
  • 1,949
  • 4
  • 23
  • 41
-1
votes
0 answers

How build python project with setuptools?

Why isn't all parts of a python project built in the build folder? I'm working on a project and started to get interested in project build systems and found setuptools. The essence of the problem: I have a repository with code. I added a setup.py…
Merci
  • 9
  • 1
-1
votes
0 answers

How to include a file in the root of a Python namespace package?

I want to include a config file config.conf in the root of a Python namespace package as a package data resource. For example with the following project directory structure: repository_root/ ├── mynamespace/ │ └── mypackage/ │ ├──…
Ricibob
  • 7,505
  • 5
  • 46
  • 65
-1
votes
1 answer

Does publishing python global package need any licence?

I am interested to add a new global package in pypi.org. Does I need any licence? For example licence from https://opensource.org/licenses/ I tried to search the licences required for python global package. But I am not confident about this. What…
-1
votes
1 answer

python minor version in built wheel name

I am trying to include the minor python version in the name of a wheel built with pip wheel. My project is based on a pyproject.toml that specifies version number etc. and also requires a concrete minor version of python via…
-1
votes
1 answer

How can I make a python package (setuptools) and publish in pypi.org?

In this link i make a py script and an exe file while trying to make a Windows OS python-shout module. The question now is how can i make a .whl file and publish it to github and pypi.org The package will only have two files: an exe file, and a .py…
Chris P
  • 2,059
  • 4
  • 34
  • 68
-1
votes
3 answers

Python package successfully installed but showing error when importing it

I installed openai successfully. I also checked it in pip list. But when I wrote import openai it's showing error (no module named openai). I tried some stackoverflow solutions, but they are not working. If I run my code it is showing this error…
-1
votes
1 answer

Python, get rid of BS4?

If we go to: https://pypi.org/project/bs4/ we can read: This is a dummy package managed by the developer of Beautiful Soup to prevent name squatting. The official name of PyPI’s Beautiful Soup Python package is beautifulsoup4. This package ensures…
-1
votes
1 answer

Erorr while using tkinter package

I get an error while using the grid method in tkinter package. I already used tkinter in projects, so I have no idea why I get this error. Input: from tkinter import * window = Tk() window.title("Password Manager") window.config(padx=50,…