Skip to content

Commit

Permalink
Deploy to PyPi with build and twine
Browse files Browse the repository at this point in the history
  • Loading branch information
rvandernoort authored and FIXED-TERM Mullaj Dajt (BT-VS/ENG6-Ein) committed Mar 31, 2023
1 parent 9f03350 commit 075c7cd
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
**/data
/results
**/runs
**/dist
*.pth
*.csv
*.png
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/basic_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import torch
from torch import nn
from GA import GA
from GATorch import GA

device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
print("Using {} device".format(device))
Expand Down
2 changes: 1 addition & 1 deletion examples/fashion_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from torch.utils.data import DataLoader
from torchvision import datasets
from torchvision.transforms import ToTensor
from GA import GA
from GATorch import GA

device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
print("Using {} device".format(device))
Expand Down
2 changes: 1 addition & 1 deletion examples/no_gpu_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sys.path.append("../")
import torch
from torch import nn
from GA import GA
from GATorch import GA

device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
print("Using {} device".format(device))
Expand Down
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "GATorch"
version = "0.0.1"
authors = [
{ name="Rover van der Noort", email="s.r.vandernoort@student.tudelft.nl" },
{ name="Martijn Smits", email="m.j.p.smits@student.tudelft.nl" },
{ name="Dajt Mullaj", email="d.mullaj@student.tudelft.nl" },
{ name="Remy Duijsens", email="r.w.j.p.duijsens@student.tudelft.nl" },
]
description = "GATorch is a tool seamlessly integrated with PyTorch that enables ML developers to generate an energy consumption report. By attaching your model, the tool automatically tracks the energy consumption of your model's training and generates graphs and plots to gain in-depth insights into the energy consumption of your model."
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.urls]
"Homepage" = "https://github.com/GreenAITorch/GATorch"
"Bug Tracker" = "https://github.com/GreenAITorch/GATorch/issues"
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ matplotlib
codecarbon
scipy
tensorboard
build
twine

0 comments on commit 075c7cd

Please sign in to comment.