Skip to content

Commit 2f17e21

Browse files
committed
Simplify package setup
1 parent 9de7f29 commit 2f17e21

File tree

12 files changed

+158
-386
lines changed

12 files changed

+158
-386
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.{json,yml,yaml,js,jsx}]
14+
indent_size = 2
15+
16+
[LICENSE]
17+
insert_final_newline = false
18+
19+
[Makefile]
20+
indent_style = tab

.checks.yml renamed to .fussyfox.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- bandit
12
- flake8
3+
- isort
24
- pydocstyle
3-
- bandit

.travis.yml

Lines changed: 57 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,78 @@
1-
sudo: true
1+
language: python
22
dist: xenial
33

4-
services: redis-server
5-
addons:
6-
apt:
7-
packages:
8-
- chromium-chromedriver
9-
10-
language: python
114
python:
12-
- 3.6
13-
- 3.7
14-
cache: pip
5+
- "3.6"
6+
- "3.7"
157
env:
16-
matrix:
17-
- DJANGO=20
18-
- DJANGO=21
19-
- DJANGO=22
20-
- DJANGO=master
8+
- DJANGO=20
9+
- DJANGO=21
10+
- DJANGO=22
11+
- DJANGO=master
12+
2113
matrix:
2214
fast_finish: true
2315
allow_failures:
2416
- env: DJANGO=master
2517

18+
addons:
19+
apt:
20+
packages:
21+
- chromium-chromedriver
22+
23+
install: pip install tox-travis codecov
24+
25+
before_script:
26+
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
27+
- |
28+
if [[ -z $TOXENV ]]; then
29+
export TOXENV=py$(echo $TRAVIS_PYTHON_VERSION | sed -e 's/\.//g')-dj$DJANGO
30+
fi
31+
- echo $TOXENV
32+
33+
script: tox
34+
35+
after_success: codecov
36+
2637
jobs:
2738
include:
28-
- stage: docs
39+
- python: "3.5"
40+
env: TOXENV=docs
2941
addons:
3042
apt:
3143
packages:
3244
- python3-enchant
3345
- python-enchant
3446
- graphviz
35-
python: "3.5"
36-
script: tox -e docs
37-
- stage: qa
38-
addons:
39-
language: node_js
47+
- language: node_js
48+
addons: {}
4049
install: npm install
4150
script: npm test
4251
node_js: lts/*
4352
cache: npm
44-
states:
45-
- qa
46-
- docs
47-
- test
48-
- deploy
49-
install:
50-
- pip install --upgrade pip tox
51-
- pip install -U codecov
52-
before_script:
53-
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
54-
- |
55-
if [[ -z $TOXENV ]]; then
56-
export TOXENV=py$(echo $TRAVIS_PYTHON_VERSION | sed -e 's/\.//g')-dj$DJANGO
57-
fi
58-
- echo $TOXENV
59-
script:
60-
- tox -e $TOXENV
61-
after_success:
62-
- codecov
63-
before_deploy:
64-
- git stash --all
65-
- ./set_version.py
66-
_deploy_provider: &_deploy_provider
67-
skip_cleanup: true
68-
on:
69-
tags: true
70-
repo: applegrew/django-select2
71-
deploy:
72-
- <<: *_deploy_provider
73-
provider: pypi
74-
distributions: sdist bdist_wheel
75-
user: codingjoe
76-
password:
77-
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
78-
- <<: *_deploy_provider
79-
provider: npm
80-
81-
api_key:
82-
secure: PV38cQx9qhEFkpSdytbM72UzIMCfhpjmRJ8dzT+bCAaOIs5rEcyKN+h1r5ranunCxWyuFsMW4A2iW/SCxnKCR/oPAguuwUbT5ogBXlsskqPFWUxuoTHYMrd+zB+SC6+bMgq+o5ul+kJCYtEkWP6cMlIEzKyTLab7m5PsnDXNVnI=
53+
- stage: deploy
54+
if: tag IS present
55+
python: 3.7
56+
install: skip
57+
script: skip
58+
after_success: skip
59+
before_deploy:
60+
- git stash --all
61+
- ./set_version.py
62+
_deploy_provider: &_deploy_provider
63+
skip_cleanup: true
64+
on:
65+
tags: true
66+
repo: applegrew/django-select2
67+
deploy:
68+
- <<: *_deploy_provider
69+
provider: pypi
70+
distributions: sdist bdist_wheel
71+
user: codingjoe
72+
password:
73+
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
74+
- <<: *_deploy_provider
75+
provider: npm
76+
77+
api_key:
78+
secure: PV38cQx9qhEFkpSdytbM72UzIMCfhpjmRJ8dzT+bCAaOIs5rEcyKN+h1r5ranunCxWyuFsMW4A2iW/SCxnKCR/oPAguuwUbT5ogBXlsskqPFWUxuoTHYMrd+zB+SC6+bMgq+o5ul+kJCYtEkWP6cMlIEzKyTLab7m5PsnDXNVnI=

CHANGELOG.md

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

0 commit comments

Comments
 (0)