-
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.
Refactored frontend setup configuration
- Loading branch information
Showing
8 changed files
with
55 additions
and
66 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
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,2 +1 @@ | ||
from .__version__ import VERSION as version | ||
from .app import create_app | ||
from .__version__ import VERSION as __version__ |
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,7 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
src_paths = ["app"] |
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,2 +1 @@ | ||
gunicorn | ||
. |
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,8 +1,41 @@ | ||
[bumpversion] | ||
current_version = 2.1.1 | ||
|
||
[metadata] | ||
description-file = README.md | ||
name = gens_app | ||
version = attr: app.__version__ | ||
author = Markus Johansson | ||
author_email = [email protected] | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
License :: OSI Approved :: MIT License | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
|
||
[options] | ||
packages = find: | ||
zip_safe = True | ||
include_package_data = True | ||
python_requires = >=3.10 | ||
install_requires = | ||
setuptools | ||
wheel | ||
flask | ||
gunicorn | ||
flask-compress | ||
requests | ||
pydantic | ||
tabulate | ||
|
||
[options.package_data] | ||
app = *.css, *js | ||
|
||
[options.extras_require] | ||
dev = | ||
black | ||
isort | ||
mypy | ||
pytest | ||
pytest-cov | ||
pytest-flask | ||
|
||
[isort] | ||
profile=black |
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,53 +1,9 @@ | ||
# coding: utf-8 | ||
#!/usr/bin/env python | ||
"""Build frontend with setuptools. | ||
from os import path | ||
Build is defined in setup.cfg""" | ||
|
||
from setuptools import find_packages, setup | ||
import setuptools | ||
|
||
setup( | ||
name="gens", | ||
version="2.1.1", | ||
description="Gens is a web-based interactive tool to visualize genomic copy number profiles from WGS data.", | ||
license="MIT", | ||
author="Ronja, Markus Johansson", | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
keywords=["Flask", "Genomics", "WGS"], | ||
packages=find_packages(), | ||
zip_safe=False, | ||
install_requires=[ | ||
"Flask", | ||
"pydantic", | ||
"gtfparse>=1.2.0", | ||
"pysam>=0.15.4", | ||
"pyyaml", | ||
"flask-compress", | ||
"tabulate", | ||
"requests", | ||
], | ||
setup_requires=["pytest-runner"], | ||
tests_require=["pytest", "mongomock"], | ||
entry_points={ | ||
"console_scripts": ["gens=gens.commands:cli"], | ||
}, | ||
package_data={ | ||
"gens": [ | ||
"gens/templates/*.html", | ||
"gens/static/**/*", | ||
"gens/static/**/*", | ||
"scout/blueprints/**/templates/*.html", | ||
"scout/blueprints/**/static/*", | ||
"gens/openapi/openapi.yaml", | ||
] | ||
}, | ||
include_package_data=True, | ||
) | ||
if __name__ == "__main__": | ||
setuptools.setup() |