-
Notifications
You must be signed in to change notification settings - Fork 58
/
setup.py
62 lines (57 loc) · 2.14 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
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
# -*- coding: utf-8 -*-
import os
from setuptools import setup
packages = []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
accepted_filetypes = (".html", ".png", ".svg", ".js", ".css", ".txt", ".zip", ".md")
for dirpath, dirnames, filenames in os.walk("activity_browser"):
# Ignore dirnames that start with '.'
if "__init__.py" in filenames or any(
x.endswith(accepted_filetypes) for x in filenames
):
pkg = dirpath.replace(os.path.sep, ".")
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, ".")
packages.append(pkg)
if "VERSION" in os.environ:
version = os.environ["VERSION"]
elif "PKG_VERSION" in os.environ:
version = os.environ["PKG_VERSION"]
else:
version = os.environ.get("GIT_DESCRIBE_TAG", "0.0.0")
setup(
name="activity-browser",
version=version,
packages=packages,
include_package_data=True,
author="Bernhard Steubing",
author_email="[email protected]",
license=open("LICENSE.txt").read(),
install_requires=[], # dependency management in conda recipe
url="https://github.com/LCA-ActivityBrowser/activity-browser",
long_description=open("README.md").read(),
description="A graphical user interface for brightway2",
entry_points={
"console_scripts": [
"activity-browser = activity_browser:run_activity_browser",
]
},
classifiers=[
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Visualization",
],
)