Usage¶
simple503¶
Generate a PEP 503 Python package repository in TARGET for the wheels in ORIGIN.
simple503 [OPTIONS] ORIGIN [TARGET]
Options
-
-B
,
--base-url
<base_url>
¶ The base URL for the Python package repository.
- Default
/
-
-e
,
--extract-metadata
,
-E
,
--no-extract-metadata
¶
Extract and serve METADATA files per PEP 658
-
-s
,
--sort
,
-S
,
--no-sort
¶
Sort the wheel files into per-project base directories.
-
-c
,
--copy
,
-C
,
--no-copy
¶
Copy files from the source to the destination, rather than moving them.
-
--config
<config>
¶ Read option defaults from the specified TOML file.
- Default
simple503.toml
-
--cleanup
¶
Cleanup files generated by simple503 in the target directory, and exit.
Arguments
-
ORIGIN
¶
Required argument.
-
TARGET
¶
Optional argument. Default
None
TARGET defaults to ORIGIN, in which case the index files are generated inplace.
Changed in version 0.3.0: Added the --copy
, --sort
, --config
options, and removed the --move
option.
Changed in version 0.4.0: Added the --no-extract-metadata
option.
Configuration File¶
New in version 0.3.0.
simple503
can load configuration from a configuration file rather than from the command line.
The default filename is simple503.toml
, but this can be changed using the --config
option.
The file uses TOML syntax (version 0.5.0).
the The configuration should be placed in the simple503
table, and the following options are available:
-
simple503.
base-url
¶ - Type: String
The base URL for the Python package repository.
Example:
[simple503] base-url = "/simple"
-
simple503.
target
¶ - Type: String
The directory to create the PEP 503 repository in.
Example:
[simple503] target = "."
-
simple503.
sort
¶ - Type: Boolean
Sort the wheel files into per-project base directories.
Example:
[simple503] sort = true
-
simple503.
copy
¶ - Type: Boolean
Copy files from the source to the destination, rather than moving them.
Example:
[simple503] copy = true
All keys are optional. Options passed on the command line take precedence over those defined in the config file.