Skip to content

Commit

Permalink
updated project with latest template changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFriendlyCoder committed Feb 11, 2019
1 parent 97b5dfd commit d739d1d
Show file tree
Hide file tree
Showing 73 changed files with 411 additions and 376 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,6 @@ ENV/
/.idea/tasks.xml
logs/
py?/

.idea
.vscode
6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

16 changes: 0 additions & 16 deletions .idea/pyjen.iml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/scopes/scope_settings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/vcs.xml

This file was deleted.

30 changes: 15 additions & 15 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS,plugins
ignore=CVS

# Pickle collected data for later comparisons.
persistent=yes
Expand Down Expand Up @@ -60,7 +60,7 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=delslice-method,old-ne-operator,execfile-builtin,setslice-method,input-builtin,getslice-method,range-builtin-not-iterating,apply-builtin,raw_input-builtin,old-raise-syntax,backtick,coerce-method,unicode-builtin,dict-view-method,old-octal-literal,filter-builtin-not-iterating,reload-builtin,useless-suppression,round-builtin,metaclass-assignment,long-builtin,raising-string,map-builtin-not-iterating,standarderror-builtin,old-division,unpacking-in-except,parameter-unpacking,cmp-builtin,xrange-builtin,basestring-builtin,cmp-method,coerce-builtin,intern-builtin,oct-method,nonzero-method,print-statement,long-suffix,reduce-builtin,unichr-builtin,dict-iter-method,using-cmp-argument,indexing-exception,import-star-module-level,no-absolute-import,next-method-called,suppressed-message,hex-method,file-builtin,buffer-builtin,zip-builtin-not-iterating,too-few-public-methods,locally-disabled,too-many-public-methods,fixme
disable=delslice-method,old-ne-operator,execfile-builtin,setslice-method,input-builtin,getslice-method,range-builtin-not-iterating,apply-builtin,raw_input-builtin,old-raise-syntax,backtick,coerce-method,unicode-builtin,dict-view-method,old-octal-literal,filter-builtin-not-iterating,reload-builtin,useless-suppression,round-builtin,metaclass-assignment,long-builtin,raising-string,map-builtin-not-iterating,standarderror-builtin,old-division,unpacking-in-except,parameter-unpacking,cmp-builtin,xrange-builtin,basestring-builtin,cmp-method,coerce-builtin,intern-builtin,oct-method,nonzero-method,print-statement,long-suffix,reduce-builtin,unichr-builtin,dict-iter-method,using-cmp-argument,indexing-exception,import-star-module-level,no-absolute-import,next-method-called,suppressed-message,hex-method,file-builtin,buffer-builtin,zip-builtin-not-iterating,too-few-public-methods,locally-disabled,useless-object-inheritance


[REPORTS]
Expand Down Expand Up @@ -124,16 +124,16 @@ name-group=
include-naming-hint=no

# Regular expression matching correct attribute names
attr-rgx=[a-z_][a-z0-9_]{2,35}$
attr-rgx=[a-z_][a-z0-9_]{2,30}$

# Naming hint for attribute names
attr-name-hint=[a-z_][a-z0-9_]{2,35}$
attr-name-hint=[a-z_][a-z0-9_]{2,30}$

# Regular expression matching correct argument names
argument-rgx=[a-z_][a-z0-9_]{2,35}$
argument-rgx=[a-z_][a-z0-9_]{2,30}$

# Naming hint for argument names
argument-name-hint=[a-z_][a-z0-9_]{2,35}$
argument-name-hint=[a-z_][a-z0-9_]{2,30}$

# Regular expression matching correct constant names
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
Expand All @@ -148,16 +148,16 @@ inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$

# Regular expression matching correct function names
function-rgx=[a-z_][a-z0-9_]{2,35}$
function-rgx=[a-z_][a-z0-9_]{2,30}$

# Naming hint for function names
function-name-hint=[a-z_][a-z0-9_]{2,35}$
function-name-hint=[a-z_][a-z0-9_]{2,30}$

# Regular expression matching correct class attribute names
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,35}|(__.*__))$
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$

# Naming hint for class attribute names
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,35}|(__.*__))$
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$

# Regular expression matching correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$
Expand All @@ -172,16 +172,16 @@ module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

# Regular expression matching correct method names
method-rgx=[a-z_][a-z0-9_]{2,35}$
method-rgx=[a-z_][a-z0-9_]{2,30}$

# Naming hint for method names
method-name-hint=[a-z_][a-z0-9_]{2,35}$
method-name-hint=[a-z_][a-z0-9_]{2,30}$

# Regular expression matching correct variable names
variable-rgx=[a-z_][a-z0-9_]{2,35}$
variable-rgx=[a-z_][a-z0-9_]{2,30}$

