forked from HerveMignot/codecarbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (53 loc) · 1.7 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
import setuptools
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
DEPENDENCIES = [
"arrow",
"dataclasses;python_version<'3.7'",
"pandas",
"pynvml",
"requests",
"psutil",
"py-cpuinfo",
"fuzzywuzzy",
"click",
]
TEST_DEPENDENCIES = ["mock", "pytest", "responses", "tox", "numpy", "requests-mock"]
setuptools.setup(
name="codecarbon",
version="1.2.0",
author="Mila, DataForGood, BCG GAMMA, Comet.ml, Haverford College",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]
),
install_requires=DEPENDENCIES,
tests_require=TEST_DEPENDENCIES,
extras_require={"viz": ["dash", "dash_bootstrap_components", "fire"]},
classifiers=[
"Natural Language :: English",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
package_data={
"codecarbon": [
"data/cloud/impact.csv",
"data/hardware/cpu_power.csv",
"data/private_infra/2016/usa_emissions.json",
"data/private_infra/2016/canada_energy_mix.json",
"data/private_infra/carbon_intensity_per_source.json"
"data/private_infra/global_energy_mix.json",
"viz/assets/*.png",
],
},
python_requires=">=3.6",
entry_points={
"console_scripts": [
"carbonboard = codecarbon.viz.carbonboard:main",
"codecarbon = codecarbon.cli.main:codecarbon",
]
},
)