adacut
A tool to "cut" versions out of an Ada source file.
The "cuts" are defined using lines that start with a --$ comments marker.
Those lines are in the form --$ {begin, end, line} {question, answer, cut} [{comment, code}]
Example
The file titi_toto.ads
--$ begin question
-- Titi?
--$ end question
--$ begin answer
-- Toto
--$ end answer
can be turned into two different sources using adacut:
adacut -m question titi_toto.ads > titi.ads
-- Titi?
adacut -m answer titi_toto.ads > toto.ads
-- Toto
The -c <CUT> switch allows to cut the given block.
cuttable.ads
--$ begin cut
Answer : Integer := 1;
--$ end cut
--$ begin cut
Answer : Integer := 2;
--$ end cut
adacut -c 1 > cut.ads
Answer : Integer := 1;
Test Adacut
You need pytest to be installed then simply run $ pytest
If you want to perform more exhaustive testing, you can use tox
$ tox
Metadata
Release files for adacut 1.1
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 | |
|---|---|---|---|---|
| adacut-1.1.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adacut-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / adacut-1.1.tar.gz
| Download URL | adacut-1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9989b34b37a77760aa7a68490283ba0f66c05ec0e61501f7ccd768c2182edf43
|
|
BLAKE2b-256 checksum How to use checksums |
d84a02be97c4974c82126869dbf16c56ae50211e160cf149bd2fb50da2b5688f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / adacut-1.1-py3-none-any.whl
| Download URL | adacut-1.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f98e2dddb605358caa8bc95828d8a48d9e8861905b7b2de0e0b4390d71530447
|
|
BLAKE2b-256 checksum How to use checksums |
67d363b39bbcbd895a4b10de756c93d50aef5c46980d27c3e4e7b2429db5e31d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for adacut 1.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.