From 497a8e0230cdba222aa6fc6c20714385b0c216ff Mon Sep 17 00:00:00 2001 From: laixintao Date: Fri, 29 Sep 2023 17:16:00 +0800 Subject: [PATCH] cleaup files and refactor pyproject.toml --- pyproject.toml | 31 +++++++++++++++++++++++++++---- scripts/prepare_golang.sh | 27 --------------------------- 2 files changed, 27 insertions(+), 31 deletions(-) delete mode 100644 scripts/prepare_golang.sh diff --git a/pyproject.toml b/pyproject.toml index 45cc33a..8ecb232 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,24 +1,44 @@ [tool.poetry] name = "flameshow" version = "0.2.0" -description = "" +homepage = "https://github.com/laixintao/flameshow" +description = "A Terminal Flamegraph Viewer" authors = ["laixintao "] maintainers = ["laixintao "] readme = "README.md" -homepage = "https://github.com/laixintao/flameshow" +license = "GPLv3" keywords = ["terminal", "golang", "pprof", "flamegraph"] packages = [{include = "flameshow"}] include = [ - { path = "go", format = "sdist" } + { path = "docs", format = "sdist" }, + { path = "tests", format = "sdist" }, + { path = "proto", format = "sdist" }, ] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Developers", + "Operating System :: Microsoft :: Windows :: Windows 10", + "Operating System :: Microsoft :: Windows :: Windows 11", + "Operating System :: MacOS", + "Operating System :: POSIX :: Linux", + # "Programming Language :: Python :: 3.7", + # "Programming Language :: Python :: 3.8", + # "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Typing :: Typed", +] + +[tool.poetry.urls] +"Bug Tracker" = "https://github.com/laixintao/flameshow/issues" [tool.poetry.dependencies] python = "^3.10" typing-extensions = "^4.7.1" textual = "^0.37.1" click = "^8.1.7" -cffi = "^1.15.1" protobuf = "^4.24" [tool.poetry.scripts] @@ -46,3 +66,6 @@ extend-exclude = ''' .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project ) ''' + +[tool.pytest.ini_options] +asyncio_mode = "auto" diff --git a/scripts/prepare_golang.sh b/scripts/prepare_golang.sh deleted file mode 100644 index 091be80..0000000 --- a/scripts/prepare_golang.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -set -ex - -GO_VERSION=1.21.1 -ARCH=$(uname -m) -OS=linux - -if [ $ARCH == "x86_64" ]; then - go_arch=amd64 -elif [ $ARCH == "arm64" ]; then - go_arch=arm64 -elif [ $ARCH == "i686" ]; then - go_arch=386 -else - echo "unknown arch=${ARCH}" - exit 1 -fi - - -FILENAME=go${GO_VERSION}.${OS}-${go_arch}.tar.gz -echo $FILENAME - -curl -sS -LO https://go.dev/dl/${FILENAME} -tar -C /usr/local -xzf $FILENAME -export PATH=$PATH:/usr/local/go/bin -go version