autorecipes
Generic Conan recipes for C/C++ and Python projects.
C/C++
If your project
uses CMake,
and installs a package configuration file
that defines the variable <PACKAGE_NAME>_COMPONENTS
with a list of components,
and for each of them defines a target <package_name>::<component>,
then you should be able to copy this recipe to package it for Conan:
from conans import python_requires
CMakeConanFile = python_requires('autorecipes/[*]@jfreeman/testing').cmake()
class Recipe(CMakeConanFile):
name = CMakeConanFile.__dict__['name']
version = CMakeConanFile.__dict__['version']
Python
If your project
then you should be able to copy this recipe to package it for Conan:
from conans import python_requires
PythonConanFile = python_requires('autorecipes/[*]@jfreeman/testing').python()
class Recipe(PythonConanFile):
name = PythonConanFile.__dict__['name']
version = PythonConanFile.__dict__['version']
FAQ
Why do I need to copy the name and version attributes from the base class?
Conan parses the recipe looking for the name and version attributes, instead of just executing it. Thus, we must copy the attributes to move past that check.
Further, these attributes are descriptors. Accessing them with dot notation, like CMakeConanFile.name, evaluates them against the class CMakeConanFile instead of your recipe, but they need the most derived type to work correctly.
Can I override some attributes?
Yes. These base classes just provide default values.
Metadata
Release files for autorecipes 0.2.0
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 | Actions |
|---|---|---|---|---|
| autorecipes-0.2.0.tar.gz | 11.5 kB | Without provenance | Details for autorecipes-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autorecipes-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for autorecipes-0.2.0-py3-none-any.whl |
Total release size: 24.7 kB
Release files / autorecipes-0.2.0.tar.gz
| Download URL | autorecipes-0.2.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd57e472b30a366e612ef52bc954e7c69b3e7a25150941aa30a3a95cf4337a92
|
|
BLAKE2b-256 checksum How to use checksums |
248cdb4680f4266f6bc4a31fe2d07fd8180394bd78fc0cdb51e52c932abf80a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0a3 CPython/3.6.8+ Linux/4.15.0-52-generic
|
Release files / autorecipes-0.2.0-py3-none-any.whl
| Download URL | autorecipes-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
555a0731f8818ad83582f978d24ae64751d7ed47aabf57fd75d48fc608d74821
|
|
BLAKE2b-256 checksum How to use checksums |
2411e7556f9dfe69e128036e3aa4c67be77b9b4375905ee495f1c18fa4f406f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0a3 CPython/3.6.8+ Linux/4.15.0-52-generic
|
Security for autorecipes 0.2.0
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.