-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (33 loc) · 1.12 KB
/
setup.py
File metadata and controls
36 lines (33 loc) · 1.12 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
import setuptools
def get_dependencies(env_yaml_file):
import yaml
with open(env_yaml_file, "r") as f:
environment = yaml.safe_load(f)
dependencies = []
for dep in environment["dependencies"]:
if dep != "root" and not dep.startswith("python"):
dependencies.append(dep)
return dependencies
readme = open("README.md", "r")
long_description = ''
for line in readme:
if not line.startswith('<img'):
long_description += line
setuptools.setup(
name="ntupro",
version="0.0.0",
author="Massimiliano Galli",
author_email="massimiliano.galli.95@gmail.com",
description="Innovative package to optimize HEP analyses based on ROOT RDataFrame",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/maxgalli/ntupro",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=get_dependencies("ntupro_env.yml"),
python_requires='>=3.6',
)