Skip to content

Commit

Permalink
Merge pull request #19 from madebr/master
Browse files Browse the repository at this point in the history
Add **kwargs to functions that return a builder + remove shebang
  • Loading branch information
uilianries authored Mar 15, 2019
2 parents e50bb7f + fe2aaf9 commit 75ce20b
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ matrix:
fast_finish: true
include:
- os: linux
dist: xenial
sudo: false
language: python
python: '2.7'
- os: linux
dist: xenial
sudo: false
language: python
python: '3.6'
python: '3.7'
- os: osx
language: generic
osx_image: xcode9
Expand Down
2 changes: 2 additions & 0 deletions bincrafters/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = '0.17.9'
3 changes: 1 addition & 2 deletions bincrafters/build_paths.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

BINCRAFTERS_REPO_URL = "https://api.bintray.com/conan/bincrafters/public-conan"
BINCRAFTERS_REPO_URL = "https://api.bintray.com/conan/bincrafters/public-conan"
1 change: 0 additions & 1 deletion bincrafters/build_shared.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
Expand Down
7 changes: 4 additions & 3 deletions bincrafters/build_template_boost_default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
Expand All @@ -20,7 +19,8 @@ def add_boost_shared(build):
def get_builder(shared_option_name=None,
pure_c=False,
dll_with_static_runtime=False,
build_policy=None):
build_policy=None,
**kwargs):

# Bincrafters default is to upload only when stable, but boost is an exception
# Empty string allows boost packages upload for testing branch
Expand All @@ -31,7 +31,8 @@ def get_builder(shared_option_name=None,
shared_option_name=shared_option_name,
pure_c=pure_c,
dll_with_static_runtime=dll_with_static_runtime,
build_policy=build_policy)
build_policy=build_policy,
**kwargs)
builder.builds = map(add_boost_shared, builder.items)

return builder
1 change: 0 additions & 1 deletion bincrafters/build_template_boost_header_only.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
Expand Down
7 changes: 4 additions & 3 deletions bincrafters/build_template_default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bincrafters import build_shared
Expand All @@ -7,7 +6,8 @@
def get_builder(shared_option_name=None,
pure_c=True,
dll_with_static_runtime=False,
build_policy=None):
build_policy=None,
**kwargs):

builder = build_shared.get_builder(build_policy)
if shared_option_name is None and build_shared.is_shared():
Expand All @@ -16,6 +16,7 @@ def get_builder(shared_option_name=None,
builder.add_common_builds(
shared_option_name=shared_option_name,
pure_c=pure_c,
dll_with_static_runtime=dll_with_static_runtime)
dll_with_static_runtime=dll_with_static_runtime,
**kwargs)

return builder
1 change: 0 additions & 1 deletion bincrafters/build_template_header_only.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bincrafters import build_shared
Expand Down
1 change: 0 additions & 1 deletion bincrafters/build_template_installer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bincrafters import build_shared
Expand Down
1 change: 0 additions & 1 deletion examples/build_header_only.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bincrafters import build_template_header_only
Expand Down
1 change: 0 additions & 1 deletion examples/build_shared_library.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bincrafters import build_template_default
Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
2 changes: 2 additions & 0 deletions tests/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

from conans import ConanFile
from conans import tools

Expand Down
1 change: 0 additions & 1 deletion tests/test_package_tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
Expand Down
1 change: 0 additions & 1 deletion tests/test_shared_option.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import tempfile
Expand Down

0 comments on commit 75ce20b

Please sign in to comment.