Skip to content

Commit fab10da

Browse files
committed
build now includes deployment
1 parent 8d20477 commit fab10da

File tree

4 files changed

+59
-36
lines changed

4 files changed

+59
-36
lines changed

.appveyor.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
branches:
2+
only:
3+
- master
4+
5+
environment:
6+
global:
7+
# only do for Python >= 3.6.
8+
CIBW_SKIP: "cp27-* cp33-* cp34-* cp35-*"
9+
CIBW_BEFORE_BUILD: "python -m pip install -r requirements.txt"
10+
11+
TWINE_USERNAME: mabucchi
12+
TWINE_PASSWORD:
13+
secure: ffBVdW93F+PhTrof4BvLYw==
14+
15+
install:
16+
- python -m pip install cibuildwheel==0.10.1
17+
18+
build_script:
19+
- cibuildwheel --output-dir dist
20+
21+
deploy_script:
22+
- python -m pip install twine
23+
# Remove for deployment to official PyPi repo
24+
- "python -m twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist\\*.whl"
25+
26+
artifacts:
27+
- path: "dist\\*.whl"
28+
name: Wheels

.travis.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
env:
22
global:
3-
# only do for Python >= 3.6.
4-
- CIBW_SKIP="cp27-* cp33-* cp34-* cp35-* *-manylinux1_i686"
5-
- CIBW_BEFORE_BUILD="python -m pip install -r requirements.txt"
3+
- CIBW_SKIP="cp27-* cp33-* cp34-* cp35-* *-manylinux1_i686"
4+
- CIBW_BEFORE_BUILD="python -m pip install -r requirements.txt"
65
matrix:
76
include:
8-
- language: python
9-
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
10-
sudo: required
11-
python: "3.7"
12-
services:
13-
- docker
14-
install:
15-
- pip3 install --upgrade cibuildwheel
16-
- touch .cibuildwheel
17-
- os: osx
18-
language: generic
19-
install:
20-
- sudo pip2 install --upgrade cibuildwheel
21-
- touch .cibuildwheel
22-
7+
- language: python
8+
dist: xenial
9+
sudo: required
10+
python: '3.7'
11+
services:
12+
- docker
13+
install:
14+
- pip3 install --upgrade cibuildwheel
15+
- touch .cibuildwheel
16+
- os: osx
17+
language: generic
18+
install:
19+
- sudo pip2 install --upgrade cibuildwheel
20+
- touch .cibuildwheel
2321
script:
24-
- cibuildwheel --output-dir wheelhouse
22+
- cibuildwheel --output-dir dist
23+
deploy:
24+
provider: pypi
25+
server: https://testpypi.python.org/pypi # Remove for deployment to official PyPi repo
26+
user: mabucchi
27+
password:
28+
secure: KYsU0zhPKH0H/mjnURuhfh+uls6/hOtss2vny2T4XB3ji7721FlZQ1FQ8Hgxub8kcfjPZ/2extmBfi4rlLNZu5y4vltLpCXfvU1495g+RY9MI5azfNRrM4TMxzDG/91b06YgfLeVIR/n/4zuNhykOns80UE5U2MJch5oAjrSwkQjosjxdWz7z7PL1Livu4AgRRHULiMzEkCxEKrmfowa5WK1019jBblbrGl8RWamGx9orKf5sRLobuMXcLKxeQyQ2ah7UY1up9///t5GZTUXZP79osDDMghR2R0TigI+xdzIqHVY+RxxmsG3+IEjkviG65mSYOhNxcyN6gCZ6TecukMdmZVpVvhu6fk5qCzeXOCeZtOFHlU9orpKug0stJj4MeEaJsfUVEfG8Uqojl785mR2SAkrHCxP+QLR+oA0HCocIQQcVVP3ugqtbh2vWJOaGnfy8GHJxhBrLATAgFhq7JRTmh4i4TOExyOl00eXHOemy/gD8IkWf4f8sE83a6IeU8KqfV6QK7bxpYQM2yin2arTOvs7yqgPvWaKx837f5wdIq0DJ0Bkp/G7s7wdFjTtxbjKmphEayKjULYsy90F52ob5gSeqD7ZBnd6Bh4DBlEVN7taWkA9SoAKBUPxIy/TaknSd91+u224XMRd+huu8eCQ1/G+/13wubz5EnxAzlI=
29+
skip_existing: true

README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,10 @@ Python implementation for Balu, a computer vision, pattern recognition and image
99

1010
## Setup for development and testing
1111

12-
### Requirements
13-
Python 3.6 or higher is required to run setup and installation, together with the following packages:
14-
- cython
15-
- numpy
16-
- scipy
17-
- imageio
18-
- scikit-image
19-
- scikit-learn
20-
- tqdm
12+
Python 3.6 or higher is required to use this package. In order to install, simply run
13+
```bash
14+
$ pip install --index-url https://test.pypi.org/simple/ pybalu
15+
```
2116

22-
Also, your sistem needs `C` compiling capabilities in order to compile the bits of the package that are written in low level languages.
23-
### Setup process
24-
To test locally, open a terminal on this projects root folder and run the following commands:
25-
- `python setup.py build` in order to just build the package into a fully functional library. The code will be output to the `build` folder on the project's root
26-
- `python setup.py install` installs the built package into the given python libsites, making it available for usage (`import pybalu`) while running python anywhere on the filesystem. If the build proceess was not executed beforehand, this step will perform both the build and install commands
27-
### Upgrading to newer versions
28-
If you've performed changes on the source code and are interested on installing the newer version, either the build folder must be cleaned, or the version number written on the `setup.py` file should be bumped up.
17+
## Documentation
18+
_TODO_

pybalu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
from . import performance_eval
1111
from . import utils
1212

13-
__version__ = '0.1.5'
13+
__version__ = '0.2.0'

0 commit comments

Comments
 (0)