Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
PRRT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
37
Issues
37
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LARN
PRRT
Commits
b64738a0
Commit
b64738a0
authored
Jan 11, 2017
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PyPI packaging, including automated builds.
parent
b471cf83
Pipeline
#759
failed with stages
in 55 seconds
Changes
7
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
118 additions
and
23 deletions
+118
-23
.gitignore
.gitignore
+12
-6
.gitlab-ci.yml
.gitlab-ci.yml
+47
-14
MANIFEST.in
MANIFEST.in
+2
-0
Vagrantfile
Vagrantfile
+20
-0
setup.cfg
setup.cfg
+3
-0
setup.py
setup.py
+29
-3
tests/lib/.gitignore
tests/lib/.gitignore
+5
-0
No files found.
.gitignore
View file @
b64738a0
build/
bin/
*.cmake
src/cython/prrt.c
*.cbp
*.pyc
CMakeCache.txt
.vagrant/
build/
bin/
CMakeFiles/
Makefile
cython_debug/
prrt.cpython*.so
dist/
prrt.egg-info/
tests/__pycache__/
CMakeCache.txt
Makefile
MANIFEST
prrt.cpython*.so
prrt.so
src/cython/prrt.c
\ No newline at end of file
.gitlab-ci.yml
View file @
b64738a0
before_script
:
variables
:
PYPI_USER
:
SECURE
PYPI_PASSWORD
:
SECURE
stages
:
-
build
-
test
-
deploy
-
clean
build_prrt
:
stage
:
build
artifacts
:
name
:
"
$CI_BUILD_REF_NAME$"
untracked
:
true
expire_in
:
"
1h"
script
:
-
which cmake
-
which gcc
-
which g++
-
which valgrind
-
pip3 list | grep Cython
-
pip3 list | grep numpy
-
CC=gcc-5 CXX=g++-5 cmake .
-
make
memcheck
:
test_prrt_mem
:
stage
:
test
script
:
-
which valgrind
-
export prrtResult=0
-
valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/receiver 5000 & export prrtReceiverProcessID=$!
-
valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/sender 100 || prrtResult=$?; kill -INT $prrtReceiverProcessID; wait $prrtReceiverProcessID || prrtResult=$?
...
...
@@ -20,10 +37,26 @@ memcheck:
# - python3 setup.py build_ext --inplace
# - make perftest
pythonbindings
:
test_prrt_functional
:
stage
:
test
script
:
-
python3 setup.py build_ext --inplace
-
./bin/prrtTests
tests
:
package_pypi
:
stage
:
deploy
script
:
-
./bin/prrtTests
-
echo "[distutils]" >> ~/.pypirc
-
echo "index-servers =" >> ~/.pypirc
-
echo " on" >> ~/.pypirc
-
echo " " >> ~/.pypirc
-
echo "[on]" >> ~/.pypirc
-
echo "repository=http://git.nt.uni-saarland.de:5678" >> ~/.pypirc
-
echo "username=$PYPI_USER" >> ~/.pypirc
-
echo "password=$PYPI_PASSWORD" >> ~/.pypirc
-
python3 setup.py check sdist bdist upload -r on
clean_pypirc
:
stage
:
clean
when
:
always
script
:
-
rm -vf ~/.pypirc
MANIFEST.in
0 → 100644
View file @
b64738a0
include requirements.txt
recursive-include src *
\ No newline at end of file
Vagrantfile
0 → 100644
View file @
b64738a0
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant
.
configure
(
2
)
do
|
config
|
config
.
vm
.
box
=
"ubuntu/xenial64"
config
.
vm
.
box_check_update
=
false
config
.
vm
.
provider
"virtualbox"
do
|
v
|
v
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
v
.
name
=
"prrt"
v
.
memory
=
"2048"
v
.
cpus
=
"2"
end
config
.
vm
.
provision
"shell"
,
inline:
<<-
SHELL
sudo sed -i 's@http://archive.ubuntu.com/ubuntu@http://ftp.uni-kl.de/pub/linux/ubuntu/@' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y python-dev python-pip
SHELL
end
setup.cfg
0 → 100644
View file @
b64738a0
[bdist_wheel]
# This code is written to work with both Python 2 and Python 3
universal=1
setup.py
View file @
b64738a0
from
distutils.core
import
setup
from
setuptools
import
setup
from
distutils.extension
import
Extension
from
Cython.Build
import
cythonize
import
os
...
...
@@ -6,7 +6,33 @@ import os
os
.
environ
[
"CC"
]
=
"gcc-5"
os
.
environ
[
"CXX"
]
=
"g++-5"
ext
=
Extension
(
name
=
'prrt'
,
sources
=
[
"src/cython/**/*.pyx"
])
ext_modules
=
cythonize
(
ext
,
gdb_debug
=
True
)
setup
(
name
=
'prrt'
,
version
=
'0.0.12'
,
description
=
'Predictably Reliable Real-time Transport'
,
long_description
=
'Predictably Reliable Real-time Transport Protocol'
,
url
=
'https://git.nt.uni-saarland.de/LARN/PRRT'
,
author
=
'Andreas Schmidt'
,
author_email
=
'schmidt@nt.uni-saarland.de'
,
license
=
'MIT'
,
classifiers
=
[
# 3 - Alpha // 4 - Beta // 5 - Production/Stable
'Development Status :: 3 - Alpha'
,
# Audience and Topic
'Intended Audience :: Developers'
,
'Topic :: Communications'
# Supported Python Versions
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.2'
,
'Programming Language :: Python :: 3.3'
,
'Programming Language :: Python :: 3.4'
],
install_requires
=
[
"cython==0.25.2"
],
keywords
=
'prrt protocol'
,
include_dirs
=
[
"./src"
],
ext_modules
=
cythonize
(
"src/cython/**/*.pyx"
,
gdb_debug
=
True
)
ext_modules
=
ext_modules
)
tests/lib/.gitignore
View file @
b64738a0
!*.cmake
gtest-1.8.0/CTestTestfile.cmake
gtest-1.8.0/cmake_install.cmake
gtest-1.8.0/googlemock/CTestTestfile.cmake
gtest-1.8.0/googlemock/cmake_install.cmake
gtest-1.8.0/googlemock/gtest/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment