Skip to content

Commit f0b3688

Browse files
jpicgithub-actions[bot]
authored andcommitted
Apply automatic changes
0 parents  commit f0b3688

File tree

413 files changed

+22324
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

413 files changed

+22324
-0
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Clean release
2+
run-name: ${{ github.actor }} release
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
jobs:
8+
pypi-release:
9+
runs-on: ubuntu-latest
10+
container:
11+
image: yourlabs/python
12+
steps:
13+
- name: Check out repository code
14+
uses: actions/checkout@v3
15+
- name: debug this crazy environment
16+
run: |
17+
chown -R app:app .
18+
su - app -c "cd $(pwd) && npm install && npm run build"
19+
- name: Update version in setup.py and docs/conf.py
20+
run: |
21+
short=$(echo ${GITHUB_REF##*/} | grep -Eo '[^.]+\.[^.]+')
22+
sed -i "s/version=[^,]*,/version='${GITHUB_REF##*/}',/" setup.py
23+
sed -i "s/release = [^,]*,/release = '${GITHUB_REF##*/}'/" docs/conf.py
24+
sed -i 's/version": "[^"]*"/version": "$short"/' package.json
25+
sed -i "s/version = [^,]*,/version = '${GITHUB_REF##*/}'/" docs/conf.py
26+
- name: Update changelog
27+
run: echo -e "$(python changelog.py ${GITHUB_REF##*/})\n$(cat CHANGELOG)" > CHANGELOG
28+
- name: Fix git dubious ownership
29+
run: git config --global --add safe.directory /__w/django-autocomplete-light/django-autocomplete-light
30+
- name: Commit all generated files
31+
uses: stefanzweifel/git-auto-commit-action@v4
32+
with:
33+
commit_options: '--amend --no-edit'
34+
branch: master
35+
push_options: '--force'
36+
- name: Build python package
37+
run: python setup.py sdist
38+
- name: Twine upload
39+
env:
40+
TWINE_USERNAME: __token__
41+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
42+
run: twine upload dist/django-autocomplete-light-${GITHUB_REF##*/}.tar.gz

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*pyc
2+
docs/build
3+
docs/source/_static
4+
test_project/htmlcov/
5+
test_project/.coverage
6+
build
7+
dist
8+
django_autocomplete_light.egg-info/
9+
*swp
10+
docs/docs
11+
__pycache__
12+
test_env/
13+
.coverage
14+
.tox
15+
node_modules
16+
17+
.cache/
18+
19+
# Pycharm
20+
.idea/

.openshift/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The OpenShift `python` cartridge documentation can be found at:
2+
http://openshift.github.io/documentation/oo_cartridge_guide.html#python
3+
4+
For information about .openshift directory, consult the documentation:
5+
http://openshift.github.io/documentation/oo_user_guide.html#the-openshift-directory

.openshift/action_hooks/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
For information about action hooks, consult the documentation:
2+
3+
http://openshift.github.io/documentation/oo_user_guide.html#action-hooks

.openshift/action_hooks/deploy

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
# This deploy hook gets executed after dependencies are resolved and the
3+
# build hook has been run but before the application has been started back
4+
# up again. This script gets executed directly, so it could be python, php,
5+
# ruby, etc.
6+
set -xe
7+
8+
source ${OPENSHIFT_HOMEDIR}app-root/runtime/dependencies/python/virtenv/bin/activate
9+
10+
pip install -U pip
11+
12+
pip install -r ${OPENSHIFT_REPO_DIR}test_project/requirements.txt
13+
14+
# Broken dep pulled in by taggit
15+
if pip freeze | grep south; then
16+
pip uninstall -y south
17+
fi
18+
19+
pushd ${OPENSHIFT_REPO_DIR}test_project
20+
./manage.py migrate --fake-initial --noinput
21+
mkdir -p wsgi
22+
./manage.py collectstatic --noinput
23+
popd
24+
25+
mkdir -p ${OPENSHIFT_DATA_DIR}media
26+
mkdir -p ${OPENSHIFT_REPO_DIR}wsgi/static/media
27+
ln -sf ${OPENSHIFT_DATA_DIR}media ${OPENSHIFT_REPO_DIR}wsgi/static/media

.openshift/cron/README.cron

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Run scripts or jobs on a periodic basis
2+
=======================================
3+
Any scripts or jobs added to the minutely, hourly, daily, weekly or monthly
4+
directories will be run on a scheduled basis (frequency is as indicated by the
5+
name of the directory) using run-parts.
6+
7+
run-parts ignores any files that are hidden or dotfiles (.*) or backup
8+
files (*~ or *,) or named *.{rpmsave,rpmorig,rpmnew,swp,cfsaved}
9+
10+
The presence of two specially named files jobs.deny and jobs.allow controls
11+
how run-parts executes your scripts/jobs.
12+
jobs.deny ===> Prevents specific scripts or jobs from being executed.
13+
jobs.allow ===> Only execute the named scripts or jobs (all other/non-named
14+
scripts that exist in this directory are ignored).
15+
16+
The principles of jobs.deny and jobs.allow are the same as those of cron.deny
17+
and cron.allow and are described in detail at:
18+
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Automating_System_Tasks.html#s2-autotasks-cron-access
19+
20+
See: man crontab or above link for more details and see the the weekly/
21+
directory for an example.
22+
23+
PLEASE NOTE: The Cron cartridge must be installed in order to run the configured jobs.
24+
25+
For more information about cron, consult the documentation:
26+
http://openshift.github.io/documentation/oo_cartridge_guide.html#cron
27+
http://openshift.github.io/documentation/oo_user_guide.html#cron

.openshift/cron/hourly/reset_database

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -x
3+
4+
source ${OPENSHIFT_HOMEDIR}app-root/runtime/dependencies/python/virtenv/bin/activate
5+
6+
pushd ${OPENSHIFT_REPO_DIR}test_project
7+
rm -rf db.sqlite
8+
./manage.py migrate --noinput
9+
popd

.readthedocs.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
2+
3+
# Required
4+
version: 2
5+
6+
# Set the version of Python and other tools you might need
7+
build:
8+
os: ubuntu-20.04
9+
tools:
10+
python: "3.9"
11+
12+
# Build documentation in the docs/ directory with Sphinx
13+
sphinx:
14+
configuration: docs/conf.py
15+
16+
# If using Sphinx, optionally build your docs in additional formats such as PDF
17+
# formats:
18+
# - pdf
19+
20+
# Optionally declare the Python requirements required to build your docs
21+
python:
22+
install:
23+
- requirements: docs/requirements.txt

.travis.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
sudo: false
2+
dist: xenial
3+
language: python
4+
env:
5+
global:
6+
- PIP_RETRIES=10
7+
- PIP_TIMEOUT=30
8+
- BROWSER=firefox
9+
- GECKODRIVER=0.24.0
10+
- MOZ_HEADLESS=1
11+
matrix:
12+
include:
13+
- python: 3.7
14+
env: TOXENV=checkqa
15+
- python: 3.7
16+
env: TOXENV=docs
17+
- python: 3.6
18+
env: TOXENV=py36-dj32
19+
- python: 3.7
20+
env: TOXENV=py37-dj32
21+
- python: 3.8
22+
env: TOXENV=py38-dj40
23+
- python: 3.8
24+
env: TOXENV=py38-dj41
25+
- python: 3.9
26+
env: TOXENV=py39-dj41
27+
- python: 3.10
28+
env: TOXENV=py310-dj41
29+
- python: 3.8
30+
env: TOXENV=py38-dj42
31+
- python: 3.9
32+
env: TOXENV=py39-dj42
33+
- python: 3.10
34+
env: TOXENV=py310-dj42
35+
install:
36+
- travis_retry pip install -U pip
37+
- travis_retry pip install tox
38+
- travis_retry pip freeze
39+
services:
40+
- firefox: latest
41+
before_install:
42+
- wget https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER/geckodriver-v$GECKODRIVER-linux64.tar.gz
43+
- mkdir -p geckodriver && tar -xzf geckodriver-v$GECKODRIVER-linux64.tar.gz -C geckodriver
44+
- export PATH=$(pwd)/geckodriver:$PATH
45+
before_script:
46+
- if echo "$TOXENV" | grep mysql; then mysql -e 'create database autocomplete_light_test;';
47+
fi
48+
- if echo "$TOXENV" | grep postgresql; then psql -c 'create database autocomplete_light_test;'
49+
-U postgres; fi
50+
script:
51+
- tox -r
52+
- test -d .tox/$TOXENV/log && cat .tox/$TOXENV/log/*.log || true
53+
after_success:
54+
- travis_retry pip install codecov
55+
- cd test_project && codecov
56+
notifications:
57+
irc:
58+
channels:
59+
- irc.freenode.org#yourlabs
60+
template:
61+
- "%{repository} (%{commit} %{author}) : %{message} %{build_url} %{compare_url}"
62+
cache:
63+
directories:
64+
- .tox/$TOXENV
65+
- $HOME/.cache/pip

AUTHORS

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
The following aims at being a complete list of coders who contributed code or
2+
documentation to the project.
3+
4+
- Aaron VanDerlip
5+
- Adam Dobrawy
6+
- Aidan Lister
7+
- Alan Justino da Silva
8+
- Alessandro Dentella
9+
- Alexandr Artemyev
10+
- Andreas Madsack
11+
- Andrew Plummer
12+
- Andrey @onrik
13+
- Andy Baker
14+
- Andy Dustman
15+
- Antoine Pinsard
16+
- Árni St. Sigurðsson
17+
- Ask Holme
18+
- Bachurin Sergey
19+
- balmaster
20+
- benjaoming
21+
- Berg @bergsoft
22+
- Bernhard Vallant
23+
- Brad Buran
24+
- Brant.Y
25+
- Bruno Alla
26+
- Daniele Procida
27+
- Daniel Hahler @blueyed
28+
- David Aurelio
29+
- David Sanders
30+
- Derek Stegelman
31+
- Dmitri Bogomolov
32+
- Ewoud Kohl van Wijngaarden
33+
- Fábio C. Barrionuevo da Luz
34+
- Fidel Ramos
35+
- Florentin Hennecker
36+
- Gabriel Rodríguez Alberich
37+
- Giorgos Logiotatidis
38+
- Helen Sherwood-Taylor
39+
- Ian Leith
40+
- Igor Mitrenko
41+
- Italo Maia
42+
- Ivan Metzlar
43+
- James Pic
44+
- Jonas Haag
45+
- Jonathan Dorival
46+
- Jonatha Wiklund
47+
- Jubing Chen
48+
- kakulukia
49+
- Tatiana Krikun
50+
- Luke Plant
51+
- MadEng84
52+
- Marcelo Jorge Vieira
53+
- Marc Hoersken
54+
- Mariano Bianchi
55+
- Mario César Señoranis Ayala
56+
- Michael Lin
57+
- Michał Pasternak
58+
- Michał Sałaban
59+
- Mike Covington
60+
- Mislav Cimpersak
61+
- Mounir Messelmeni
62+
- Maxim @mpyatishev
63+
- Nguyễn Hồng Quân
64+
- Nicolas Allemand
65+
- Nick Catalano
66+
- Odin Hørthe Omdal
67+
- @pandabuilder
68+
- Patrick Taylor
69+
- Philip Mertens
70+
- Piet Delport
71+
- Riccardo Magliocchetti
72+
- Raphael Kimmig
73+
- Robert Rollins
74+
- Roger Hunwicks
75+
- Ruurd Moelker
76+
- Ryan P Kilby
77+
- SaeX
78+
- sbaum
79+
- SebCorbin
80+
- Seinlet Nicolas
81+
- Simon Kohlmeyer
82+
- Simon Meers
83+
- Steve Ellis
84+
- Theo Hennessy
85+
- Thijs Triemstra
86+
- Tom de Simone
87+
- Tomas Peterka
88+
- Tyler Kellogg
89+
- Visgean Skeloru
90+
- Volodymyr Tartynskyi

0 commit comments

Comments
 (0)