+ build dependencies

~ moving dependencies installation before build (how could this work 
before ?)
+ slixmpp explicit dependency (was pulled by slixmpp-omemo)
This commit is contained in:
nicobo 2021-02-08 22:09:31 +01:00
parent ea1cddfdf3
commit d3e35d58f4
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F
3 changed files with 26 additions and 1 deletions

View file

@ -12,12 +12,28 @@ jobs:
os: osx
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS
# Build requisites (only some of them)
addons:
apt:
packages:
# See the Dockerfiles for more details about those dependencies
- build-essential
- cmake
- g++
- git
- libffi-dev
- libssl-dev
- make
- python3-dev
- rustc
homebrew:
packages: rust
install:
- pip3 install -r requirements-build.txt -r requirements-runtime.txt
# Generates nicobot/version.py
# 'python' points to Python 2.7 on macOS but points to Python 3.8 on Linux and Windows
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
- python3 setup.py build || python setup.py build
- pip3 install -r requirements-build.txt -r requirements-runtime.txt
script:
# 'python' points to Python 2.7 on macOS but points to Python 3.8 on Linux and Windows
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only

View file

@ -1,4 +1,8 @@
clean:
rm -rf build
build:
pip3 install --upgrade -r requirements-build.txt -r requirements-runtime.txt
python3 setup.py build sdist bdist_wheel
build-docker-alpine:
@ -24,3 +28,7 @@ docker-askbot:
docker-transbot:
docker run --rm -it nicolabs/nicobot:debian transbot $(ARGS)
# All targets might be declared phony, since this Makefile is just a helper
# However most just don't match a file/directory so they will work without it
.PHONY: build test

View file

@ -11,4 +11,5 @@ emoji-country-flag
pyyaml
##### Requirements for jabber #####
slixmpp
slixmpp-omemo