Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the automation code #1660

Merged
merged 2 commits into from
Jan 6, 2017
Merged

Change the automation code #1660

merged 2 commits into from
Jan 6, 2017

Conversation

troydai
Copy link
Contributor

@troydai troydai commented Jan 6, 2017

  1. Install automation code as a development package. The outcome is that the automation code can be invoked without add ./scripts folder to the PYTHONPATH.
  2. Add PEP8 scripts to fix PEP8 automatically

1. Install automation code as development package
2. Add PEP8 scripts to fix PEP8 automatically
Copy link
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple questions, but I like the direction this is going.

@@ -2,7 +2,6 @@ adal==0.4.3
applicationinsights==0.10.0
argcomplete==1.3.0
colorama==0.3.7
coverage==4.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we removing this dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is moved to automation package's setup.py.

# --------------------------------------------------------------------------------------------


def fix_pip8(directory):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: should be fix_pep8. Also, where does it "fit" (i.e. how and when will we invoke it?) Should it be added to the CI scripts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I'll fix the typo;
  2. I don't think this should be added to the CI script. From what I saw the autopep8 doesn't fix everything perfectly. It needs human intervention.
  3. What I do plan to add is a PEP8 code style check run after pylint.

@troydai
Copy link
Contributor Author

troydai commented Jan 6, 2017

Looks good? I'll merge soon.

@troydai troydai merged commit 69d026a into Azure:master Jan 6, 2017
@troydai troydai deleted the pep8 branch January 6, 2017 17:51
]

setup(
name='automation',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, please change name as even though we won't be releasing this package, it conflicts with https://pypi.python.org/pypi/automation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix this right now.

thegalah pushed a commit to thegalah/azure-cli that referenced this pull request Jan 6, 2017
* Azure/master:
  Release azure-cli-component 0.1.0b12 (Azure#1665)
  Rename the utility automation package name (Azure#1664)
  [ACS] Update service principal creation so that it is subscription specific. (Azure#1630)
  Change the automation code (Azure#1660)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants