File tree Expand file tree Collapse file tree 3 files changed +45
-36
lines changed
Expand file tree Collapse file tree 3 files changed +45
-36
lines changed Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [" setuptools>=61.0" ]
3+ build-backend = " setuptools.build_meta"
4+
5+ [project ]
6+ name = " ansible-modules-hashivault"
7+ version = " 5.5.0"
8+ description = " Ansible Modules for Hashicorp Vault"
9+ readme = " README.rst"
10+ license = " MIT"
11+ authors = [
12+ {
name =
" Terry Howe" ,
email =
" [email protected] " }
13+ ]
14+ classifiers = [
15+ " Programming Language :: Python :: 3" ,
16+ " Operating System :: OS Independent" ,
17+ ]
18+ requires-python = " >=3.9"
19+ dependencies = [
20+ " ansible-core>=2.12.0" ,
21+ " hvac>=2.1.0" ,
22+ " requests" ,
23+ ]
24+
25+ [project .urls ]
26+ Homepage = " https://github.com/TerryHowe/ansible-modules-hashivault"
27+
28+ [tool .setuptools ]
29+ py-modules = [
30+ " ansible.module_utils.hashivault" ,
31+ " ansible.plugins.lookup.hashivault" ,
32+ " ansible.plugins.action.hashivault_read_to_file" ,
33+ " ansible.plugins.action.hashivault_write_from_file" ,
34+ " ansible.plugins.doc_fragments.hashivault" ,
35+ ]
36+ packages = [" ansible.modules.hashivault" ]
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
2+ # Legacy setup.py for backward compatibility
3+ # Primary config is in pyproject.toml
24from setuptools import setup
3-
4- py_files = [
5- "ansible/module_utils/hashivault" ,
6- "ansible/plugins/lookup/hashivault" ,
7- "ansible/plugins/action/hashivault_read_to_file" ,
8- "ansible/plugins/action/hashivault_write_from_file" ,
9- "ansible/plugins/doc_fragments/hashivault" ,
10- ]
11- files = [
12- "ansible/modules/hashivault" ,
13- ]
14-
15- long_description = open ('README.rst' , 'r' ).read ()
16-
17- setup (
18- name = 'ansible-modules-hashivault' ,
19- version = '5.5.0' ,
20- description = 'Ansible Modules for Hashicorp Vault' ,
21- long_description = long_description ,
22- long_description_content_type = 'text/x-rst' ,
23- author = 'Terry Howe' ,
24- 25- url = 'https://github.com/TerryHowe/ansible-modules-hashivault' ,
26- py_modules = py_files ,
27- packages = files ,
28- install_requires = [
29- 'ansible-core>=2.12.0' ,
30- 'hvac>=2.1.0' ,
31- 'requests' ,
32- ],
33- )
5+ setup ()
Original file line number Diff line number Diff line change 1717git pull
1818pip install gitchangelog
1919pip install twine
20- OLDVERSION=$( grep version setup.py | sed -e " s/.*='//" -e " s/',//" )
21- vi setup.py
22- VERSION=$( grep version setup.py | sed -e " s/.*='//" -e " s/',//" )
20+ pip install build
21+ OLDVERSION=$( grep ' ^version' pyproject.toml | sed -e ' s/.*= "//' -e ' s/"//' )
22+ vi pyproject.toml
23+ VERSION=$( grep ' ^version' pyproject.toml | sed -e ' s/.*= "//' -e ' s/"//' )
2324if [ " $OLDVERSION " == " $VERSION " ]
2425then
2526 echo " Old version $OLDVERSION same as $VERSION "
@@ -30,7 +31,7 @@ GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=log.showsignature GIT_CONFIG_VALUE_0=false g
3031vi CHANGELOG.rst
3132echo " Ready to push $VERSION (cntrl-c to quit)?"
3233read ANS
33- git commit -m " Version $VERSION " CHANGELOG.rst setup.py
34+ git commit -m " Version $VERSION " CHANGELOG.rst pyproject.toml
3435git push origin main
3536git tag --force -a $VERSION -m v$VERSION
3637git push origin --tags
@@ -41,5 +42,5 @@ git push origin --tags
4142
4243# twine
4344rm -rf dist
44- python setup.py sdist # bdist_wheel
45+ python3.9 -m build --sdist
4546twine upload dist/*
You can’t perform that action at this time.
0 commit comments