Skip to content

Commit abe06d9

Browse files
committed
Updates to latest template
1 parent e6312a8 commit abe06d9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ An [octoDNS](https://github.com/octodns/octodns/) provider that targets [Hetzner
77
#### Command line
88

99
```
10-
pip install octodns_hetzner
10+
pip install octodns-hetzner
1111
```
1212

1313
#### requirements.txt/setup.py
@@ -19,7 +19,7 @@ Pinning specific versions or SHAs is recommended to avoid unplanned upgrades.
1919
```
2020
# Start with the latest versions and don't just copy what's here
2121
octodns==0.9.14
22-
octodns_hetzner==0.0.1
22+
octodns-hetzner==0.0.1
2323
```
2424

2525
##### SHAs

script/update-requirements

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from os.path import join
44
from subprocess import check_call, check_output
5+
from sys import argv
56
from tempfile import TemporaryDirectory
67
import re
78

@@ -43,10 +44,14 @@ dev_frozen = sorted([p for p in dev_frozen
4344
print_packages(frozen, 'frozen')
4445
print_packages(dev_frozen, 'dev_frozen')
4546

47+
script = argv[0]
48+
4649
with open('requirements.txt', 'w') as fh:
50+
fh.write(f'# DO NOT EDIT THIS FILE DIRECTLY - use {script} to update\n')
4751
fh.write('\n'.join(frozen))
4852
fh.write('\n')
4953

5054
with open('requirements-dev.txt', 'w') as fh:
55+
fh.write(f'# DO NOT EDIT THIS FILE DIRECTLY - use {script} to update\n')
5156
fh.write('\n'.join(dev_frozen))
5257
fh.write('\n')

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def version():
4646
'pyflakes>=2.2.0',
4747
'readme_renderer[md]>=26.0',
4848
'twine>=3.4.2',
49-
)
49+
),
50+
'test': tests_require,
5051
},
5152
install_requires=('octodns>=0.9.16', 'requests>=2.27.0'),
5253
license='MIT',

0 commit comments

Comments
 (0)