forked from polca/premise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (63 loc) · 2.21 KB
/
Copy pathsetup.py
File metadata and controls
70 lines (63 loc) · 2.21 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import os
from setuptools import setup
packages = []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
# Probably should be changed, __init__.py is no longer required for Python 3
for dirpath, dirnames, filenames in os.walk("premise"):
# Ignore dirnames that start with '.'
if "__init__.py" in filenames:
pkg = dirpath.replace(os.path.sep, ".")
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, ".")
packages.append(pkg)
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
setup(
name="premise",
version="1.1.1",
python_requires=">=3.9",
packages=packages,
author="Romain Sacchi <romain.sacchi@psi.ch>, Alois Dirnaichner <dirnaichner@pik-potsdam.de>, Chris Mutel <chris.mutel@psi.ch>",
license=open("LICENSE").read(),
# Only if you have non-python data (CSV, etc.). Might need to change the directory name as well.
include_package_data=True,
install_requires=[
"numpy",
"wurst==0.3.0",
"bw2io>=0.8",
"bw2calc==1.8.1",
"pandas",
"bw2data",
"brightway2",
"xarray",
"prettytable",
"pycountry",
"cryptography",
"premise_gwp",
"pyYaml",
"schema",
],
url="https://github.com/polca/premise",
description="Coupling IAM output to ecoinvent LCA database ecoinvent for prospective LCA",
classifiers=[
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Visualization",
],
)