Skip to content

Commit 75028ff

Browse files
authored
Merge pull request #6 from JoyStream/development
dev to master release v0.1.2
2 parents fb63c06 + d9f1410 commit 75028ff

9 files changed

Lines changed: 51 additions & 9 deletions

File tree

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015-2017 JoyStream AS
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

LICENSE.md

Whitespace-only changes.

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33

44
A C++ payment channel library for doing off-chain micropayments. It has no refund transaction, and uses CSV instead, and also supports multiway channels in a single contract transaction.
55

6-
Current published release: `PaymentChannel/0.1.1@joystream/stable`
6+
conan package name: `PaymentChannel/0.1.2@joystream/stable`
7+
8+
To access the package you need to use the joystream bintray repository:
9+
10+
`conan remote add joystream-bintray https://api.bintray.com/conan/joystream/joystream True`
11+
712

813
### Dependencies
914

@@ -50,4 +55,5 @@ sh run_tests.sh
5055

5156
## License & Copyright
5257

53-
`...add later...`
58+
JoyStream paymentchannel library is released under the terms of the MIT license.
59+
See [LICENSE](LICENCE) for more information.

conan_package/base.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ class PaymentChannelBase(ConanFile):
55
name = "PaymentChannel"
66
license = "(c) JoyStream Inc. 2016-2017"
77
url = "https://github.com/JoyStream/paymentchannel-cpp.git"
8-
git_repo = "git@github.com:JoyStream/paymentchannel-cpp.git"
8+
repo_ssh_url = "git@github.com:JoyStream/paymentchannel-cpp.git"
9+
repo_https_url = "https://github.com/JoyStream/paymentchannel-cpp.git"
910
description = "Conan recipe for paymentchannel-cpp library"
1011

11-
version="0.1.1"
12+
version="0.1.2"
1213
build_policy = "missing"
1314
settings = "os", "compiler", "build_type", "arch"
1415
generators = "cmake"
15-
requires = "Common/0.1.1@joystream/stable"
16+
requires = "Common/0.1.2@joystream/stable", "CoinCore/0.1.2@joystream/stable"
1617

1718
def source(self):
1819
raise Exception("abstract base package was exported")
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from base import PaymentChannelBase
2+
3+
# Use this recipe when creating recipies for uploading to joystream conan repo on stable channel
4+
# Source will be fetched from github repo
5+
6+
class PaymentChannelRelease(PaymentChannelBase):
7+
exports = "base.py"
8+
9+
# make extra sure no sources are exported by base package
10+
exports_sources = ""
11+
12+
def source(self):
13+
self.run("git clone %s repo" % self.repo_https_url)
14+
self.run("cd repo && git checkout v%s" % self.version)

conan_package/release_fetches_source.py renamed to conan_package/release_fetches_source_ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ class PaymentChannelRelease(PaymentChannelBase):
1010
exports_sources = ""
1111

1212
def source(self):
13-
self.run("git clone %s repo" % self.git_repo)
13+
self.run("git clone %s repo" % self.repo_ssh_url)
1414
self.run("cd repo && git checkout v%s" % self.version)

conan_package/test_package/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PROJECT(PackageTest)
2-
cmake_minimum_required(VERSION 2.8.12)
2+
cmake_minimum_required(VERSION 3.1)
33

44
set(CMAKE_CXX_STANDARD 11)
55

example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PROJECT(PackageTest)
2-
cmake_minimum_required(VERSION 2.8.12)
2+
cmake_minimum_required(VERSION 3.1)
33

44
set(CMAKE_CXX_STANDARD 11)
55

sources/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
22

33
project(PaymentChannel CXX)
44

0 commit comments

Comments
 (0)