-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (16 loc) · 594 Bytes
/
setup.py
File metadata and controls
24 lines (16 loc) · 594 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (C) 2022-2026, Pyronear.
# This program is licensed under the Apache License 2.0.
# See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details.
import os
from pathlib import Path
from setuptools import find_packages, setup
PKG_NAME = "pyroengine"
VERSION = os.getenv("BUILD_VERSION", "3.0.0")
cwd = Path(__file__).parent.absolute()
pkg_dir = cwd.joinpath(PKG_NAME)
Path(pkg_dir.joinpath("version.py")).write_text(f"__version__ = '{VERSION}'\n", encoding="utf-8")
setup(
name=PKG_NAME,
version=VERSION,
packages=find_packages(),
)