Skip to main content

Packaging tool for PEP 518 projects with Setuptools backend.

Project description

Setl (pronounced like settle) is a simple way to work with PEP 518 projects with Setuptools as the backend.

The interface is strongly influenced by Flit. Currently a proof of concept.

Usage

  1. Create a project with appropriate setup.py and/or setup.cfg metadata declarations.

  2. Create pyproject.toml and provide the needed PEP 518 definitions. An empty file is sufficient if you want to use the default values.

  3. Run this command to upload your code to PyPI (using --python to specify the Python to build the package against):

    setl --python path/to/python publish

Miscellaneous

To install a package locally for development, run:

setl --python path/to/python develop

(This is simply a wrapper to path/to/python -m pip install -e.)

All build commands are available via setl build:

setl --python path/to/python build [--ext] [--py] [--clib] [--scripts]

To create package distributions (equivalent to flit build), use:

setl --python path/to/python dist [--source] [--wheel]

The --python specification accepts one of the followings:

  • Absolute or relative path to a Python executable.

  • Python command (shutil.which is used to resolve).

  • Python version specifier (the Python launcher is used to resolve).

It can also be specified by environment variable SETL_PYTHON.

If not specified, Setl will try to infer the command from virtual environment contextx, both the one currently active, and the one Setl is installed in. The option is required if there’s no active virtual environment, and Setl is installed globally.

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

setl-0.3.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

setl-0.3.0-py2.py3-none-any.whl (12.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file setl-0.3.0.tar.gz.

File metadata

  • Download URL: setl-0.3.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for setl-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ed3cf9b6307e9a2e4b95eb207bd2db9c5f9ad4eb0dc0d175f31fd1c3e0869877
MD5 eea07f096db9537e4e0c93c34551b1f0
BLAKE2b-256 ea71b20ad09ae5208c24ff6e1e465e7ef833b5f254484a180fcecbf5413eaece

See more details on using hashes here.

Provenance

File details

Details for the file setl-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: setl-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for setl-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 60b2bc42dbb43fad77a76a0e56d6e3b8127b2ab64b6894d4d53c10f58a48d136
MD5 7ca04d5d08f81d4dcfd71393ea08a4e4
BLAKE2b-256 9405f5d47a68fd28cf7a25e09ff519db47b41ff90bf64f41a50463a7a187adde

See more details on using hashes here.

Provenance

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