forked from openclimatefix/graph_weather
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·41 lines (34 loc) · 1.25 KB
/
setup.py
File metadata and controls
executable file
·41 lines (34 loc) · 1.25 KB
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
34
35
36
37
38
39
40
41
"""Setup"""
import re
from pathlib import Path
from setuptools import find_packages, setup
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
# Read version from pyproject.toml (single source of truth)
def get_version():
pyproject_path = this_directory / "pyproject.toml"
content = pyproject_path.read_text()
match = re.search(r'^version\s*=\s*"([^"]+)"', content, re.MULTILINE)
if match:
return match.group(1)
raise RuntimeError("Unable to find version string in pyproject.toml")
setup(
name="graph_weather",
version=get_version(),
packages=find_packages(),
url="https://github.com/openclimatefix/graph_weather",
license="MIT License",
company="Open Climate Fix Ltd",
author="Jacob Bieker",
long_description=long_description,
long_description_content_type="text/markdown",
author_email="jacob@bieker.tech",
description="Weather Forecasting with Graph Neural Networks",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
],
)