Skip to content

Commit cdad5bf

Browse files
committed
Merge branch 'release/v0.1.0'
2 parents 2c3d7e1 + e3c64c8 commit cdad5bf

27 files changed

+1580
-2
lines changed

.appveyor.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
build: off
2+
3+
platform:
4+
- x64
5+
6+
environment:
7+
matrix:
8+
- TOXENV: "py27"
9+
MINICONDA: "C:\\Miniconda27\\python"
10+
- TOXENV: "py36"
11+
MINICONDA: "C:\\Miniconda37\\python"
12+
13+
install:
14+
- cmd: git submodule update --init --recursive
15+
- cmd: SET PATH=C:\MinGW\bin;%PATH%
16+
- cmd: pip install --force-reinstall tox
17+
18+
test_script:
19+
- cmd: tox
20+
21+
notifications:
22+
- provider: Slack
23+
incoming_webhook:
24+
secure: E9H0SU0Ju7WLDvgxsV8cs3J62T3nTTX7QkEjsczN0Sto/c9hWkVfhc5gGWUkxhlD975cokHByKGJIdwYwCewqOI+7BrcT8U+nlga4Uau7J8=
25+
on_build_success: false
26+
on_build_failure: true
27+
on_build_status_changed: true

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# App specific
7+
*.egg-info/
8+
.tox/
9+
dist/
10+
build/
11+
12+
# Misc
13+
.idea

.isort.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
line_length=88

.pylintrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[MASTER]
2+
jobs=1
3+
4+
[REPORTS]
5+
output-format=colorized
6+
7+
[MESSAGES CONTROL]
8+
disable=
9+
missing-docstring,
10+
ungrouped-imports,
11+
invalid-name,
12+
duplicate-code,
13+
bad-continuation,
14+
fixme,
15+
arguments-differ,
16+
useless-object-inheritance

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: python
2+
3+
matrix:
4+
include:
5+
- os: linux
6+
sudo: required
7+
python: 2.7
8+
env: TOX_ENV=py27
9+
- os: linux
10+
sudo: required
11+
python: 3.6
12+
env: TOX_ENV=py36
13+
- os: osx
14+
language: generic
15+
env: TOX_ENV=py27
16+
17+
install:
18+
- git submodule update --init --recursive
19+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -fsSL https://bootstrap.pypa.io/get-pip.py | sudo python; fi
20+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O /tmp/miniconda.sh; bash /tmp/miniconda.sh -b -p /tmp/miniconda; export MINICONDA="/tmp/miniconda/python"; else wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh; bash /tmp/miniconda.sh -b -p /tmp/miniconda; export MINICONDA="/tmp/miniconda/python"; fi
21+
- pip install -U tox
22+
23+
script:
24+
- tox -e $TOX_ENV
25+
26+
notifications:
27+
email: false
28+
29+
slack:
30+
rooms:
31+
secure: GOUanPMgPnway2tjAblGgoI3FKJD4bM+1fzcpTi4Rutd58WOb9ejgEOTOtfPhrjuUfQt1SP04C5igMQa8o9fagmtI4PUleSC2b8aGivB18gyvMWH4uceHA645+ElulT45SPqkzTYeRsGjrjKD5O1D3JFk6lwFsfzQM5yZ2QSplpMvGG9IvGVfulNzCuSUa66fzzsSRgDWqAfc76s2o6YTF+/gngbxYgwjZp+dGuWOBhEvxEcKXAq4ohSCxPKzTqR87DzS+IMH/nt71hOFZyHRO+5sUDBIxiTyGCIesS9gYVrMgvjCFp8QHWYapj3E3CFaBC5XOE1r/DfNyHfvdqBn6zLwhZPtrflg3dfD8+uPbrwfYRihraUCdI0NiprJGYTSYyduJeg5MqHGD5saTQtpNAMZshxTTse7FcAYT7oYPGf2pxkAGkKfMZb/z3aAIDBQpcUIoWBuZURShFZ1qBmxtVaIiZ9Wm7fLvXXpmINn0xJNeCva57otv4RVWvPj3X5xhCFdshkUeaZndTZPF9RFoCf2FNIR9p4hKqVeBcvpEyMWg/BrczVeLy44NiLgzb8mBx87rU+M9Hxi6OUsCdpAJ4UgHtuQ6XeO0P380KSTDOULdOUuxvPcwoB3QyVxP8lxQNCCH+dFBbeRdQhbu7PYeTmKp0P7/omFiXEGdIycvY=
32+
on_failure: always
33+
on_success: change

Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
lint:
2+
pylint --rcfile=./.pylintrc ./pioinstaller
3+
4+
isort:
5+
isort -rc ./pioinstaller
6+
isort -rc ./tests
7+
8+
format:
9+
black --target-version py27 ./pioinstaller
10+
black --target-version py27 ./tests
11+
12+
test:
13+
py.test --verbose --capture=no --exitfirst -n 1 --dist=loadscope tests
14+
15+
before-commit: isort format lint test
16+
17+
clean:
18+
find . -name \*.pyc -delete
19+
find . -name __pycache__ -delete
20+
rm -rf .cache
21+
rm -rf build
22+
rm -rf htmlcov
23+
rm -f .coverage
24+
25+
profile:
26+
# Usage $ > make PIOARGS="boards" profile
27+
python -m cProfile -o .tox/.tmp/cprofile.prof $(shell which platformio) ${PIOARGS}
28+
snakeviz .tox/.tmp/cprofile.prof
29+
30+
publish:
31+
python setup.py sdist upload

