Setup tools for Lyncs and CMake support
In this package we provide a wrap around the standard setutools to be used in Lyncs projects.
Installation
The package can be installed via pip:
pip install [--user] lyncs_setuptools
Usage
Lyncs setuptools automizes the deduction of many setup.py options.
Its use in a setup.py file is the following
from lyncs_setuptools import setup
setup(package_name, **kwargs)
where package_name is the name of the package and kwargs are a list of arguments additional or replacement of the one automatically deduced.
NOTE: For seeing the list of the automatically deduced options, run lyncs_setuptools from command line in the directory containing the file setup.py.
NOTE: for correctly installing your package via pip, you need to add a file named pyproject.toml with the following content.
[build-system]
requires = ["lyncs_setuptools", ]
Add "cmake" to the requirements list if you use the following CMake extension.
CMakeExension
Based on https://www.benjack.io/2017/06/12/python-cpp-tests.html we provide a CMakeExtension to support CMake files.
A CMakeExtension can be added as follow
from lyncs_setuptools import setup, CMakeExtension
ext = CMakeExtension(install_dir, source_dir='.', cmake_args=[])
setup(package_name, ext_modules = [ext])
Setup parameters
The following are the parameter used by default in the setup
Automatically deduced:
- author: (git) author of first commit
- author_email: (git) email of author of first commit
- version: (python) value of
__version__defined in__init__.py - url: (git) remote address of origin
- project_urls: (git) defines Source, Documentation, Tracker, Download
- description: (file) first title of the README
- long_description: (file) content of the README
- long_description_content_type: (file) type of README (md/rst)
- classifiers: (partially)
- version: Planning (<0.1.0), Pre-Alpha (<0.3.0), Alpha (<0.6.0), Beta (<1.0.0), Production/Stable (<3.0.0), Mature (>=3.0.0)
- license: TODO
- keywords: (>3 chars or capital) words in description
Defaulted values
- classifiers: python 3-only, science
Metadata
Release files for lyncs-setuptools 0.3.2
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 | |
|---|---|---|---|---|
| lyncs_setuptools-0.3.2.tar.gz | 14.4 kB | Without provenance | Details |
Release files / lyncs_setuptools-0.3.2.tar.gz
| Download URL | lyncs_setuptools-0.3.2.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
032811f21133d3b92e973bde6fa21725abff229424197147a2aabb96cc6e771e
|
|
BLAKE2b-256 checksum How to use checksums |
8c61e45dcfa6bf5ec582cbd3172c2a45bceff2ca229b980ea58f586be64375a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for lyncs-setuptools 0.3.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.