Skip to content

Commit 938f154

Browse files
committed
Rewrite
- Rewrite the whole tool from Perl to Python
1 parent 18eb90a commit 938f154

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2761
-6018
lines changed

.gitignore

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
/blib/
2-
/.build/
3-
_build/
4-
cover_db/
5-
inc/
6-
Build
7-
!Build/
8-
Build.bat
9-
.last_cover_stats
10-
/Makefile
11-
/Makefile.old
12-
/MANIFEST.bak
13-
/META.yml
14-
/META.json
15-
/MYMETA.*
16-
nytprof.out
17-
/pm_to_blib
18-
*.o
19-
*.bs
20-
/_eumm/
1+
/venv/
2+
3+
*.pyc
4+
__pycache__/
5+
6+
.pytest_cache/
7+
.coverage
8+
htmlcov/
9+
10+
dist/
11+
build/
12+
*.egg-info/
13+
14+
tests/test.out

.travis.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
language: perl
2-
perl:
3-
- "5.28"
4-
- "5.26"
5-
- "5.24"
6-
- "5.22"
7-
install:
8-
- cpanm --quiet --installdeps --notest .
1+
dist: bionic
2+
addons:
3+
apt:
4+
update: true
5+
packages:
6+
- python3-venv
7+
- python3-pip
8+
- python3-maxminddb
9+
- python3-yaml
10+
language: sh
911
script:
10-
- perl Makefile.PL
11-
- make
12-
- make dist
13-
- tar zxvf *.tar.gz
14-
- cd p5-App-DSC-DataTool-*[0-9]
15-
- perl Makefile.PL
16-
- make
17-
- RELEASE_TESTING=1 make test
12+
- python3 -m venv venv --system-site-packages
13+
- . venv/bin/activate
14+
- pip install -e .
15+
- cd tests
16+
- ./test.sh

Changes renamed to CHANGES

File renamed without changes.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DSC DataTool
22

3-
Copyright (c) 2016-2019 OARC, Inc.
3+
Copyright (c) 2016-2020 OARC, Inc.
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

MANIFEST

Lines changed: 0 additions & 45 deletions
This file was deleted.

MANIFEST.SKIP

Lines changed: 0 additions & 10 deletions
This file was deleted.

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
graft dsc_datatool
2+
global-exclude *.pyc
3+
include CHANGES

Makefile.PL

Lines changed: 0 additions & 117 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@ Tool for converting, exporting, merging and transforming DSC data.
66

77
Please have a look at [the wiki article](https://github.com/DNS-OARC/dsc-datatool/wiki/Setting-up-a-test-Grafana)
88
on how to set this up using Influx DB and Grafana.
9+
10+
11+
## python
12+
13+
```
14+
sudo apt-get install python3-maxminddb python3-venv
15+
python3 -m venv venv --system-site-packages
16+
. venv/bin/activate
17+
pip install -e .
18+
```

UPGRADE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# TODO

0 commit comments

Comments
 (0)