# Naming hint for variable names
variable-name-hint=[a-z_][a-z0-9_]{2,35}$
variable-name-hint=[a-z_][a-z0-9_]{2,30}$

# Regular expression which should only match function or class names that do
# not require a docstring.
Expand All @@ -207,7 +207,7 @@ notes=FIXME,XXX,TODO
[FORMAT]

# Maximum number of characters on a single line.
max-line-length=120
max-line-length=80

# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
Expand Down
38 changes: 28 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
language: python

python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- pypy3.5

install:
- pip install tox twine wheel
- pip install tox twine wheel python-coveralls

script:
- export PYVER=`echo $TRAVIS_PYTHON_VERSION | tr "." "\n" | head -n 1`
- echo $TRAVIS_PYTHON_VERSION
- export PYVER=`echo $TRAVIS_PYTHON_VERSION | tr "." "\n" | head -n 1 | sed 's/^py//'`
- echo $PYVER
- tox -e py$PYVER

# Deploy to test.pypi.org for branches
# Deploy to pypi.org for tags
# NOTE: You can not replace builds published to pypi, even if you delete one
# so you must make sure your versions are always unique
jobs:
include:
- stage: package
python: 3.5
- stage: deploy-release
python: 3.6
script:
- python setup.py bdist_wheel
- twine upload dist/*.whl -u $DEPLOY_USER -p $DEPLOY_PASS
- python setup.py bdist_wheel
- twine upload dist/*.whl -u $DEPLOY_USER -p $DEPLOY_PASS
if: tag IS true
- stage: deploy-snapshot
python: 3.6
script:
- python setup.py bdist_wheel
- twine upload --repository-url https://test.pypi.org/legacy/
dist/*.whl -u $DEPLOY_USER -p $DEPLOY_PASS
if: tag IS NOT true

after_success:
- coveralls
77 changes: 0 additions & 77 deletions README.md

This file was deleted.

40 changes: 5 additions & 35 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,37 +1,7 @@
.. This is a readme file encoded in reStructuredText format, intended for use on the summary page for the pyjen
.. PyPI project. Care should be taken to make sure the encoding is compatible with PyPI's markup
.. syntax. See this site for details:
.. http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html
..
=============
Overview
=============

.. image:: https://img.shields.io/pypi/l/pyjen.svg
:target: https://pypi.python.org/pypi/pyjen/
:alt: License

.. image:: https://img.shields.io/pypi/pyversions/pyjen.svg
:target: https://pypi.python.org/pypi/pyjen/
:alt: Python Versions

.. image:: https://img.shields.io/pypi/dm/pyjen.svg
:target: https://pypi.python.org/pypi/pyjen/
:alt: Downloads

.. image:: https://img.shields.io/pypi/format/pyjen.svg
:target: https://pypi.python.org/pypi/pyjen/
:alt: Format

.. image:: https://badge.fury.io/py/pyjen.svg
:target: https://pypi.python.org/pypi/pyjen/
:alt: Latest Version

.. image:: https://api.travis-ci.org/TheFriendlyCoder/pyjen.svg?branch=master
:target: https://travis-ci.org/TheFriendlyCoder/pyjen
:alt: Build status

Extensible, user and developer friendly Python interface to the `Jenkins <http://jenkins-ci.org/>`_ CI tool, wrapping
the features exposed by the standard REST `API <https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API/>`_ using
Pythonic objects and functions. Tested against the latest 2.x and 3.x versions of Python, and the
Expand All @@ -51,15 +21,15 @@ Quick start guide
=================
1. First, we recommend that you install the pip package manager as described `here <http://www.pip-installer.org/en/latest/installing.html>`_

2. Install PyJen directly from PyPI using PIP:
2. Install PyJen directly from PyPI using PIP:

::
::

# pip install pyjen --pre

3. import the pyjen module and start scripting! See below for some common examples.

For a more in-depth guide to contributing to the project, see our
For a more in-depth guide to contributing to the project, see our
`contributors guide <https://pyjen.readthedocs.org/en/v0.0.10dev/contrib_guide.html>`_.

================
Expand All @@ -77,7 +47,7 @@ Display a list of all jobs on the default view

for j in jobs:
print(j.name)


Disable all jobs in a view named "My View"
---------------------------------------------------------
Expand All @@ -88,7 +58,7 @@ Disable all jobs in a view named "My View"
jk = Jenkins("http://localhost:8080")
vw = jk.find_view("My View")
vw.disable_all_jobs()


Get all upstream dependencies of a job named "JobA"
------------------------------------------------------------
Expand Down

0 comments on commit d739d1d

Please sign in to comment.