File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ An [octoDNS](https://github.com/octodns/octodns/) provider that targets [Hetzner
7
7
#### Command line
8
8
9
9
```
10
- pip install octodns_hetzner
10
+ pip install octodns-hetzner
11
11
```
12
12
13
13
#### requirements.txt/setup.py
@@ -19,7 +19,7 @@ Pinning specific versions or SHAs is recommended to avoid unplanned upgrades.
19
19
```
20
20
# Start with the latest versions and don't just copy what's here
21
21
octodns==0.9.14
22
- octodns_hetzner ==0.0.1
22
+ octodns-hetzner ==0.0.1
23
23
```
24
24
25
25
##### SHAs
Original file line number Diff line number Diff line change 2
2
3
3
from os .path import join
4
4
from subprocess import check_call , check_output
5
+ from sys import argv
5
6
from tempfile import TemporaryDirectory
6
7
import re
7
8
@@ -43,10 +44,14 @@ dev_frozen = sorted([p for p in dev_frozen
43
44
print_packages (frozen , 'frozen' )
44
45
print_packages (dev_frozen , 'dev_frozen' )
45
46
47
+ script = argv [0 ]
48
+
46
49
with open ('requirements.txt' , 'w' ) as fh :
50
+ fh .write (f'# DO NOT EDIT THIS FILE DIRECTLY - use { script } to update\n ' )
47
51
fh .write ('\n ' .join (frozen ))
48
52
fh .write ('\n ' )
49
53
50
54
with open ('requirements-dev.txt' , 'w' ) as fh :
55
+ fh .write (f'# DO NOT EDIT THIS FILE DIRECTLY - use { script } to update\n ' )
51
56
fh .write ('\n ' .join (dev_frozen ))
52
57
fh .write ('\n ' )
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ def version():
46
46
'pyflakes>=2.2.0' ,
47
47
'readme_renderer[md]>=26.0' ,
48
48
'twine>=3.4.2' ,
49
- )
49
+ ),
50
+ 'test' : tests_require ,
50
51
},
51
52
install_requires = ('octodns>=0.9.16' , 'requests>=2.27.0' ),
52
53
license = 'MIT' ,
You can’t perform that action at this time.
0 commit comments