Skip to content

Commit 74ae5c0

Browse files
committed
Merge remote-tracking branch 'mithro/master' into master
2 parents e2237e6 + 18b701c commit 74ae5c0

File tree

14 files changed

+1148
-184
lines changed

14 files changed

+1148
-184
lines changed

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
language: python
2+
3+
jobs:
4+
include:
5+
- stage: test
6+
python: 2.7
7+
env: TOXENV=py27
8+
name: "Python 2.7"
9+
- python: 3.4
10+
env: TOXENV=py34
11+
name: "Python 3.4"
12+
- python: 3.5
13+
env: TOXENV=py35
14+
name: "Python 3.5"
15+
- python: 3.6
16+
env: TOXENV=py36
17+
name: "Python 3.6"
18+
- stage: deploy
19+
python: 3.6
20+
name: "Upload dev version to PyPi"
21+
script: ./.push-to-pypi.sh
22+
23+
stages:
24+
- test
25+
- name: deploy
26+
if: branch = master
27+
28+
install:
29+
- git fetch --tags
30+
- cd programmer
31+
- pip install --upgrade tox
32+
- pip install --upgrade setuptools_scm
33+
34+
script:
35+
- tox
36+
37+
notifications:
38+
email: false
39+
40+
git:
41+
depth: false

programmer/.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[paths]
22
source =
3-
tinyfpgab/
3+
tinyprog/
44

55
[run]
66
branch = True

programmer/.gitignore

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
.cache
2-
.coverage
1+
# general things to ignore
2+
htmlcov/
3+
build/
4+
dist/
5+
*egg*
6+
*.py[cod]
7+
__pycache__/
8+
*.so
9+
*~
10+
tinyprog/full_version.py
11+
12+
# due to using tox and pytest
313
.tox
14+
.coverage
415
.pytest_cache
5-
*.pyc
6-
__pycache__
7-
htmlcov
8-
build
9-
dist
10-
*.egg-info
16+
.cache

programmer/.push-to-pypi.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
3+
if [ -z "$PYPI_USERNAME" ]; then
4+
echo "\$PYPI_USERNAME not set."
5+
echo "Not uploading to PyPi."
6+
exit 0
7+
fi
8+
9+
if [ -z "$PYPI_PASSWORD" ]; then
10+
echo "\$PYPI_PASSWORD not set."
11+
echo "Not uploading to PyPi."
12+
exit 0
13+
fi
14+
15+
if [ "$TRAVIS_BRANCH" != "master" ]; then
16+
echo "Not on 'master' branch (on $TRAVIS_BRANCH)."
17+
echo "Not uploading to PyPi."
18+
exit 0
19+
fi
20+
21+
set -x
22+
set -e
23+
24+
if [ ! -e ~/.pypirc ]; then
25+
cat > ~/.pypirc <<EOF
26+
[distutils]
27+
index-servers =
28+
pypi
29+
30+
[pypi]
31+
username:$PYPI_USERNAME
32+
password:$PYPI_PASSWORD
33+
EOF
34+
35+
fi
36+
37+
export SETUPTOOLS_SCM_PRETEND_VERSION="$(python setup.py --version | sed -e's/+.*$//')"
38+
echo "SETUPTOOLS_SCM_PRETEND_VERSION='$SETUPTOOLS_SCM_PRETEND_VERSION'"
39+
40+
python setup.py --version
41+
python setup.py check -m -s
42+
python setup.py install
43+
tinyprog --help
44+
tinyprog --version
45+
46+
python setup.py sdist
47+
python setup.py bdist_wheel --universal
48+
49+
pip install twine
50+
twine upload dist/*

0 commit comments

Comments
 (0)