-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from eMBee/django-upgrade
Django upgrade rebased on current development
- Loading branch information
Showing
488 changed files
with
3,147 additions
and
13,591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
|
||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
versioning-strategy: increase | ||
- package-ecosystem: "npm" | ||
directory: "/src/pretix/static/npm_dir" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,17 +18,13 @@ jobs: | |
name: Tests | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
python-version: [3.8] | ||
database: [sqlite, postgres, mysql] | ||
exclude: | ||
- database: mysql | ||
python-version: 3.7 | ||
python-version: 3.8 | ||
- database: sqlite | ||
python-version: 3.7 | ||
- database: mysql | ||
python-version: 3.6 | ||
- database: sqlite | ||
python-version: 3.6 | ||
python-version: 3.8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: getong/[email protected] | ||
|
@@ -57,7 +53,7 @@ jobs: | |
- name: Install system dependencies | ||
run: sudo apt update && sudo apt install gettext mysql-client | ||
- name: Install Python dependencies | ||
run: pip3 install -r src/requirements.txt -Ur src/requirements/dev.txt mysqlclient psycopg2-binary | ||
run: pip3 install -e ".[dev]" psycopg2-binary | ||
- name: Run checks | ||
run: python manage.py check | ||
working-directory: ./src | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
include LICENSE | ||
include README.rst | ||
global-include *.proto | ||
recursive-include src/pretix/static * | ||
recursive-include src/pretix/static.dist * | ||
recursive-include src/pretix/locale * | ||
recursive-include src/pretix/helpers/locale * | ||
recursive-include src/pretix/base/templates * | ||
recursive-include src/pretix/control/templates * | ||
recursive-include src/pretix/presale/templates * | ||
recursive-include src/pretix/plugins/banktransfer/templates * | ||
recursive-include src/pretix/plugins/banktransfer/static * | ||
recursive-include src/pretix/plugins/manualpayment/templates * | ||
recursive-include src/pretix/plugins/manualpayment/static * | ||
recursive-include src/pretix/plugins/paypal/templates * | ||
recursive-include src/pretix/plugins/pretixdroid/templates * | ||
recursive-include src/pretix/plugins/pretixdroid/static * | ||
recursive-include src/pretix/plugins/sendmail/templates * | ||
recursive-include src/pretix/plugins/statistics/templates * | ||
recursive-include src/pretix/plugins/statistics/static * | ||
recursive-include src/pretix/plugins/stripe/templates * | ||
recursive-include src/pretix/plugins/stripe/static * | ||
recursive-include src/pretix/plugins/ticketoutputpdf/templates * | ||
recursive-include src/pretix/plugins/ticketoutputpdf/static * | ||
recursive-include src/pretix/plugins/badges/templates * | ||
recursive-include src/pretix/plugins/badges/static * | ||
recursive-include src/pretix/plugins/returnurl/templates * | ||
recursive-include src/pretix/plugins/returnurl/static * | ||
recursive-include src/pretix/plugins/webcheckin/templates * | ||
recursive-include src/pretix/plugins/webcheckin/static * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-r ../src/requirements.txt | ||
-e ../ | ||
sphinx==2.3.* | ||
sphinx-rtd-theme | ||
sphinxcontrib-httpdomain | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
[project] | ||
name = "eventyay" | ||
dynamic = ["version"] | ||
description = "the open source event solution" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE"} | ||
keywords = ["tickets", "events", "web", "shop", "ecommerce"] | ||
authors = [ {name = "eventyay", email = "[email protected]"}, ] | ||
maintainers = [ {name = "eventyay", email = "[email protected]"}, ] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Other Audience", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
"Environment :: Web Environment", | ||
"License :: OSI Approved :: Apache License, Version 2.0", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Framework :: Django :: 3.2", | ||
] | ||
dependencies = [ | ||
'Django==4.2.*', | ||
'djangorestframework==3.14.*', | ||
'python-dateutil==2.8.*', | ||
'isoweek', | ||
'requests==2.31.*', | ||
'pytz', | ||
'django-bootstrap3==23.1.*', | ||
'django-formset-js-improved==0.5.0.3', | ||
'django-compressor==4.3.*', | ||
'django-hierarkey==1.1.*', | ||
'django-filter==23.2', | ||
'django-scopes==2.0.*', | ||
'django-localflavor==4.0', | ||
'reportlab==4.0.*', | ||
'Pillow==9.5.*', | ||
'PyPDF2==2.12.*', | ||
'django-libsass==0.9', | ||
'libsass==0.22.*', | ||
'django-otp==1.2.*', | ||
'webauthn==0.4.*', | ||
'python-u2flib-server==4.*', | ||
'django-formtools==2.4.1', | ||
'celery==5.3.*', | ||
'kombu==5.3.*', | ||
'django-statici18n==2.3.*', | ||
'css-inline==0.8.*', | ||
'BeautifulSoup4==4.12.*', | ||
'slimit', | ||
'lxml', | ||
'static3==0.7.*', | ||
'dj-static', | ||
'csscompressor', | ||
'django-markup', | ||
'markdown==3.4.3', | ||
'bleach==5.0.*', | ||
'sentry-sdk==1.15.*', | ||
'babel', | ||
'paypalrestsdk==1.13.*', | ||
'pycparser==2.21', | ||
'django-redis==5.2.*', | ||
'redis==4.5.*,>=4.5.4', | ||
'stripe==5.4.*', | ||
'chardet==5.1.*', | ||
'mt-940==4.30.*', | ||
'django-i18nfield==1.9.*,>=1.9.4', | ||
'psycopg2-binary', | ||
'tqdm==4.*', | ||
'vobject==0.9.*', | ||
'pycountry', | ||
'django-countries==7.5.*', | ||
'pyuca', # for better sorting of country names in django-countries | ||
'defusedcsv>=1.1.0', | ||
'vat_moss_forked==2020.3.20.0.11.0', | ||
'jsonschema', | ||
'django-hijack==2.*', | ||
'openpyxl==3.1.*', | ||
'django-oauth-toolkit==1.6.*', | ||
'oauthlib==3.2.*', | ||
'django-phonenumber-field==7.1.*', | ||
'phonenumberslite==8.13.*', | ||
'python-bidi==0.4.*', # Support for Arabic in reportlab | ||
'arabic-reshaper==3.0.0', # Support for Arabic in reportlab | ||
'packaging', | ||
'tlds>=2020041600', | ||
'text-unidecode==1.*', | ||
'protobuf==4.23.*', | ||
'cryptography>=3.4.2', | ||
'sepaxml==2.6.*', | ||
] | ||
|
||
[project.optional-dependencies] | ||
memcached = ["pylibmc"] | ||
dev = [ | ||
'django-debug-toolbar==4.0.*', | ||
'pycodestyle==2.10.*', | ||
'pyflakes==3.0.*', | ||
'flake8==6.0.*', | ||
'pep8-naming==0.13.*', | ||
'coveralls', | ||
'coverage', | ||
'pytest==7.3.*', | ||
'pytest-django==4.*', | ||
'pytest-xdist==3.3.*', | ||
'isort==5.12.*', | ||
'pytest-mock==3.10.*', | ||
'pytest-rerunfailures==11.*', | ||
'responses', | ||
'potypo', | ||
'freezegun', | ||
'pytest-cache', | ||
'pytest-cov', | ||
'pytest-sugar', | ||
] | ||
|
||
[project.entry-points."distutils.commands"] | ||
build = "setup:CustomBuild" | ||
build_ext = "setup:CustomBuildExt" | ||
|
||
|
||
[build-system] | ||
requires = [ | ||
'setuptools', | ||
'setuptools-rust', | ||
'wheel', | ||
'importlib_metadata', | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://eventyay.com" | ||
repository = "https://github.com/fossasia/eventyay-tickets.git" | ||
documentation = "https://eventyay.com" | ||
changelog = "https://eventyay.com" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "pretix.__version__"} | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
include = ["pretix*"] | ||
namespaces = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import setuptools | ||
|
||
if __name__ == "__main__": | ||
setuptools.setup() |
Oops, something went wrong.