Dismiss
JJooiinn G
GiittH
Huubb ttooddaayy
GitHub is home to over 20 million developers working together to host
and review code, manage projects, and build software together.
SSiiggnn uupp
ddeevveelloopp N
Neew
w ppuullll rreeqquueesstt FFiinndd ffiillee C
Clloonnee oorr ddoow
wnnllooaadd
m
meem
msshhaarrddeedd committed with llaassoottee dont write bytecode and tests outputs (#1835)
Latest commit d210659 3 hours ago
conans dont write bytecode and tests outputs (#1835) 3 hours ago
.travis.yml Travis: Less builds if not release or master (#1769) 14 days ago
appveyor.yml Appveyor simpified for features and develop (#1088) 7 months ago
pyinstaller.py Fixing package creation with new Pylint (#1776) 13 days ago
R
REEAAD
DMMEE..rrsstt
C
Coonnaann
m
maasstteerr ((lliinnuuxx//oossxx)) ddeevveelloopp ((lliinnuuxx//oossxx)) m
maasstteerr ((w
wiinnddoow
wss)) ddeevveelloopp ((w
wiinnddoow
wss))
C
Coovveerraaggee ddeevveelloopp C
Coovveerraaggee m
maasstteerr C
Coovveerraaggee ggrraapphh
S
Seettuupp
FFrroom
m bbiinnaarriieess
We have installers for most platforms here but you can run ccoonnaann from sources if you want
FFrroom
m ppiipp
Conan is compatible with Python 2 and Python 3.
FFrroom
mHHoom
meebbrreew
w ((O
OSSxx))
Install Homebrew following brew homepage.
$ brew update
$ brew install conan
FFrroom
m ssoouurrccee
You can run ccoonnaann client and server in Windows, MacOS, and Linux.
IInnssttaallll ppyytthhoonn aanndd ppiipp,, sseeaarrcchh iinn ggooooggllee iinnssttrruuccttiioonnss ffoorr yyoouurr ooppeerraattiinngg ssyysstteem
m..
C
Clloonnee ccoonnaann rreeppoossiittoorryy
Server:
R
Ruunnnniinngg tthhee tteessttss
Make sure that the Python requirements for testing have been installed, as explained above.
Before you can run the tests, you need to set a few environment variables first.
$ export PYTHONPATH=$PYTHONPATH:$(pwd)
$ set PYTHONPATH=.
Ensure that your cmake has version 2.8 or later. You can see the version with the following command:
$ cmake --version
The appropriate values of CONAN_COMPILER and CONAN_COMPILER_VERSION depend on your operating system and your
requirements.
These should work for the GCC from build-essential on Ubuntu 14.04:
$ export CONAN_COMPILER=gcc
$ export CONAN_COMPILER_VERSION=4.8
$ export CONAN_COMPILER=clang
$ export CONAN_COMPILER_VERSION=3.5
Finally, there are some tests that use conan to package Go-lang libraries, so you might nneeeedd ttoo iinnssttaallll ggoo--llaanngg in your
computer and add it to the path.
$ nosetests .
There are a couple of test attributes defined, as slow , or golang that you can use to filter the tests, and do not execute
them:
$ nosetests . -a !golang
..............................................................................................................................
----------------------------------------------------------------------
Ran 146 tests in 50.993s
OK
To run specific tests, you can specify the test name too, something like:
The --nocapture argument can be useful to see some output that otherwise is captured by nosetests.
C
Crreeaattee aa llaauunncchheerr
Conan entry point is "conans.conan.main" module. Fill the absolute path of the cloned repository folder:
#!/usr/bin/env python
import sys
sys.path.append('/home/user/conan') # EDIT!!
If you are a Windows user, you can name this file "conan.py" and create a file "conan.bat" that calls the python module:
Then add that 'conan' file to your PATH and you are ready:
$ conan --help
LLiicceennssee
MIT LICENSE