-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added manylinux binary wheel builds on travis-ci.
Added manylinux dockerfile, dependencies and scripts. Updated travis cfg, libssh build script. Added changelog.
- Loading branch information
Showing
12 changed files
with
126 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Change Log | ||
============= | ||
|
||
0.3.0 | ||
++++++++ | ||
|
||
Changes | ||
------- | ||
|
||
* Added SCP support - #3 | ||
|
||
Packaging | ||
----------- | ||
* Added Linux binary wheels builds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import os | ||
from datetime import datetime | ||
import subprocess | ||
import json | ||
import sys | ||
|
||
def get_describe_tag(): | ||
return subprocess.check_output(['git', 'describe', '--tags']).strip().decode('utf-8') | ||
|
||
def make_version_file(basedir): | ||
rev = os.environ.get('APPVEYOR_REPO_COMMIT', | ||
subprocess.check_output(['git', 'rev-list', '--max-count=1', 'HEAD']).strip().decode('utf-8')) | ||
basedir = os.path.abspath(basedir) | ||
git_desc = get_describe_tag() | ||
version_json = {'date': datetime.now().isoformat(), | ||
'dirty': False, | ||
'error': None, | ||
'full-revisionid': rev, | ||
'version': git_desc} | ||
data = """ | ||
import json | ||
version_json = ''' | ||
%s''' # END VERSION_JSON | ||
def get_versions(): | ||
return json.loads(version_json) | ||
""" % (json.dumps(version_json)) | ||
with open(os.path.join(basedir, 'ssh', '_version.py'), 'w') as fh: | ||
fh.write(data) | ||
|
||
|
||
if __name__ == "__main__": | ||
if not len(sys.argv) > 1: | ||
sys.stderr.write("Need basedir of repo" + os.linesep) | ||
sys.exit(1) | ||
make_version_file(sys.argv[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM quay.io/pypa/manylinux1_x86_64 | ||
|
||
ENV CMAKE cmake-2.8.11.1-5.4.x86_64 | ||
ENV OPENSSL openssl-1.0.2p | ||
ENV LIBSSH 0.7.9 | ||
ENV SYSTEM_LIBSSH 1 | ||
|
||
RUN yum install zlib-devel -y | ||
|
||
ADD ${CMAKE}.rpm cmake.rpm | ||
RUN rpm -i cmake.rpm | ||
|
||
ADD libssh-${LIBSSH}.tar.gz libssh.tar.gz | ||
ADD ${OPENSSL}.tar.gz ${OPENSSL}.tar.gz | ||
|
||
|
||
# Openssl | ||
RUN cd ${OPENSSL}.tar.gz/${OPENSSL} && \ | ||
./config --prefix=/usr --openssldir=/usr/openssl threads shared && \ | ||
make -j6 && make install | ||
|
||
|
||
# Libssh | ||
RUN mkdir -p build_libssh && cd build_libssh && \ | ||
cmake ../libssh.tar.gz/libssh -DCMAKE_BUILD_TYPE=Release && \ | ||
make -j6 install | ||
|
||
|
||
RUN rm -rf ${OPENSSL}* libssh build_libssh | ||
|
||
|
||
VOLUME /var/cache |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
50a98e07b1a89eb8f6a99477f262df71c6fa7bef77df4dc83025a2845c827d00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters