Actions
action #133607
closedcoordination #138077: [qe-core] Packages in Python Reduced Stack
[qe-core] Introduce a test for python-setuptools
Status:
Resolved
Priority:
Normal
Assignee:
Category:
New test
Target version:
Start date:
2023-08-01
Due date:
% Done:
0%
Estimated time:
Difficulty:
Sprint:
QE-Core: September Sprint 23 (Sep 06 - Oct 04)
Description
Introduce the new test to verify python3-setuptools. Verify the system's python3-setuptools and also install, verify available python3-setuptools in SLE15-SPs and Tumbleweed.
https://confluence.suse.com/display/packaging/PSP+Devel+Doc#PSPDevelDoc-Testing
Updated by maritawerner about 1 year ago
- Subject changed from Introduce a test for python-setuptools to [qe-core] Introduce a test for python-setuptools
Updated by okurz about 1 year ago
- Target version changed from Ready to QE-Core: Ready
wrong target version, correcting.
Updated by szarate about 1 year ago
Updated by dvenkatachala about 1 year ago
- Status changed from New to In Progress
Updated by dvenkatachala about 1 year ago
I followed the manual steps below:
- Created a directory structure for the test package, including a setup.py file and a Python module named my_module.py:
test_setuptools/
my_package/
my_module.py
setup.py
- Installed setuptools using pip.
- Defined the package information in the setup.py file. Here's the sample Python code:
from setuptools import setup
setup(
name='setuptool_package', # Ensure this matches the package directory name
version='1.0',
packages=['setuptool_package'],
)
Python module my_module.py:
Created a source distribution package using the command:
python3 setup.py sdist
Installed the package locally from the dist directory:
pip install dist/setuptool_package-1.0.tar.gz
- Tested the installed package by running sample script that uses the package.
myhostname:/home/python-setuptools/dist # pip show setuptool_package
Name: setuptool-package
Version: 1.0
Summary:
Home-page:
Author:
Author-email:
License:
Location: /usr/lib/python3.11/site-packages
Requires:
Required-by:
myhostname:/home/python-setuptools/dist # ls -l /usr/lib/python3.11/site-packages | grep setuptool_package
drwxr-xr-x 1 root root 46 Aug 18 14:49 setuptool_package
drwxr-xr-x 1 root root 130 Aug 18 14:49 setuptool_package-1.0.dist-info
myhostname:/home/python-setuptools/dist # cd /home/
myhostname:/home # python3
Python 3.11.4 (main, Jun 28 2023, 19:51:46) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptool_package
>>> from setuptool_package.my_module import greet
>>> exit()
Updated by szarate about 1 year ago
- Sprint set to QE-Core: August Sprint 23 (Aug 09 - Sep 04)
- Tags set to qe-core-august-sprint
Updated by szarate about 1 year ago
Updated by szarate about 1 year ago
- Sprint changed from QE-Core: August Sprint 23 (Aug 09 - Sep 04) to QE-Core: September Sprint 23 (Sep 06 - Oct 04)
Updated by dvenkatachala about 1 year ago
- Status changed from In Progress to Resolved
Updated by dvenkatachala about 1 year ago
- Status changed from Resolved to Feedback
PR has been created and is currently under review at: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/17675
Updated by dvenkatachala almost 1 year ago
- Related to action #119986: [qe-core] Create a test for Pandas added
Updated by dvenkatachala 12 months ago
- Status changed from Feedback to Resolved
Updated by ypagar 12 months ago
- Has duplicate action #133610: [qe-core] Introduce a new test to verify python3-pip and virtual-env added
Actions