mirror of
https://github.com/pretix/pretix.git
synced 2025-12-12 04:42:28 +00:00
Compare commits
8 Commits
fix-widget
...
v4.20.2.po
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9612e678fe | ||
|
|
213dbbb847 | ||
|
|
db0786619b | ||
|
|
91b45a8707 | ||
|
|
bff2881573 | ||
|
|
dc83b61071 | ||
|
|
a0870b1429 | ||
|
|
ff68bb9f03 |
@@ -60,7 +60,7 @@ dependencies = [
|
|||||||
"dnspython==2.3.*",
|
"dnspython==2.3.*",
|
||||||
"drf_ujson2==1.7.*",
|
"drf_ujson2==1.7.*",
|
||||||
"geoip2==4.*",
|
"geoip2==4.*",
|
||||||
"importlib_metadata==6.6.*", # Polyfill, we can probably drop this once we require Python 3.10+
|
"importlib_metadata==6.*", # Polyfill, we can probably drop this once we require Python 3.10+
|
||||||
"isoweek",
|
"isoweek",
|
||||||
"jsonschema",
|
"jsonschema",
|
||||||
"kombu==5.2.*",
|
"kombu==5.2.*",
|
||||||
@@ -77,6 +77,7 @@ dependencies = [
|
|||||||
"PyJWT==2.6.*",
|
"PyJWT==2.6.*",
|
||||||
"phonenumberslite==8.13.*",
|
"phonenumberslite==8.13.*",
|
||||||
"Pillow==9.5.*",
|
"Pillow==9.5.*",
|
||||||
|
"pretix-plugin-build",
|
||||||
"protobuf==4.23.*",
|
"protobuf==4.23.*",
|
||||||
"psycopg2-binary",
|
"psycopg2-binary",
|
||||||
"pycountry",
|
"pycountry",
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -29,7 +29,6 @@ sys.path.append(str(Path.cwd() / 'src'))
|
|||||||
|
|
||||||
|
|
||||||
def _CustomBuild(*args, **kwargs):
|
def _CustomBuild(*args, **kwargs):
|
||||||
print(sys.path)
|
|
||||||
from pretix._build import CustomBuild
|
from pretix._build import CustomBuild
|
||||||
return CustomBuild(*args, **kwargs)
|
return CustomBuild(*args, **kwargs)
|
||||||
|
|
||||||
|
|||||||
@@ -19,4 +19,4 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
|
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
|
||||||
# <https://www.gnu.org/licenses/>.
|
# <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
__version__ = "4.20.0"
|
__version__ = "4.20.2.post1"
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ def npm_install():
|
|||||||
|
|
||||||
class CustomBuild(build):
|
class CustomBuild(build):
|
||||||
def run(self):
|
def run(self):
|
||||||
|
if "src" not in os.listdir(".") or "pretix" not in os.listdir("src"):
|
||||||
|
# Only run this command on the pretix module, not on other modules even if it's registered globally
|
||||||
|
# in some cases
|
||||||
|
return build.run(self)
|
||||||
if "PRETIX_DOCKER_BUILD" in os.environ:
|
if "PRETIX_DOCKER_BUILD" in os.environ:
|
||||||
return # this is a hack to allow calling this file early in our docker build to make use of caching
|
return # this is a hack to allow calling this file early in our docker build to make use of caching
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pretix._build_settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pretix._build_settings")
|
||||||
@@ -68,6 +72,10 @@ class CustomBuild(build):
|
|||||||
|
|
||||||
class CustomBuildExt(build_ext):
|
class CustomBuildExt(build_ext):
|
||||||
def run(self):
|
def run(self):
|
||||||
|
if "src" not in os.listdir(".") or "pretix" not in os.listdir("src"):
|
||||||
|
# Only run this command on the pretix module, not on other modules even if it's registered globally
|
||||||
|
# in some cases
|
||||||
|
return build_ext.run(self)
|
||||||
if "PRETIX_DOCKER_BUILD" in os.environ:
|
if "PRETIX_DOCKER_BUILD" in os.environ:
|
||||||
return # this is a hack to allow calling this file early in our docker build to make use of caching
|
return # this is a hack to allow calling this file early in our docker build to make use of caching
|
||||||
npm_install()
|
npm_install()
|
||||||
|
|||||||
@@ -176,13 +176,13 @@ if SITE_URL.endswith('/'):
|
|||||||
|
|
||||||
CSRF_TRUSTED_ORIGINS = [urlparse(SITE_URL).hostname]
|
CSRF_TRUSTED_ORIGINS = [urlparse(SITE_URL).hostname]
|
||||||
|
|
||||||
TRUST_X_FORWARDED_FOR = config.get('pretix', 'trust_x_forwarded_for', fallback=False)
|
TRUST_X_FORWARDED_FOR = config.getboolean('pretix', 'trust_x_forwarded_for', fallback=False)
|
||||||
USE_X_FORWARDED_HOST = config.get('pretix', 'trust_x_forwarded_host', fallback=False)
|
USE_X_FORWARDED_HOST = config.getboolean('pretix', 'trust_x_forwarded_host', fallback=False)
|
||||||
|
|
||||||
|
|
||||||
REQUEST_ID_HEADER = config.get('pretix', 'request_id_header', fallback=False)
|
REQUEST_ID_HEADER = config.get('pretix', 'request_id_header', fallback=False)
|
||||||
|
|
||||||
if config.get('pretix', 'trust_x_forwarded_proto', fallback=False):
|
if config.getboolean('pretix', 'trust_x_forwarded_proto', fallback=False):
|
||||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
|
|
||||||
PRETIX_PLUGINS_DEFAULT = config.get('pretix', 'plugins_default',
|
PRETIX_PLUGINS_DEFAULT = config.get('pretix', 'plugins_default',
|
||||||
|
|||||||
Reference in New Issue
Block a user