everos-cloud 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ dist/
5
+ build/
6
+ .venv/
7
+ .env
8
+ *.egg
9
+ .DS_Store
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 EverMindAI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,64 @@
1
+ SHELL := /bin/bash
2
+ PKG := everos-cloud
3
+ VERSION := $(shell grep '^version' pyproject.toml | head -1 | cut -d'"' -f2)
4
+
5
+ # 凭证检查函数:优先 ~/.pypirc,其次 TWINE_PASSWORD 环境变量
6
+ define check-creds
7
+ @if ! grep -q '\[$(1)\]' ~/.pypirc 2>/dev/null && [ -z "$$TWINE_PASSWORD" ]; then \
8
+ echo "⚠ 未检测到 $(1) 凭证,twine 将交互式提示输入"; \
9
+ echo " 推荐:在 ~/.pypirc 配置 [$(1)] 段,或设置 TWINE_PASSWORD 环境变量"; \
10
+ fi
11
+ endef
12
+
13
+ .DEFAULT_GOAL := help
14
+
15
+ .PHONY: help check-name build publish-test publish clean bump
16
+
17
+ help:
18
+ @echo "$(PKG) v$(VERSION)"
19
+ @echo ""
20
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
21
+ awk 'BEGIN {FS=":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
22
+
23
+ check-name: ## 检查包名在 PyPI 是否可用
24
+ @STATUS=$$(curl -s -o /dev/null -w "%{http_code}" "https://pypi.org/pypi/$(PKG)/json"); \
25
+ if [ "$$STATUS" = "200" ]; then \
26
+ echo "❌ '$(PKG)' 已被占用: https://pypi.org/project/$(PKG)/"; \
27
+ else \
28
+ echo "✅ '$(PKG)' 可用"; \
29
+ fi
30
+
31
+ build: clean ## 构建 wheel + sdist,并检查元数据
32
+ python3 -m build
33
+ python3 -m twine check dist/*
34
+ @echo ""
35
+ @ls -lh dist/
36
+
37
+ publish-test: build ## 上传到 TestPyPI
38
+ $(call check-creds,testpypi)
39
+ python3 -m twine upload --repository testpypi dist/*
40
+ @echo ""
41
+ @echo "✅ https://test.pypi.org/project/$(PKG)/"
42
+ @echo "安装: pip install -i https://test.pypi.org/simple/ $(PKG)"
43
+
44
+ publish: build ## 上传到正式 PyPI(双重确认)
45
+ $(call check-creds,pypi)
46
+ @echo "⚠ 即将发布 $(PKG)==$(VERSION) 到 PyPI,上传后无法撤销"
47
+ @read -r -p "确认上传? (y/n) " c1 && [[ "$$c1" =~ ^[Yy]$$ ]] || exit 1
48
+ @read -r -p "再次确认 (y/n) " c2 && [[ "$$c2" =~ ^[Yy]$$ ]] || exit 1
49
+ python3 -m twine upload dist/*
50
+ @echo ""
51
+ @echo "✅ https://pypi.org/project/$(PKG)/"
52
+ @echo "安装: pip install $(PKG)"
53
+
54
+ clean: ## 删除构建产物
55
+ rm -rf dist/ build/ *.egg-info src/*.egg-info
56
+
57
+ bump: ## 自动递增 patch 版本(0.1.0 → 0.1.1)
58
+ @OLD=$(VERSION); \
59
+ PATCH=$$(echo $$OLD | cut -d. -f3); \
60
+ NEW=$$(echo $$OLD | sed "s/\.$${PATCH}$$/.$$((PATCH+1))/"); \
61
+ sed -i '' "s/^version = \"$$OLD\"/version = \"$$NEW\"/" pyproject.toml; \
62
+ find src -name '__init__.py' -exec \
63
+ sed -i '' "s/__version__ = \"$$OLD\"/__version__ = \"$$NEW\"/" {} \; ; \
64
+ echo "版本: $$OLD → $$NEW"
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: everos-cloud
3
+ Version: 0.1.2
4
+ Project-URL: Homepage, https://github.com/evermind-ai/everos-cloud
5
+ Project-URL: Repository, https://github.com/evermind-ai/everos-cloud
6
+ Project-URL: Issues, https://github.com/evermind-ai/everos-cloud/issues
7
+ Author-email: EverMindAI <evermind@shanda.com>
8
+ License: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Requires-Python: >=3.10
15
+ Provides-Extra: dev
16
+ Requires-Dist: pytest>=8.0; extra == 'dev'
17
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
18
+ Description-Content-Type: text/markdown
19
+
20
+ # everos-cloud
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ pip install everos-cloud
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```python
31
+ from everos_cloud import ...
32
+ ```
33
+
34
+ ## License
35
+
36
+ MIT © 2026 EverMindAI
@@ -0,0 +1,17 @@
1
+ # everos-cloud
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ pip install everos-cloud
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```python
12
+ from everos_cloud import ...
13
+ ```
14
+
15
+ ## License
16
+
17
+ MIT © 2026 EverMindAI
@@ -0,0 +1,32 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "everos-cloud"
7
+ version = "0.1.2"
8
+ description = ""
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = { text = "MIT" }
12
+ authors = [
13
+ { name = "EverMindAI", email = "evermind@shanda.com" },
14
+ ]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Intended Audience :: Developers",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Programming Language :: Python :: 3",
20
+ ]
21
+ dependencies = []
22
+
23
+ [project.optional-dependencies]
24
+ dev = ["pytest>=8.0", "ruff>=0.4.0"]
25
+
26
+ [project.urls]
27
+ Homepage = "https://github.com/evermind-ai/everos-cloud"
28
+ Repository = "https://github.com/evermind-ai/everos-cloud"
29
+ Issues = "https://github.com/evermind-ai/everos-cloud/issues"
30
+
31
+ [tool.hatch.build.targets.wheel]
32
+ packages = ["src/everos_cloud"]
@@ -0,0 +1,3 @@
1
+ """everos-cloud"""
2
+
3
+ __version__ = "0.1.2"
File without changes
@@ -0,0 +1,5 @@
1
+ from everos_cloud import __version__
2
+
3
+
4
+ def test_version():
5
+ assert isinstance(__version__, str)