Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
echo "Current version: ${TAG:1}"
echo "---------------------------------------"

echo "$(FLYMYAI_PYTHON_VERSION=${TAG:1} envsubst < setup.py)" > setup.py
echo "$(FLYMYAI_PYTHON_VERSION=${TAG:1} envsubst < pyproject.toml)" > pyproject.toml
echo "$(FLYMYAI_PYTHON_VERSION=${TAG:1} envsubst < setup.py.template)" > setup.py
echo "$(FLYMYAI_PYTHON_VERSION=${TAG:1} envsubst < pyproject.toml.template)" > pyproject.toml

- name: Install dependencies
run: pip3 install poetry && poetry config virtualenvs.create ${USE_VENV} && poetry install
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "flymyai"
version = "$FLYMYAI_PYTHON_VERSION"
version = "1.0.0"
description = ""
authors = ["denti <dentiwork@yandex.ru>", "D1-3105 <lyerhd@gmail.com>"]
readme = "README.md"
Expand Down
31 changes: 31 additions & 0 deletions pyproject.toml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[tool.poetry]
name = "flymyai"
version = "$FLYMYAI_PYTHON_VERSION"
description = ""
authors = ["denti <dentiwork@yandex.ru>", "D1-3105 <lyerhd@gmail.com>"]
readme = "README.md"
packages = [{include = "flymyai"}]

[tool.poetry.dependencies]
python = ">=3.8"
httpx = {extras = ["http2"], version = ">=0.26.0,<0.27.0"}
pydantic = ">2.0.0"
typing-extensions = "^4.9.0"

[tool.poetry.dev-dependencies]
python = ">=3.8"
httpx = ">=0.26.0"
pytest = "^7.4.3"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest]
packages = [{include = ["flymyai", "tests"]}]

[tool.pytest.ini_options]
minversion = 6.0
testpaths = ["./tests"]
pythonpath = 'flymyai'
21 changes: 20 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
import pathlibfrom setuptools import setup_BASE_PATH = pathlib.Path(__file__).parentsetup( name="flymyai", version="$FLYMYAI_PYTHON_VERSION", packages=[ "core", "utils", "multipart", ], package_dir={"": str((_BASE_PATH / "flymyai"))}, license="", author="oleg", author_email="lyerhd@gmail.com", description="",)
import pathlib

from setuptools import setup

_BASE_PATH = pathlib.Path(__file__).parent

setup(
name="flymyai",
version="1.0.0",
packages=[
"core",
"utils",
"multipart",
],
package_dir={"": str((_BASE_PATH / "flymyai"))},
license="",
author="oleg",
author_email="lyerhd@gmail.com",
description="",
)
20 changes: 20 additions & 0 deletions setup.py.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import pathlib

from setuptools import setup

_BASE_PATH = pathlib.Path(__file__).parent

setup(
name="flymyai",
version="$FLYMYAI_PYTHON_VERSION",
packages=[
"core",
"utils",
"multipart",
],
package_dir={"": str((_BASE_PATH / "flymyai"))},
license="",
author="oleg",
author_email="lyerhd@gmail.com",
description="",
)