README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
PlatformIO Core Installer
2+
=========================
3+
4+
.. image:: https://travis-ci.org/platformio/platformio-core-installer.svg?branch=develop
5+
:target: https://travis-ci.org/platformio/platformio-core-installer
6+
:alt: Travis.CI Build Status
7+
.. image:: https://ci.appveyor.com/api/projects/status/2crg7e2oxutmk07r/branch/develop?svg=true
8+
:target: https://ci.appveyor.com/project/ivankravets/platformio-core-installer
9+
:alt: AppVeyor.CI Build Status
10+
.. image:: https://img.shields.io/badge/license-Apache%202.0-blue.svg
11+
:target: https://pypi.python.org/pypi/platformio/
12+
:alt: License
13+
14+
15+
Standalone installer for `PlatformIO Core <https://docs.platformio.org/en/latest/core/index.html>`_.
16+
17+
Usage
18+
-----
19+
20+
1. Install the latest Python 3 following `this guide <https://docs.platformio.org/en/latest/faq.html#install-python-interpreter>`_ (for Windows)
21+
2. Save contents of https://raw.githubusercontent.com/platformio/platformio-core-installer/develop/get-platformio.py to ``get-platformio.py``
22+
3. Please open system terminal (``cmd.exe``) and run this command
23+
24+
.. code-block::
25+
26+
python get-platformio.py
27+

get-platformio.py

Lines changed: 52 additions & 0 deletions
Large diffs are not rendered by default.

pioinstaller/__init__.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright (c) 2014-present PlatformIO <[email protected]>
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import logging.config
16+
17+
VERSION = (0, 1, 0)
18+
__version__ = ".".join([str(s) for s in VERSION])
19+
20+
__title__ = "platformio-installer"
21+
__description__ = "An installer for PlatformIO Core"
22+
23+
__url__ = "https://platformio.org"
24+
25+
__author__ = "PlatformIO"
26+
__email__ = "[email protected]"
27+
28+
__license__ = "Apache Software License"
29+
__copyright__ = "Copyright 2014-present PlatformIO"
30+
31+
32+
logging.basicConfig(format="%(levelname)s: %(message)s")
33+
logging.config.dictConfig(
34+
{"version": 1, "loggers": {"pioinstaller": {"level": "INFO"}}}
35+
)

0 commit comments

Comments
 (0)