conan-io/conan là một trong những repo phía máy chủ mà TopGit theo dõi, hiện có 9.5k sao, viết chủ yếu bằng Python. Conan - The open-source C and C++ package manager
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Conan is a package manager for C and C++ developers:
It is fully decentralized. Users can host their packages on their servers, privately. Integrates with Artifactory and Bintray.
Portable. Works across all platforms, including Linux, OSX, Windows (with native and first-class support, WSL, MinGW),
Solaris, FreeBSD, embedded and cross-compiling, docker, WSL
Manage binaries. It can create, upload and download binaries for any configuration and platform,
even cross-compiling, saving lots of time in development and continuous integration. The binary compatibility can be configured
and customized. Manage all your artifacts in the same way on all platforms.
Integrates with any build system, including any proprietary and custom one. Provides tested support for major build systems
(CMake, MSBuild, Makefiles, Meson, etc).
Extensible: Its Python-based recipes, together with extension points allow for great power and flexibility.
Large and active community, especially in GitHub (https://github.com/conan-io/conan) and Slack (https://cppalliance.org/slack/ #conan channel).
This community also creates and maintains packages in ConanCenter and Bincrafters repositories in Bintray.
Stable. Used in production by many companies, since 1.0 there is a commitment not to break package recipes and documented behavior.
This is the developer/maintainer documentation. For user documentation, go to https://docs.conan.io
Setup
You can run Conan from source in Windows, MacOS, and Linux:
Note: repository directory name matters, some directories are known to be problematic to run tests (e.g. conan). conan-io directory name was tested and guaranteed to be working.
Install in editable mode
$ cd conan-io && sudo pip install -e .
If you are in Windows, using sudo is not required. Some Linux distros won't allow you to put Python packages in editable mode in the root Python installation, and creating a virtual environment venv first, is mandatory.
You are ready, try to run Conan:
$ conan --help
Consumer commands
install Installs the requirements specified in a recipe (conanfile.py or conanfile.txt).
...
Conan commands. Type "conan <command> -h" for help
Contributing to the project
Feedback and contribution are always welcome in this project.
Please read our contributing guide.
Also, if you plan to contribute, please add some testing for your changes. You can read the Conan
tests guidelines section for
some advice on how to write tests for Conan.
If you are not on Windows and you are not using a Python virtual environment, you will need to run these
commands using sudo.
Before you can run the tests, you need to set a few environment variables first.
$ export PYTHONPATH=$PYTHONPATH:$(pwd)
On Windows it would be (while being in the Conan root directory):
$ set PYTHONPATH=.
Conan test suite defines and configures some required tools (CMake, Ninja, etc) in the
conftest.py and allows to define a custom conftest_user.py.
Some specific versions, like cmake>=3.15 are necessary.
You can run the tests like this:
$ python -m pytest .
A few minutes later it should print OK:
............................................................................................
----------------------------------------------------------------------
Ran 146 tests in 50.993s
OK
To run specific tests, you can specify the test name too, something like:
The -s argument can be useful to see some output that otherwise is captured by pytest.
Also, you can run tests against an instance of Artifactory. Those tests should add the attribute
artifactory_ready.
$ python -m pytest . -m artifactory_ready
Some environment variables have to be defined to run them. For example, for an
Artifactory instance that is running on the localhost with default user and password configured, the
variables could take the values:
ARTIFACTORY_DEFAULT_URL is the base URL for the Artifactory repo, not one for a specific
repository. Running the tests with a real Artifactory instance will create repos on the fly so please
use a separate server for testing purposes.
Có — conan-io/conan phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/conan-io/conan.
conan-io/conan có trang demo không?
Dự án có trang chủ ở https://conan.io. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
conan-io/conan dùng license gì?
conan-io/conan phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
conan-io/conan là gì?
conan-io/conan (conan-io/conan) là dự án Python trên GitHub. Theo mô tả gốc: Conan - The open-source C and C++ package manager
Cùng nhóm Backend còn repo nào?
conan-io/conan thuộc nhóm Backend trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về conan-io/conan ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/conan-io/conan là nguồn chính thức.
Vì sao conan-io/conan được xếp vào nhóm Backend?
TopGit xếp conan-io/conan vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "c", "cmake", "conan"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về conan?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về conan.