Skip to main content

SCons tool to create archives

Project description

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 by Pawel 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scons-tool-archives-0.1.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

scons_tool_archives-0.1.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file scons-tool-archives-0.1.2.tar.gz.

File metadata

  • Download URL: scons-tool-archives-0.1.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3rc1

File hashes

Hashes for scons-tool-archives-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6320885971a235d57b0fe1000d61be13de5dc6aa9fbf789f1338950c3df924e6
MD5 c5ad9b315eddf4f8a1d2032ae584d3e4
BLAKE2b-256 a35f0dfcbdbf36e559e68374209449762028a63261934c1c0a1c2785c91d397c

See more details on using hashes here.

File details

Details for the file scons_tool_archives-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: scons_tool_archives-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3rc1

File hashes

Hashes for scons_tool_archives-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5c5d8fdaf2d3a0d87c84caa88d1882748930fe6707d1dd824a05298c61159c8
MD5 bf7cf6aa6e24c100ceda26ac82370a57
BLAKE2b-256 5b5e3a9966b44d3851d1003411248e1cb4a9a228238294b4f3643e0a1bb309b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page