-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: wulan17 <[email protected]> Co-authored-by: Alisson Lauffer <[email protected]> Co-authored-by: wulan17 <[email protected]>
- Loading branch information
1 parent
5a0c597
commit a5ae23c
Showing
8 changed files
with
109 additions
and
103 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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import sys | ||
|
||
from hatchling.builders.hooks.plugin.interface import BuildHookInterface | ||
|
||
# Add the current directory to the path, so we can import the compiler. | ||
sys.path.insert(0, ".") | ||
|
||
|
||
class CustomHook(BuildHookInterface): | ||
"""A custom build hook for pyrofork.""" | ||
|
||
def initialize(self, version, build_data): | ||
"""Initialize the hook.""" | ||
if self.target_name not in ["wheel", "install"]: | ||
return | ||
|
||
from compiler.api.compiler import start as compile_api | ||
from compiler.errors.compiler import start as compile_errors | ||
|
||
compile_api() | ||
compile_errors() |
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,86 @@ | ||
[project] | ||
name = "pyrofork" | ||
dynamic = ["version"] | ||
description = "Fork of pyrogram. Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots" | ||
authors = [{ name = "wulan17", email = "[email protected]" }] | ||
dependencies = ["pyaes==1.6.1", "pysocks==1.7.1", "pymediainfo-pyrofork>=6.0.1,<7.0.0"] | ||
readme = "README.md" | ||
license = "LGPL-3.0-or-later" | ||
requires-python = "~=3.7" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Natural Language :: English", | ||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"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", | ||
"Programming Language :: Python :: Implementation", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Internet", | ||
"Topic :: Communications", | ||
"Topic :: Communications :: Chat", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
] | ||
keywords = ["telegram chat messenger mtproto api client library python"] | ||
|
||
[tool.hatch.version] | ||
path = "pyrogram/__init__.py" | ||
|
||
# Used to call hatch_build.py | ||
[tool.hatch.build.hooks.custom] | ||
|
||
[project.urls] | ||
Tracker = "https://github.com/Mayuri-Chan/PyroFork/issues" | ||
Community = "https://t.me/MayuriChan_Chat" | ||
Source = "https://github.com/Mayuri-Chan/PyroFork" | ||
Documentation = "https://pyrofork.mayuri.my.id" | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.rye] | ||
managed = true | ||
dev-dependencies = [ | ||
"pytest>=7.4.3", | ||
"pytest-asyncio>=0.21.1", | ||
"pytest-cov>=4.1.0", | ||
"twine>=4.0.2", | ||
] | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [ | ||
".github/", | ||
"docs/", | ||
"tests/", | ||
".editorconfig", | ||
".gitignore", | ||
".pre-commit-config.yaml", | ||
"CODE_OF_CONDUCT.rst", | ||
"CONTRIBUTING.rst", | ||
"requirements.lock", | ||
"requirements-dev.lock", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
ignore-vcs = true | ||
exclude = [ | ||
"compiler", | ||
"docs", | ||
"tests", | ||
"venv", | ||
"hatch_build.py" | ||
] | ||
package = ["pyrogram"] |
This file was deleted.
Oops, something went wrong.