forked from openclimatefix/PVNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (28 loc) · 1.02 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
""" Usual setup file for package """
# read the contents of your README file
from pathlib import Path
from setuptools import find_packages, setup
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
install_requires = (this_directory / "requirements.txt").read_text().splitlines()
extras_require = {"all_models": ["pytorch-tabnet", "efficientnet_pytorch"]}
with open("pvnet/__init__.py") as f:
for line in f:
if line.startswith("__version__"):
_, _, version = line.replace("'", "").split()
version = version.replace('"', "")
setup(
name="PVNet",
version=version,
license="MIT",
description="PVNet",
author="Peter Dudfield",
author_email="[email protected]",
company="Open Climate Fix Ltd",
install_requires=install_requires,
extras_require=extras_require,
long_description=long_description,
long_description_content_type="text/markdown",
include_package_data=True,
packages=find_packages(),
)