Skip to main content

macropragma - apply macros/substitutions/modifications on top of your source code

Project description

macropragma - apply macros/substitutions/modifications on top of your source code

Introduction

The intention is to easily modify/add/remove macros within source files. Typical usage is during installation procesess in order to modify involved source files.

Usage

  • Create "my.yaml" file.
  • Add it to the prebuild, build or installation task.

Examples

Execution

python3 -m macropragma -h
# Typical usage:
python3 -m macropragma -c <CONFIG_YAML=my.yaml> -d <PROJECT_ROOT>

<CONFIG_YAML=my.yaml>

# One full entry
db/evr-mtca-300u.db: #file to process
    greps: #grep for the lines under concern
        - "$(SYS)"
        - "$(D)"
    subs: #substitute the elements
        "{$(D)}": "$(D)"
        "{$(D)": "$(D)"
        "$(D)-": "$(D)"
        "}": "-"
        ":": ""
        "$(SYS)$(D)": "$(P)$(R=)$(S=:)"
    output: #store the processed file into
        "db/evr-mtca-300u-univ.db"

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

macropragma-1.0.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

macropragma-1.0.8-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file macropragma-1.0.8.tar.gz.

File metadata

  • Download URL: macropragma-1.0.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

File hashes

Hashes for macropragma-1.0.8.tar.gz
Algorithm Hash digest
SHA256 42054b75247db888348ed86724978acd5f281221d23a4435d529034ffb44fa98
MD5 6f03008b3c3af60a20857e7b26c849dd
BLAKE2b-256 15aec5cd034f4e6c120bf175c12fa0e0e728a5cf82a48af3c2905828e7bff8b0

See more details on using hashes here.

File details

Details for the file macropragma-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: macropragma-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

File hashes

Hashes for macropragma-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 742ff6a2f77764dc64609cd10236c823293a261835b1f570f73e6d94c53d1ded
MD5 7eb1639e6b222879d55d79f094079544
BLAKE2b-256 881824533242fe9c307e6b6319e11a9bfc6fc84f18022a61a7fe05823fd4715a

See more details on using hashes here.

Supported by

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