-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from berttejeda/develop
Develop
- Loading branch information
Showing
10 changed files
with
144 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
======= | ||
History | ||
======= | ||
|
||
0.0.13 (2019-07-17) | ||
------------------ | ||
|
||
* First release on PyPI. | ||
======= | ||
History | ||
======= | ||
|
||
0.0.14 (2019-07-23) | ||
------------------ | ||
|
||
* First release on PyPI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,61 @@ | ||
[bumpversion] | ||
current_version = 0.0.13 | ||
commit = True | ||
tag = True | ||
[metadata] | ||
name = ansible_taskrunner | ||
author = Engelbert Tejeda | ||
author_email = berttejeda@gmail.com | ||
description = ansible-playbook wrapper with YAML-abstracted python click cli options | ||
version = file: VERSION | ||
url = https://github.com/berttejeda/ansible_taskrunner | ||
keywords = | ||
ansible | ||
playbook | ||
wrapper | ||
bash | ||
python | ||
click | ||
task-runner | ||
subprocess | ||
yaml | ||
cli | ||
options | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Natural Language :: English | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
license_files = | ||
LICENSE.txt | ||
|
||
[bumpversion:file:setup.py] | ||
search = version='{current_version}' | ||
replace = version='{new_version}' | ||
[options] | ||
python_requires = >= 2.7 | ||
setup_requires = | ||
setuptools >= 40.6 | ||
pip >= 10 | ||
wheel >= 0.31 | ||
packages = find: | ||
zip_safe: False | ||
scripts = | ||
# somescript.py | ||
install_requires = | ||
click==6.7 | ||
PyYAML==4.2b1 | ||
|
||
[bumpversion:file:ansible_taskrunner/__init__.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[flake8] | ||
exclude = docs | ||
|
||
[aliases] | ||
# Define setup.py command aliases here | ||
[options.extras_require] | ||
tests = | ||
pytest | ||
pytest-cov | ||
coveralls | ||
flake8 | ||
mypy | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
tasks=ansible_taskrunner.cli:entrypoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""The setup script.""" | ||
|
||
from setuptools import setup, find_packages | ||
try: # for pip >= 10 | ||
from pip._internal.req import parse_requirements | ||
except ImportError: # for pip <= 9.0.3 | ||
from pip.req import parse_requirements | ||
import os | ||
import re | ||
import shutil | ||
import sys | ||
|
||
with open("README.rst", "rb") as readme_file: | ||
readme = readme_file.read().decode("utf-8") | ||
|
||
with open('HISTORY.rst') as history_file: | ||
history = history_file.read() | ||
|
||
embedded_libs = [ | ||
'ansible_taskrunner/lib/py2', | ||
'ansible_taskrunner/lib/py3' | ||
] | ||
|
||
for embedded_lib in embedded_libs: | ||
if os.path.isdir(embedded_lib): | ||
print('Removing embedded lib %s' % embedded_lib) | ||
shutil.rmtree(embedded_lib) | ||
|
||
# parse_requirements() returns generator of pip.req.InstallRequirement objects | ||
install_reqs = parse_requirements("requirements.txt", session=False) | ||
# reqs is a list of requirement | ||
# e.g. ['django==1.5.1', 'mezzanine==1.4.6'] | ||
requirements = [str(ir.req) for ir in install_reqs] | ||
|
||
# Derive version info from main module | ||
try: | ||
# https://stackoverflow.com/questions/52007436/pypi-is-adding-dashes-to-the-beginning-and-end-of-version-name | ||
version = re.search( | ||
'^__version__[\s]+=[\s]+(.*).*', | ||
open('ansible_taskrunner/__init__.py').read(), | ||
re.M | ||
).group(1).strip('"').strip("'") | ||
except AttributeError as e: | ||
print(''' | ||
I had trouble determining the verison information from your app. | ||
Make sure the version string matches this format: | ||
__version__ = '1.0' | ||
''') | ||
|
||
setup_requirements = [ ] | ||
|
||
test_requirements = [ ] | ||
|
||
setup( | ||
author="Engelbert Tejeda", | ||
author_email='berttejeda@gmail.com', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Natural Language :: English', | ||
"Programming Language :: Python :: 2", | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
], | ||
description="ansible-playbook wrapper with YAML-abstracted python click cli options", | ||
entry_points={ | ||
'console_scripts': [ | ||
'tasks=ansible_taskrunner.cli:entrypoint', | ||
], | ||
}, | ||
install_requires=requirements, | ||
license="MIT license", | ||
long_description=readme + '\n\n' + history, | ||
include_package_data=True, | ||
keywords='ansible playbook wrapper bash python click task-runner subprocess yaml cli options', | ||
name='ansible_taskrunner', | ||
packages=find_packages(exclude=['py2','py3']), | ||
setup_requires=setup_requirements, | ||
test_suite='tests', | ||
tests_require=test_requirements, | ||
url='https://github.com/berttejeda/ansible_taskrunner', | ||
version=version, | ||
zip_safe=False, | ||
) | ||
from setuptools import setup; setup() |