Project

General

Profile

Actions

action #133607

closed

coordination #138077: [qe-core] Packages in Python Reduced Stack

[qe-core] Introduce a test for python-setuptools

Added by dvenkatachala about 1 year ago. Updated 12 months ago.

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


Related issues 2 (0 open2 closed)

Related to openQA Tests - action #119986: [qe-core] Create a test for PandasRejectedamanzini2022-11-07

Actions
Has duplicate openQA Tests - action #133610: [qe-core] Introduce a new test to verify python3-pip and virtual-envRejectedypagar2023-08-01

Actions
Actions #2

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
Actions #3

Updated by okurz about 1 year ago

  • Target version changed from Ready to QE-Core: Ready

wrong target version, correcting.

Actions #5

Updated by dvenkatachala about 1 year ago

  • Assignee set to dvenkatachala
Actions #6

Updated by dvenkatachala about 1 year ago

  • Status changed from New to In Progress
Actions #7

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()

Actions #8

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
Actions #10

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)
Actions #11

Updated by dvenkatachala about 1 year ago

  • Status changed from In Progress to Resolved
Actions #12

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

Actions #13

Updated by dvenkatachala almost 1 year ago

Actions #15

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 #16

Updated by dvenkatachala 12 months ago

  • Parent task set to #138077
Actions

Also available in: Atom PDF