generated from openclimatefix/ocf-template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
30 lines (26 loc) · 963 Bytes
/
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
""" 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()
with open("pvnet_app/__init__.py") as f:
for line in f:
if line.startswith("__version__"):
_, _, version = line.replace("'", "").split()
version = version.replace('"', "")
setup(
name="pvnet_app",
version=version,
license="MIT",
description="Super cool OCF Repo",
author="James Fulton, Peter Dudfield",
author_email="[email protected]",
company="Open Climate Fix Ltd",
install_requires=install_requires,
long_description=long_description,
long_description_content_type="text/markdown",
include_package_data=True,
packages=find_packages(),
)