Skip to content

Commit 8a72d27

Browse files
committed
Starting to add files. Mostly just placeholders
1 parent ff9378f commit 8a72d27

7 files changed

+87
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode
2+
.pytest_cache
3+
*.egg-info

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- [![Build Status](https://travis-ci.com/mi-lad/torchquant_private.svg?token=RncaRtE4yj7eR5Cix2MP&branch=dev)](https://travis-ci.com/mi-lad/torchquant_private) -->
2+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
3+
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
4+
[![Follow @notmilad](https://img.shields.io/twitter/follow/notmilad?style=social)](https://twitter.com/notmilad)
5+
<!-- [![License: MIT](https://img.shields.io/github/license/mi-lad/torchquant_private)](https://opensource.org/licenses/MIT) -->
6+
7+
# slurmtop
8+
9+
```
10+
$ git clone https://github.com/mi-lad/slurmtop.git
11+
$ cd slurmtop
12+
$ pip install -e .
13+
```

environment.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
`name: slurmtop
2+
channels:
3+
- defaults
4+
dependencies:
5+
- _libgcc_mutex=0.1=main
6+
- attrs=19.3.0=py_0
7+
- ca-certificates=2020.1.1=0
8+
- certifi=2020.4.5.1=py38_0
9+
- ld_impl_linux-64=2.33.1=h53a641e_7
10+
- libedit=3.1.20181209=hc058e9b_0
11+
- libffi=3.3=he6710b0_1
12+
- libgcc-ng=9.1.0=hdf63c60_0
13+
- libstdcxx-ng=9.1.0=hdf63c60_0
14+
- more-itertools=8.3.0=py_0
15+
- ncurses=6.2=he6710b0_1
16+
- openssl=1.1.1g=h7b6447c_0
17+
- packaging=20.3=py_0
18+
- pip=20.0.2=py38_3
19+
- pluggy=0.13.1=py38_0
20+
- py=1.8.1=py_0
21+
- pyparsing=2.4.7=py_0
22+
- pytest=5.4.2=py38_0
23+
- python=3.8.3=hcff3b4d_0
24+
- readline=8.0=h7b6447c_0
25+
- setuptools=46.4.0=py38_0
26+
- six=1.14.0=py38_0
27+
- sqlite=3.31.1=h62c20be_1
28+
- tk=8.6.8=hbc83047_0
29+
- wcwidth=0.1.9=py_0
30+
- wheel=0.34.2=py38_0
31+
- xz=5.2.5=h7b6447c_0
32+
- zlib=1.2.11=h7b6447c_3
33+
- pip:
34+
- urwid==2.1.0
35+
prefix: /home/milad/workspace/miniconda3/envs/slurmtop

setup.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from setuptools import setup, find_packages
2+
3+
with open("README.md", "r") as fh:
4+
readme = fh.read()
5+
6+
packages=find_packages()
7+
print(packages)
8+
9+
setup(
10+
name="slurmtop",
11+
description="A terminal-based graphical activity monitor for Slurm",
12+
long_description=readme,
13+
version="0.1",
14+
packages=find_packages("src"),
15+
author="Milad Alizadeh",
16+
url="https://github.com/mi-lad/slurmtop",
17+
keywords=["slurm", "cluster"],
18+
author_email="milad@mil.ad",
19+
classifiers=[
20+
"Intended Audience :: Developers",
21+
"License :: OSI Approved :: MIT License"
22+
],
23+
install_requires=["urwid"],
24+
python_requires=">=3.6",
25+
)

src/slurm.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Cluster(object):
2+
def __init__(self):
3+
super().__init__()
4+
5+
6+
class Job(object):
7+
def __init__(self):
8+
super().__init__()

main.py src/slurmtop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import urwid
22

3-
txt = urwid.Text(u"Hello World")
3+
txt = urwid.Text(u"slurmtop")
44
fill = urwid.Filler(txt, 'top')
55
loop = urwid.MainLoop(fill)
66
loop.run()

tests/test_slurmtop.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_1():
2+
assert True

0 commit comments

Comments
 (0)