Skip to content

Commit

Permalink
Apply automatic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpic authored and github-actions[bot] committed May 22, 2023
0 parents commit f0b3688
Show file tree
Hide file tree
Showing 413 changed files with 22,324 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Clean release
run-name: ${{ github.actor }} release
on:
push:
tags:
- '*'
jobs:
pypi-release:
runs-on: ubuntu-latest
container:
image: yourlabs/python
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: debug this crazy environment
run: |
chown -R app:app .
su - app -c "cd $(pwd) && npm install && npm run build"
- name: Update version in setup.py and docs/conf.py
run: |
short=$(echo ${GITHUB_REF##*/} | grep -Eo '[^.]+\.[^.]+')
sed -i "s/version=[^,]*,/version='${GITHUB_REF##*/}',/" setup.py
sed -i "s/release = [^,]*,/release = '${GITHUB_REF##*/}'/" docs/conf.py
sed -i 's/version": "[^"]*"/version": "$short"/' package.json
sed -i "s/version = [^,]*,/version = '${GITHUB_REF##*/}'/" docs/conf.py
- name: Update changelog
run: echo -e "$(python changelog.py ${GITHUB_REF##*/})\n$(cat CHANGELOG)" > CHANGELOG
- name: Fix git dubious ownership
run: git config --global --add safe.directory /__w/django-autocomplete-light/django-autocomplete-light
- name: Commit all generated files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_options: '--amend --no-edit'
branch: master
push_options: '--force'
- name: Build python package
run: python setup.py sdist
- name: Twine upload
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: twine upload dist/django-autocomplete-light-${GITHUB_REF##*/}.tar.gz
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
*pyc
docs/build
docs/source/_static
test_project/htmlcov/
test_project/.coverage
build
dist
django_autocomplete_light.egg-info/
*swp
docs/docs
__pycache__
test_env/
.coverage
.tox
node_modules

.cache/

# Pycharm
.idea/
5 changes: 5 additions & 0 deletions .openshift/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The OpenShift `python` cartridge documentation can be found at:
http://openshift.github.io/documentation/oo_cartridge_guide.html#python

For information about .openshift directory, consult the documentation:
http://openshift.github.io/documentation/oo_user_guide.html#the-openshift-directory
3 changes: 3 additions & 0 deletions .openshift/action_hooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
For information about action hooks, consult the documentation:

http://openshift.github.io/documentation/oo_user_guide.html#action-hooks
27 changes: 27 additions & 0 deletions .openshift/action_hooks/deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
# This deploy hook gets executed after dependencies are resolved and the
# build hook has been run but before the application has been started back
# up again. This script gets executed directly, so it could be python, php,
# ruby, etc.
set -xe

source ${OPENSHIFT_HOMEDIR}app-root/runtime/dependencies/python/virtenv/bin/activate

pip install -U pip

pip install -r ${OPENSHIFT_REPO_DIR}test_project/requirements.txt

# Broken dep pulled in by taggit
if pip freeze | grep south; then
pip uninstall -y south
fi

pushd ${OPENSHIFT_REPO_DIR}test_project
./manage.py migrate --fake-initial --noinput
mkdir -p wsgi
./manage.py collectstatic --noinput
popd

mkdir -p ${OPENSHIFT_DATA_DIR}media
mkdir -p ${OPENSHIFT_REPO_DIR}wsgi/static/media
ln -sf ${OPENSHIFT_DATA_DIR}media ${OPENSHIFT_REPO_DIR}wsgi/static/media
27 changes: 27 additions & 0 deletions .openshift/cron/README.cron
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Run scripts or jobs on a periodic basis
=======================================
Any scripts or jobs added to the minutely, hourly, daily, weekly or monthly
directories will be run on a scheduled basis (frequency is as indicated by the
name of the directory) using run-parts.

run-parts ignores any files that are hidden or dotfiles (.*) or backup
files (*~ or *,) or named *.{rpmsave,rpmorig,rpmnew,swp,cfsaved}

The presence of two specially named files jobs.deny and jobs.allow controls
how run-parts executes your scripts/jobs.
jobs.deny ===> Prevents specific scripts or jobs from being executed.
jobs.allow ===> Only execute the named scripts or jobs (all other/non-named
scripts that exist in this directory are ignored).

The principles of jobs.deny and jobs.allow are the same as those of cron.deny
and cron.allow and are described in detail at:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Automating_System_Tasks.html#s2-autotasks-cron-access

See: man crontab or above link for more details and see the the weekly/
directory for an example.

PLEASE NOTE: The Cron cartridge must be installed in order to run the configured jobs.

For more information about cron, consult the documentation:
http://openshift.github.io/documentation/oo_cartridge_guide.html#cron
http://openshift.github.io/documentation/oo_user_guide.html#cron
9 changes: 9 additions & 0 deletions .openshift/cron/hourly/reset_database
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -x

source ${OPENSHIFT_HOMEDIR}app-root/runtime/dependencies/python/virtenv/bin/activate

pushd ${OPENSHIFT_REPO_DIR}test_project
rm -rf db.sqlite
./manage.py migrate --noinput
popd
23 changes: 23 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.9"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
65 changes: 65 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
sudo: false
dist: xenial
language: python
env:
global:
- PIP_RETRIES=10
- PIP_TIMEOUT=30
- BROWSER=firefox
- GECKODRIVER=0.24.0
- MOZ_HEADLESS=1
matrix:
include:
- python: 3.7
env: TOXENV=checkqa
- python: 3.7
env: TOXENV=docs
- python: 3.6
env: TOXENV=py36-dj32
- python: 3.7
env: TOXENV=py37-dj32
- python: 3.8
env: TOXENV=py38-dj40
- python: 3.8
env: TOXENV=py38-dj41
- python: 3.9
env: TOXENV=py39-dj41
- python: 3.10
env: TOXENV=py310-dj41
- python: 3.8
env: TOXENV=py38-dj42
- python: 3.9
env: TOXENV=py39-dj42
- python: 3.10
env: TOXENV=py310-dj42
install:
- travis_retry pip install -U pip
- travis_retry pip install tox
- travis_retry pip freeze
services:
- firefox: latest
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER/geckodriver-v$GECKODRIVER-linux64.tar.gz
- mkdir -p geckodriver && tar -xzf geckodriver-v$GECKODRIVER-linux64.tar.gz -C geckodriver
- export PATH=$(pwd)/geckodriver:$PATH
before_script:
- if echo "$TOXENV" | grep mysql; then mysql -e 'create database autocomplete_light_test;';
fi
- if echo "$TOXENV" | grep postgresql; then psql -c 'create database autocomplete_light_test;'
-U postgres; fi
script:
- tox -r
- test -d .tox/$TOXENV/log && cat .tox/$TOXENV/log/*.log || true
after_success:
- travis_retry pip install codecov
- cd test_project && codecov
notifications:
irc:
channels:
- irc.freenode.org#yourlabs
template:
- "%{repository} (%{commit} %{author}) : %{message} %{build_url} %{compare_url}"
cache:
directories:
- .tox/$TOXENV
- $HOME/.cache/pip
90 changes: 90 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
The following aims at being a complete list of coders who contributed code or
documentation to the project.

- Aaron VanDerlip
- Adam Dobrawy
- Aidan Lister
- Alan Justino da Silva
- Alessandro Dentella
- Alexandr Artemyev
- Andreas Madsack
- Andrew Plummer
- Andrey @onrik
- Andy Baker
- Andy Dustman
- Antoine Pinsard
- Árni St. Sigurðsson
- Ask Holme
- Bachurin Sergey
- balmaster
- benjaoming
- Berg @bergsoft
- Bernhard Vallant
- Brad Buran
- Brant.Y
- Bruno Alla
- Daniele Procida
- Daniel Hahler @blueyed
- David Aurelio
- David Sanders
- Derek Stegelman
- Dmitri Bogomolov
- Ewoud Kohl van Wijngaarden
- Fábio C. Barrionuevo da Luz
- Fidel Ramos
- Florentin Hennecker
- Gabriel Rodríguez Alberich
- Giorgos Logiotatidis
- Helen Sherwood-Taylor
- Ian Leith
- Igor Mitrenko
- Italo Maia
- Ivan Metzlar
- James Pic
- Jonas Haag
- Jonathan Dorival
- Jonatha Wiklund
- Jubing Chen
- kakulukia
- Tatiana Krikun
- Luke Plant
- MadEng84
- Marcelo Jorge Vieira
- Marc Hoersken
- Mariano Bianchi
- Mario César Señoranis Ayala
- Michael Lin
- Michał Pasternak
- Michał Sałaban
- Mike Covington
- Mislav Cimpersak
- Mounir Messelmeni
- Maxim @mpyatishev
- Nguyễn Hồng Quân
- Nicolas Allemand
- Nick Catalano
- Odin Hørthe Omdal
- @pandabuilder
- Patrick Taylor
- Philip Mertens
- Piet Delport
- Riccardo Magliocchetti
- Raphael Kimmig
- Robert Rollins
- Roger Hunwicks
- Ruurd Moelker
- Ryan P Kilby
- SaeX
- sbaum
- SebCorbin
- Seinlet Nicolas
- Simon Kohlmeyer
- Simon Meers
- Steve Ellis
- Theo Hennessy
- Thijs Triemstra
- Tom de Simone
- Tomas Peterka
- Tyler Kellogg
- Visgean Skeloru
- Volodymyr Tartynskyi
Loading

0 comments on commit f0b3688

Please sign in to comment.