Test Package
Still on process, not ready for use yet! Currently studying and planning !
1. Version
- 0.0.1 inital version
- 0.0.2 update readme.md
- 0.0.3 adding init function for gui(pyautogui) and web (selenium)
2. Example and Description
This is a test package, which include these item:
- Calculate Test
- Hello world Test
- [x ] Adding PyautoGUI module
- Adding selenium
Hello World Package
Method name: helloworld
from pkgTest import helloworld as hello
print(hello.hellotest())
# output
calculate Package
Method name: calculate
from pkgTest import calculate as cal
result = cal.sumvalue(1,300)
print(result)
# output
The sum of 1, ~ 300 is: 44850
from pkgTest import calculate as cal
cal.add(5,5)
cal.minus(5,5)
cal.multiply(5,5)
cal.divide(5,5)
# output
10 #adding
0 #subtract
25 #multiply
1 #divide
from pkgTest import gui
gui.getvalue()
# output
Point(x=429, y=393)
from pkgTest import web
web.webaccess("https://google.com")
# output
3. Package and Distribution building
-
Method 1 using setup.py
- **File name:** - setup.py and setup.cfg - **How to build:**- create build: #python setup.py sdist bdist_wheel
-
Method 2 using setup.py and setup.cfg(using metadata)
If you want wants to convert setup.py to setup.cfg, please
-
How to build:
create build: #python setup.py sdist bdist_wheel
-
Code:setup.py
-
change setup_nocode.py to setup.py
-
convert setup.py to setup.cfg used:
#setup-py-upgrade .- setup.py will overwrite as below
setuptools.setup() import setuptools -
-
Code:setup.cfg
[metadata] name = pkgTest version = 0.0.1 author = ChenChih.Lee author_email=jacklee26@gmail.com description = My first Python Hello world library long_description = file: README.md long_description_content_type = text/markdown url = https://github.com/chenchih/PackageTest license = MIT classifiers = Development Status :: 1 - Planning Intended Audience :: Developers Programming Language :: Python :: 3 Operating System :: Unix Operating System :: MacOS :: MacOS X Operating System :: Microsoft :: Windows [options] include_package_data = True packages = find: install_requires = selenium [options.package_data] * = *.xml *.txt -
-
Method 3 using myproject.toml and setup.cfg(using metadata)
-
How to build:
-
Install build package #py -m pip install --upgrade build
-
Create build:
#python -m build
-
install it
#pip install .
OR #pip install package name
-
-
Code: myproject.toml
[build-system] requires = [ "setuptools>=42", "wheel" ] build-backend = "setuptools.build_meta" -
Metadata
Release files for pkgTests 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pkgTests-0.0.3.tar.gz | 4.8 kB | Without provenance | Details for pkgTests-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pkgTests-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pkgTests-0.0.3-py3-none-any.whl |
Total release size: 9.8 kB
Release files / pkgTests-0.0.3.tar.gz
| Download URL | pkgTests-0.0.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21f0caa4dba7113a370150dd7de2079ff0d3747e62e83b86a11866fbaac5117d
|
|
BLAKE2b-256 checksum How to use checksums |
07e64ddc96301e6a6af07adfedd2fc25ad87649636e3a6ab99e1eab1f48025ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / pkgTests-0.0.3-py3-none-any.whl
| Download URL | pkgTests-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0fdfb69e677070646fe774fe100ec1b44fff93545f58864380a8c8c61195d07
|
|
BLAKE2b-256 checksum How to use checksums |
0340ccdbb9dc6dbd526c4982c27001682e553fc25c3c00d980b536c15a92ec2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for pkgTests 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.