Skip to content

Commit 38ba3cb

Browse files
committed
release stuff
1 parent fd2b63c commit 38ba3cb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@
8383
update_package_files(PACKAGENAME, extensions, package_data, packagenames,
8484
package_dirs)
8585

86+
# Currently the only entry points installed by Astropy are hooks to
87+
# zest.releaser for doing Astropy's releases
88+
entry_points = {}
89+
for hook in [('prereleaser', 'middle'), ('releaser', 'middle'),
90+
('postreleaser', 'before'), ('postreleaser', 'middle')]:
91+
hook_ep = 'zest.releaser.' + '.'.join(hook)
92+
hook_name = 'astroquery.release.' + '.'.join(hook)
93+
hook_func = 'astropy.utils.release:' + '_'.join(hook)
94+
entry_points[hook_ep] = ['%s = %s' % (hook_name, hook_func)]
95+
96+
8697
setup(name=PACKAGENAME,
8798
version=VERSION,
8899
description=DESCRIPTION,

0 commit comments

Comments
 (0)