Skip to main content

scons-tool-archives

PyPi package version Travis CI build status https://ci.appveyor.com/api/projects/status/github/ptomulik/scons-tool-archives?svg=true

SCons tool to create archives.

Installation

There are few ways to install this tool for your project.

From pypi

This method may be preferable if you build your project under a virtualenv. To add archives tool from pypi, type (within your wirtualenv):

pip install scons-tool-loader scons-tool-archives

or, if your project uses pipenv:

pipenv install --dev scons-tool-loader scons-tool-archives

Alternatively, you may add this to your Pipfile

[dev-packages]
scons-tool-loader = "*"
scons-tool-archives = "*"

The tool will be installed as a namespaced package sconstool.archives in project’s virtual environment. You may further use scons-tool-loader to load the tool.

As a git submodule

  1. Create new git repository:

    mkdir /tmp/prj && cd /tmp/prj
    touch README.rst
    git init
  2. Add the scons-tool-archives as a submodule:

    git submodule add git://github.com/ptomulik/scons-tool-archives.git site_scons/site_tools/archives
  3. For python 2.x create __init__.py in site_tools directory:

    touch site_scons/site_tools/__init__.py

    this will allow to directly import site_tools.archives (this may be required by other tools).

Usage example

A simple SConstruct which creates tar archive named foo.tar containning two files: foo.c and foo.h.

# TODO: uncomment following lines if the tool is installed via pip/pipenv
# import sconstool.loader
# sconstool.loader.extend_toolpath(transparent=True)
env = Environment(tools=['archives'])
env.TarFile('foo.tar', ['foo.c', 'foo.h'])

Details

Module description

The scons-tool-archives tool provides builders to create archives, such as tar or zip files. Currently two builders are implemented

Construction variables

There are several construction variables used by the builders. Variables with names starting with TARFILE are used by the TarFile builder, variables starting with ZIPFILE are used by the ZipFile builder.

Variable

Default

TARFILESUFFIX

.tar

TARFILETRANSFORM

TARFILEMAPPINGS

TARFILEMODE

TARFILEBUFSIZE

TARFILECOMPRESSLEVEL

TARFILEFORMAT

TARFILEDEREFERENCE

TARFILEDEBUG

TARFILEENCODING

TARFILEERRORS

ZIPFILESUFFIX

.zip

ZIPFILETRANSFORM

ZIPFILEMAPPINGS

ZIPFILEMODE

ZIPFILECOMPRESSION

ZIPFILEALLOW64

ZIPFILECOMPRESSLEVEL

LICENSE

Copyright (c) 2018-2020 by Paweł Tomulik <ptomulik@meil.pw.edu.pl>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

Metadata

Release files for scons-tool-archives 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scons-tool-archives 0.2.1
File Size Uploaded Provenance
scons-tool-archives-0.2.1.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scons-tool-archives 0.2.1
File Interpreter ABI Platform
scons_tool_archives-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / scons-tool-archives-0.2.1.tar.gz

Download URL scons-tool-archives-0.2.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b6206595dbaaf94cb099736fc21dd04b098e215b20c0fb3b2bc874cd9ab7d44c
BLAKE2b-256 checksum
How to use checksums
faf526cf60fd428c95b5045e1f012205b86ceea40c7d3ee020106b02009c8810
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / scons_tool_archives-0.2.1-py3-none-any.whl

Download URL scons_tool_archives-0.2.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f25864ab03309ab5c7253826315d432f0665680874a4884e52cf7e2997fef9fe
BLAKE2b-256 checksum
How to use checksums
530b15e8d43f73e3bb40dc95d5c026661985d78996cf93b099b8f733e507850b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Security for scons-tool-archives 0.2.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page