-
-
Notifications
You must be signed in to change notification settings - Fork 33
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 #66 from nschloe/modernize
Modernize
- Loading branch information
Showing
10 changed files
with
763 additions
and
102 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
"name": "tuna", | ||
"dependencies": { | ||
"bootstrap": "4.4.1", | ||
"d3": "5.15.0" | ||
"d3": "5.15.1" | ||
} | ||
} |
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,3 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel"] | ||
build-backend = "setuptools.build_meta" |
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,47 @@ | ||
[metadata] | ||
name = tuna | ||
version = 0.4.0 | ||
author = Nico Schlömer | ||
email = nico.schloemer@gmail.com | ||
description = Visualize Python performance profiles | ||
url = https://github.com/nschloe/tuna | ||
project_urls = | ||
Code=https://github.com/nschloe/tuna | ||
Issues=https://github.com/nschloe/tuna/issues | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
license = GPLv3 | ||
platforms = any | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Topic :: Software Development :: User Interfaces | ||
Topic :: Utilities | ||
|
||
[options] | ||
packages = find: | ||
# importlib_metadata can be removed when we support Python 3.8+ only | ||
install_requires = | ||
importlib_metadata | ||
python_requires = >=3.6 | ||
setup_requires = | ||
setuptools>=42 | ||
wheel | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
tuna = tuna.cli:main | ||
|
||
[options.package_data] | ||
* = | ||
web/*.html | ||
web/static/*.js | ||
web/static/*.css | ||
web/static/favicon256.png |
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,44 +1,4 @@ | ||
import os | ||
from setuptools import setup | ||
|
||
from setuptools import find_packages, setup | ||
|
||
# https://packaging.python.org/single_source_version/ | ||
base_dir = os.path.abspath(os.path.dirname(__file__)) | ||
about = {} | ||
with open(os.path.join(base_dir, "tuna", "__about__.py"), "rb") as f: | ||
exec(f.read(), about) | ||
|
||
|
||
setup( | ||
name="tuna", | ||
version=about["__version__"], | ||
author=about["__author__"], | ||
author_email=about["__author_email__"], | ||
packages=find_packages(), | ||
description="Visualize Python profiles in the browser", | ||
long_description=open("README.md").read(), | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/nschloe/tuna", | ||
license=about["__license__"], | ||
platforms="any", | ||
python_requires=">=3.6", | ||
classifiers=[ | ||
about["__status__"], | ||
about["__license__"], | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Topic :: Software Development :: User Interfaces", | ||
], | ||
entry_points={"console_scripts": ["tuna = tuna.cli:main"]}, | ||
package_data={ | ||
"tuna": [ | ||
"web/*.html", | ||
"web/static/*.js", | ||
"web/static/*.css", | ||
"web/static/favicon256.png", | ||
] | ||
}, | ||
) | ||
if __name__ == "__main__": | ||
setup() |
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,7 +1,10 @@ | ||
__author__ = "Nico Schlömer" | ||
__author_email__ = "nico.schloemer@gmail.com" | ||
__copyright__ = f"Copyright (c) 2018-2020, {__author__} <{__author_email__}>" | ||
__license__ = "License :: OSI Approved :: MIT License" | ||
__version__ = "0.3.7" | ||
__maintainer__ = "Nico Schlömer" | ||
__status__ = "Development Status :: 5 - Production/Stable" | ||
try: | ||
# Python 3.8 | ||
from importlib import metadata | ||
except ImportError: | ||
import importlib_metadata as metadata | ||
|
||
try: | ||
__version__ = metadata.version("tuna") | ||
except Exception: | ||
__version__ = "unknown" |
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,19 +1,9 @@ | ||
from . import cli | ||
from .__about__ import ( | ||
__author__, | ||
__author_email__, | ||
__license__, | ||
__status__, | ||
__version__, | ||
) | ||
from .__about__ import __version__ | ||
from .main import read_import_profile | ||
|
||
__all__ = [ | ||
"__author__", | ||
"__author_email__", | ||
"__license__", | ||
"__version__", | ||
"__status__", | ||
"cli", | ||
"read_import_profile", | ||
] |