Skip to content

Commit 1a2033d

Browse files
Publishing on github
use - Travic-CI.org for CI - SonarCloud.io for code validation - pypi.python.org for package publishing - codecov.io for coverage
1 parent 105b34a commit 1a2033d

File tree

4 files changed

+55
-7
lines changed

4 files changed

+55
-7
lines changed

.travis.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
dist: trusty
2+
language: python
3+
matrix:
4+
include:
5+
- os: linux
6+
python: 3.6
7+
dist: xenial
8+
sudo: true
9+
- os: linux
10+
python: 3.7
11+
dist: xenial
12+
sudo: true
13+
env: BUILD=PYPI
14+
- os: linux
15+
python: 3.8
16+
dist: xenial
17+
sudo: true
18+
install:
19+
- pip install -r requirements/dev.txt
20+
- pip install -r requirements/test.txt
21+
- pip install pytest-cov
22+
script:
23+
- flake8
24+
- python setup.py test
25+
- sonar-scanner
26+
after_success:
27+
- bash <(curl -s https://codecov.io/bash)
28+
addons:
29+
sonarcloud:
30+
organization: cloudbluesonarcube
31+
token:
32+
secure: VJcQOn8TekNPIEn/vnf4fHGZoHha1hoeIVGGT9sYHfqe6zjofbQqAaGO3HMVR7Oliqxe1GQkiw2g+J5YdnRSvqqt2B6EPRiJXJW2jF0irwZ+zsrs/h5LcnQvp6KcIEjC9XmYh3gtkL7GF4Afola0Co4kic7+G2icExKE9JZCfEPExIgjZ6tkx74i0sIbUpdVNas8ODiPwXYcia0DBBh/1NT6p0X4wduSsWEC98rkxWZEyqtMLgL9hkO8TyihnNxsPCpK+ocyAtVmBG0P52A7iGHOi3JjzxVOQXntXhutdJsFXs+wcnFZfKHZf5lwfSKuY45DBr6s5iXo7mWADau3TJ2WeKasK/Bs20iLu2yJArNVqCAKqyA92YBRltowxYlNt3ewK6NrMyETvK0GVzrnBet0jVBfWPztJYi5HdUQZjfHMOiFE4k2kX1sWWI3uSDMS03vppzwo3T+InaZoj/fJaqsOGXMSlkRyKWa8jeK6556pYKo784WdYthijR2sOxdLck19ZaeplI+t3Pre9mGPlKw1gn/TqCPfQaFstYwede4qk+OzPthfDJh/jSobQgHiGhq9C0vzAn+ftSAEYJupNRt33uX18NSf2nH6N9mBaBF7cuSZrWTKmR1D00f4laIv5w+hI/xVq079BJe9xdK0gtxfZcdGMUowILcA+i2PV4=
33+
deploy:
34+
skip_cleanup: true
35+
skip_existing: true
36+
provider: pypi
37+
user: apslite
38+
password:
39+
secure: BiZQTeNsmIOpDPJYihMprsgr9EQHgy/TcDrNXvDrpZ+OVxLBbx1PY1fAAOol6irOiEdYPr+cIkAEQus3oJt41wxdQ05VvkWSmO7Vw+MOnAuudoMUNPVcIC3Hpey2GqMdZduKeGK8sb17D7hWgFyuFljAyuSBKOS6lPfEm6RV/PJprtZlPNQ8LVXPMfrQuIjrge5WVolPALoC66cQfzhTKiXEa88ZWi8qePTq1LG/B/g0yPu/SnrGpgCS9TVCB/lcZ4kAYRo5ayUJkGXKUVK8WrNud3CfUfpJHRMbLeWetDzecZOsTOirENHQGtLGjkC0ocMRKbeIPoK3ZTJvOZAgyQHTieDGlZZX0ADFzDewpv8jioYGJfJh9+6Pc0V+NEB7ic6RUGs2x2bLFiw/zFgz4N21DT84xQ0DPnDK1Jyf4IP3/pXMdP/3Kac5EZFQRXLJDhm6pihHtFZ/nr4yT2+XCS0rA1vO/7CO8Rk/OxzBdoKDD3/s7Xcl248KH1fKRa5wsQkOOdTS+rf3jFImiRxqAMbrsY03XPoL+lTEflFWywAsGm+CCEbCPKUFqdNaWHqQINPDAMHHcDUfmhzWDcLGcCI86xTAf9dfCc5X+aiidgwC0ugFryAw7x1vKB3YdUFMeaLZx1YG+zuKMyVXM67msNh3ZCUpmFcmAkcw2nj9q5M=
40+
on:
41+
tags: true
42+
all_branches: true
43+
distributions: sdist
44+
condition: "$BUILD = PYPI"
45+
repo: cloudblue/django-rql

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Django RQL
22
==========
3+
![pyversions](https://img.shields.io/pypi/pyversions/django-rql.svg) [![PyPi Status](https://img.shields.io/pypi/v/django-rql.svg)](https://pypi.org/project/django-rql/) [![codecov](https://codecov.io/gh/cloudblue/django-rql/branch/master/graph/badge.svg)](https://codecov.io/gh/cloudblue/django-rql) [![Build Status](https://travis-ci.org/cloudblue/django-rql.svg?branch=master)](https://travis-ci.org/cloudblue/django-rql) [![PyPI status](https://img.shields.io/pypi/status/django-rql.svg)](https://pypi.python.org/pypi/django-rql/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=django-rql&metric=alert_status)](https://sonarcloud.io/dashboard?id=django-rql)
34

45
`django-rql` is an Django application, that implements RQL filter backend for your web application.
56

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ def read_file(name):
1717
url='https://connect.cloud.im',
1818
description='Django RQL Filtering',
1919
long_description=read_file('README.md'),
20-
license=read_file('LICENSE'),
20+
long_description_content_type='text/markdown',
21+
license='Apache License, Version 2.0',
2122

22-
python_requires='>=3.5',
23+
python_requires='>=3.6',
2324
zip_safe=True,
2425
packages=find_packages(exclude=('tests',)),
2526
include_package_data=True,
@@ -30,12 +31,14 @@ def read_file(name):
3031

3132
keywords='django rql filter rest api',
3233
classifiers=[
33-
'Development Status :: 2',
34+
'Development Status :: 5 - Production/Stable',
3435
'Framework :: Django :: 1.11',
3536
'Intended Audience :: Developers',
3637
'License :: OSI Approved :: Apache Software License',
3738
'Operating System :: Unix',
38-
'Programming Language :: Python :: 3',
39+
'Programming Language :: Python :: 3.6',
40+
'Programming Language :: Python :: 3.7',
41+
'Programming Language :: Python :: 3.8',
3942
'Topic :: Text Processing :: Filters',
4043
]
4144
)

sonar-project.properties

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
sonar.host.url=http://sonar.rnd.host
2-
3-
sonar.projectKey=connect:library:django-rql
41
sonar.projectName=Connect Django RQL Filters
2+
sonar.projectKey=django-rql
3+
sonar.organization=cloudbluesonarcube
54

65
sonar.language=py
76

0 commit comments

Comments
 (0)