Skip to main content

Setup tools for Lyncs and CMake support

Project description

Setup tools for Lyncs and CMake support

python pypi license build & test codecov pylint black

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, license
  • keywords: (>3 chars or capital) words in description

Defaulted values

  • classifiers: python 3-only, science

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

lyncs_setuptools-0.2.6.tar.gz (11.4 kB view hashes)

Uploaded Source

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