♻️ Move core to git submodule

This commit is contained in:
omg-xtao 2023-08-05 11:20:18 +08:00 committed by GitHub
parent e21d722486
commit 7fc22fcbbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 19 deletions

4
.gitmodules vendored Normal file
View File

@ -0,0 +1,4 @@
[submodule "gram_core"]
path = gram_core
url = https://github.com/PaiGramTeam/GramCore.git
branch = v4

View File

@ -8,7 +8,7 @@ RUN echo "deb http://ftp.us.debian.org/debian buster main non-free" >> /etc/apt/
&& apt update \
# clone
&& apt install git wget curl ffmpeg -y \
&& git clone -b main https://github.com/PaiGramTeam/PaiGram.git /app \
&& git clone -b main --recursive https://github.com/PaiGramTeam/PamGram.git /app \
# install dependencies \
&& pip install virtualenv==20.19.0 poetry==1.3.2 \
&& python3 -m virtualenv venv/ \

1
gram_core Submodule

@ -0,0 +1 @@
Subproject commit b540527c68470f93a373c9750b9cd0b49a939e10

17
poetry.lock generated
View File

@ -606,21 +606,6 @@ files = [
[package.dependencies]
gitdb = ">=4.0.1,<5"
[[package]]
name = "gram-core"
version = "0.1.0"
description = "telegram robot base core."
optional = false
python-versions = ">=3.8"
files = []
develop = false
[package.source]
type = "git"
url = "https://github.com/PaiGramTeam/GramCore.git"
reference = "HEAD"
resolved_reference = "7fb5d4c0e01731e6901829fe317be19023c2c4c7"
[[package]]
name = "greenlet"
version = "1.1.3"
@ -2331,4 +2316,4 @@ test = ["flaky", "pytest", "pytest-asyncio"]
[metadata]
lock-version = "2.0"
python-versions = "^3.8"
content-hash = "847b0e55ac501bd6126b5370fc08c018401147d8dd5c68c3216833b64b1213ea"
content-hash = "8378e2149d042db3c75d422e969b658c255654e517c32bdb60b6dafef01e071e"

View File

@ -44,7 +44,6 @@ pillow = "^10.0.0"
playwright = "^1.27.1"
aiosqlite = { extras = ["sqlite"], version = "^0.19.0" }
simnet = { git = "https://github.com/PaiGramTeam/SIMNet" }
gram-core = {git = "https://github.com/PaiGramTeam/GramCore.git"}
[tool.poetry.extras]
pyro = ["Pyrogram", "TgCrypto"]

View File

@ -26,7 +26,6 @@ fastapi==0.99.1 ; python_version >= "3.8" and python_version < "4.0"
flaky==3.7.0 ; python_version >= "3.8" and python_version < "4.0"
gitdb==4.0.10 ; python_version >= "3.8" and python_version < "4.0"
gitpython==3.1.32 ; python_version >= "3.8" and python_version < "4.0"
gram-core @ git+https://github.com/PaiGramTeam/GramCore.git@main ; python_version >= "3.8" and python_version < "4.0"
greenlet==1.1.3 ; python_version >= "3.8" and python_version < "4.0"
h11==0.14.0 ; python_version >= "3.8" and python_version < "4.0"
httpcore==0.17.3 ; python_version >= "3.8" and python_version < "4.0"