-
Notifications
You must be signed in to change notification settings - Fork 5
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 #714 from MetaCell/feature/ch-109
Update Python dependencies
- Loading branch information
Showing
49 changed files
with
7,860 additions
and
9,044 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,5 @@ | ||
connexion[swagger-ui]==2.14.2 | ||
swagger-ui-bundle >= 0.0.2 | ||
python_dateutil >= 2.6.0 | ||
setuptools >= 21.0.0 | ||
Flask<3.0.0 |
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,41 @@ | ||
# coding: utf-8 | ||
|
||
import sys | ||
from setuptools import setup, find_packages | ||
|
||
NAME = "__APP_NAME__" | ||
VERSION = "1.0.0" | ||
|
||
# To install the library, run the following | ||
# | ||
# python setup.py install | ||
# | ||
# prerequisite: setuptools | ||
# http://pypi.python.org/pypi/setuptools | ||
|
||
REQUIRES = [ | ||
"connexion>=2.0.2", | ||
"swagger-ui-bundle>=0.0.2", | ||
"python_dateutil>=2.6.0", | ||
"pyjwt>=2.6.0", | ||
"cloudharness" | ||
] | ||
|
||
setup( | ||
name=NAME, | ||
version=VERSION, | ||
description="__APP_NAME__", | ||
author_email="[email protected]", | ||
url="", | ||
keywords=["OpenAPI", "__APP_NAME__"], | ||
install_requires=REQUIRES, | ||
packages=find_packages(), | ||
package_data={'': ['openapi/openapi.yaml']}, | ||
include_package_data=True, | ||
entry_points={ | ||
'console_scripts': ['__APP_NAME__=__APP_NAME__.__main__:main']}, | ||
long_description="""\ | ||
__APP_NAME__ | ||
""" | ||
) | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,11 +1,11 @@ | ||
const path = require('path'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const CompressionPlugin = require('compression-webpack-plugin'); | ||
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); | ||
const CopyWebpackPlugin = require('copy-webpack-plugin'); | ||
const path = require("path"); | ||
const HtmlWebpackPlugin = require("html-webpack-plugin"); | ||
const CompressionPlugin = require("compression-webpack-plugin"); | ||
const { CleanWebpackPlugin } = require("clean-webpack-plugin"); | ||
const CopyWebpackPlugin = require("copy-webpack-plugin"); | ||
|
||
const copyPaths = [ | ||
{ from: path.resolve(__dirname, "src/assets"), to: 'assets' }, | ||
{ from: path.resolve(__dirname, "src/assets"), to: "assets" }, | ||
]; | ||
|
||
module.exports = function webpacking(envVariables) { | ||
|
@@ -14,36 +14,43 @@ module.exports = function webpacking(envVariables) { | |
env = {}; | ||
} | ||
if (!env.mode) { | ||
env.mode = 'production'; | ||
env.mode = "production"; | ||
} | ||
|
||
|
||
console.log('####################'); | ||
console.log('####################'); | ||
console.log('BUILD bundle with parameters:'); | ||
console.log( env); | ||
console.log('####################'); | ||
console.log('####################'); | ||
console.log("####################"); | ||
console.log("####################"); | ||
console.log("BUILD bundle with parameters:"); | ||
console.log(env); | ||
console.log("####################"); | ||
console.log("####################"); | ||
|
||
const { mode } = env; | ||
const devtool = env.mode === 'source-map'; | ||
|
||
const devtool = "source-map"; | ||
|
||
const output = { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: '[name].[contenthash].js' | ||
path: path.resolve(__dirname, "dist"), | ||
filename: "[name].[contenthash].js", | ||
publicPath: "/" | ||
}; | ||
|
||
const module = { | ||
rules: [ | ||
{ | ||
test: /\.(js|jsx)$/, | ||
exclude: /node_modules/, | ||
loader: 'babel-loader' | ||
loader: "babel-loader", | ||
}, | ||
{ | ||
test: /\.ts|tsx?$/, | ||
loader: "awesome-typescript-loader" | ||
test: /\.ts(x?)$/, | ||
include: path.resolve(__dirname, 'src'), | ||
use: [ | ||
{ | ||
loader: "ts-loader", | ||
options: { | ||
transpileOnly: true, | ||
}, | ||
} | ||
] | ||
}, | ||
{ | ||
test: /\.(css)$/, | ||
|
@@ -53,7 +60,8 @@ module.exports = function webpacking(envVariables) { | |
}, | ||
{ | ||
loader: "css-loader", | ||
}], | ||
}, | ||
], | ||
}, | ||
{ | ||
test: /\.less$/, | ||
|
@@ -76,27 +84,33 @@ module.exports = function webpacking(envVariables) { | |
}, | ||
{ | ||
test: /\.(png|jpg|gif|eot|woff|woff2|svg|ttf)$/, | ||
loader: 'file-loader' | ||
use: [ | ||
"file-loader", | ||
{ | ||
loader: "image-webpack-loader", | ||
options: { | ||
bypassOnDebug: true, // [email protected] | ||
disable: true, // [email protected] and newer | ||
}, | ||
}, | ||
], | ||
}, | ||
|
||
] | ||
], | ||
}; | ||
|
||
const resolve = { | ||
extensions: ['*', '.js', '.json', '.ts', '.tsx', '.jsx'], | ||
symlinks: false | ||
extensions: ["*", ".js", ".json", ".ts", ".tsx", ".jsx"], | ||
symlinks: false, | ||
}; | ||
|
||
|
||
|
||
const plugins = [ | ||
new CleanWebpackPlugin(), | ||
new CopyWebpackPlugin({ patterns: copyPaths }), | ||
new CompressionPlugin(), | ||
new HtmlWebpackPlugin({ | ||
template: 'src/index.ejs', | ||
favicon: path.join(__dirname, 'src/assets/icon.png') | ||
}) | ||
template: "src/index.ejs", | ||
favicon: path.join(__dirname, "src/assets/icon.png"), | ||
}), | ||
]; | ||
|
||
return { | ||
|
@@ -105,6 +119,6 @@ module.exports = function webpacking(envVariables) { | |
output, | ||
module, | ||
resolve, | ||
plugins | ||
plugins, | ||
}; | ||
}; |
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
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
Oops, something went wrong.