pydgutils (PYthon DownGrade UTILitieS)
Preface
This library use for compatilbe purpose.
It provided a simple method to preprocess sources to python2 syntax (if using python2) and do nothing while using python3.
So that you could write your project in python3 syntax and install on python2 without any changes, all jobs are done by 3to2 module which we depends on.
Usage
Copy the pydgutils_bootstrap.py (in pydgutils source package) to the same directory of your setup.py, then modify your setup.py like this:
from pydgutils_bootstrap import use_pydgutils
use_pydgutils()
import pydgutils
# Convert source to v2.x if we are using python 2.x.
source_dir = pydgutils.process()
# Exclude the original source package, only accept the preprocessed package!
packages = find_packages(where=source_dir)
setup(
...
package_dir = {"": source_dir},
packages=packages,
...
)
...
Changes
Metadata
Release files for pydgutils 0.0.7
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 | |
|---|---|---|---|---|
| pydgutils-0.0.7.zip | 9.8 kB | Without provenance | Details |
Release files / pydgutils-0.0.7.zip
| Download URL | pydgutils-0.0.7.zip |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2391e34ceb2a61b41ccd3df4538a886d2e25967327a633a30dcc57bee6ae1ed1
|
|
BLAKE2b-256 checksum How to use checksums |
c412af52082562887f10061e805cc8617110257c8a4252da1a8be819563182b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pydgutils 0.0.7
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.