1 package-manifest
A Python 3 framework for creating and maintaining a generalised manifest of files inspired by the Python MANIFEST.in. The framework could be used as the basis of a packaging tool to define the files needed for distribution of the package.
1.1 Main Features
YAML based file format
Manifest include & exclude actions using Unix globs, ** (recursive) and *
1.2 Installation
The simplest way to acquire package_manifest is using pip.
pip install package-manifest
1.3 Getting Started
The manifest YAML file is simply a list of the include and exclude actions to comprise the formulation of a list of files. Each include/exclude action can take multiple Unix-style globs per the Python standard library.
---
# Python MANIFEST.in is used as a reference:
# https://docs.python.org/3.6/distutils/sourcedist.html
#
manifest:
# include the files ./LICENSE and ./README.md
- include:
- LICENSE
- README.md
# exclude ./*.orig files
- exclude:
# NOTE: have to be careful to quote values starting with a wildcard (*) because
# it has special meaning in YAML syntax.
- "*.orig"
# include *.h & *.c files anywhere in the ./include directory and its subdirectories.
- include:
- include/**/*.h
- include/**/*.c
# exclude all files and subdirectories in the ./temp directory.
- exclude:
- temp/**/*
# include files called "Makefile" anywhere in the tree.
- include:
- "**/Makefile"
# exclude files matching *.txt, *.tmp, test anywhere in the tree.
- exclude:
- "**/*.txt"
- "**/*.tmp"
- "**/test"
# remove the ./bin directory and all files and subdirectories.
- exclude:
- bin/**/*
# add the ./src directory and all files and subdirectories.
- include:
- src/**/*
Using the manifest file is simply a matter of importing the library and using the from_file class method to import the operations and apply them to the specified root directory of the directory tree from which to extract files.
from package_manifest import Manifest
this_manifest = Manifest.from_file( "manifest.yml" )
manifest_files = this_manifest.apply(".")
manifest_files now contains a Python set of the file names from the current working directory '.' and its subdirectories that have been filtered by the sequential include and exclude actions specified in the file manifest.yml.
1.4 DOI Archive
0.2.0 |
|
0.3.0 |
Metadata
Release files for package-manifest 1.0.0.post7
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 |
|---|---|---|---|---|
| package_manifest-1.0.0.post7.tar.gz | 13.4 kB | Without provenance | Details for package_manifest-1.0.0.post7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| package_manifest-1.0.0.post7-py3-none-any.whl | Python 3 | none | any | Details for package_manifest-1.0.0.post7-py3-none-any.whl |
Total release size: 20.4 kB
Release files / package_manifest-1.0.0.post7.tar.gz
| Download URL | package_manifest-1.0.0.post7.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c96989a84a7d1580432996aa48a5d15807ff8a1250e1ab992668c4d4b9b2900
|
|
BLAKE2b-256 checksum How to use checksums |
dfce7a3a3b882e952667f250f174fb746eb31c7bb260285c1049a7b47606a6b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11
|
Release files / package_manifest-1.0.0.post7-py3-none-any.whl
| Download URL | package_manifest-1.0.0.post7-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb2f4b234b6bd15b3e4af24b04a6dd5023802b2ae8d94d3c21d613cc2193409d
|
|
BLAKE2b-256 checksum How to use checksums |
b868ad9747233a7e86754d752b564e1b22c214431c5d17b1889d4834ba8c95ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11
|
Security for package-manifest 1.0.0.post7
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.