File tree 4 files changed +21
-11
lines changed
4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 2
2
out
3
3
tmp *
4
4
gnatpython
5
+ * .egg-info
6
+ build
Original file line number Diff line number Diff line change 4
4
hooks :
5
5
- id : black
6
6
types : [file]
7
- files : ^gnatdbg/.*\.py$
7
+ files : ^( gnatdbg/|setup) .*\.py$
8
8
args : [--line-length=79]
9
9
- repo : https://github.com/pycqa/flake8
10
10
rev : 4.0.1
11
11
hooks :
12
12
- id : flake8
13
13
types : [file]
14
- files : ^gnatdbg/.*\.py$
14
+ files : ^( gnatdbg/|setup) .*\.py$
15
15
additional_dependencies :
16
16
- flake8-bugbear
17
17
- flake8-builtins
Original file line number Diff line number Diff line change
1
+ 23.0
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env python
2
2
3
- from distutils . core import setup
3
+ import os . path
4
4
5
+ from setuptools import setup
5
6
6
- setup (
7
- name = 'GNATdbg' ,
8
- version = '0.1-dev' ,
9
- author = 'AdaCore' ,
10
-
11
- url = 'https://github.com/AdaCore/gnat-gdb-scripts' ,
12
- description = 'Python helpers in GDB to deal with the GNAT runtime for Ada' ,
13
- packages = ['gnatdbg' ],
14
7
8
+ # The actual version is stored in a separate file to ease automatic updates
9
+ version_file = os .path .join (os .path .dirname (__file__ ), "VERSION" )
10
+ with open (version_file ) as f :
11
+ version = f .read ().strip ()
12
+
13
+
14
+ setup (
15
+ name = "GNATdbg" ,
16
+ version = version ,
17
+ author = "AdaCore" ,
18
+
19
+ url = "https://github.com/AdaCore/gnat-gdb-scripts" ,
20
+ description = "Python helpers in GDB to deal with the GNAT runtime for Ada" ,
21
+ packages = ["gnatdbg" ],
15
22
# This requires to be run in GDB's embedded Python interpreter
16
23
requires = [],
17
24
)
You can’t perform that action at this time.
0 commit comments