Skip to content
Snippets Groups Projects
Unverified Commit c3a527c0 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

adapt for Flask 3.0.x, v0.3

parent 496d3ff4
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,8 @@ eggs/ ...@@ -17,6 +17,8 @@ eggs/
lib/ lib/
lib64/ lib64/
parts/ parts/
.idea/
.vagrant/
sdist/ sdist/
var/ var/
wheels/ wheels/
......
MIT License MIT License
Copyright (c) 2021 Dronehub Group sp. z o. o. Copyright (c) 2021 Dronehub Group sp. z o. o.
Copyright (c) 2024 Piotr Maślanka
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
# Rabbit MQ management
config.vm.network "forwarded_port", guest: 15672, host: 15672, auto_correct: true
# HTTP for viewing coverage reports
config.vm.network "forwarded_port", guest: 80, host: 8765
config.vm.provision "shell", inline: <<-SHELL
apt-get update
# Python
apt-get install -y htop curl python3-pip build-essential python3 python3-setuptools
sudo pip3 install --upgrade pip setuptools
# Install deps
sudo pip3 install -r /vagrant/requirements.txt
sudo pip3 install nose2[coverage_plugin] coverage mock yapf nose2
# .bashrc for default user
echo """# .bashrc
cd /vagrant""" > /home/vagrant/.bashrc
SHELL
end
...@@ -2,7 +2,12 @@ import typing as tp ...@@ -2,7 +2,12 @@ import typing as tp
import minijson import minijson
from flask import Flask from flask import Flask
from flask_json import JsonRequest
try:
from flask_json import JsonRequest
except ImportError:
# we must be running on a newer version of Flask-JSON
from flask_json import FlaskJSONRequest as JsonRequest
class MiniJSONRequest(JsonRequest): class MiniJSONRequest(JsonRequest):
......
# coding: utf-8 # coding: utf-8
[metadata] [metadata]
version = 0.2 version = 0.3
name = flask-minijson name = flask-minijson
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8 long_description_content_type = text/markdown; charset=UTF-8
author = Piotr Maślanka author = Piotr Maślanka
license_files = license_files =
LICENSE LICENSE
author_email = piotr.maslanka@dronehub.ai author_email = pmaslanka@smok.co
description = A Flask extension to allow client's to submit data using the MiniJSON codec description = A Flask extension to allow client's to submit data using the MiniJSON codec
url = https://github.com/Dronehub/flask-minijson url = https://github.com/Dronehub/flask-minijson
project_urls = project_urls =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment