Skip to content

Commit 549f1be

Browse files
committed
Merge pull request #1 from zooba/master
Code bootstrap
2 parents cb12532 + 308bd4a commit 549f1be

24 files changed

+1210
-136
lines changed

.gitattributes

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Set the default behavior (used when a rule below doesn't match)
2-
* text=auto
3-
4-
*.sln -text
5-
*.ico -text
6-
*.bmp -text
7-
*.png -text
8-
*.snk -text
9-
*.mht -text
10-
*.pickle -text
11-
12-
# Some Windows-specific files should always be CRLF
13-
*.bat eol=crlf
1+
# Set the default behavior (used when a rule below doesn't match)
2+
* text=auto
3+
4+
*.sln -text
5+
*.ico -text
6+
*.bmp -text
7+
*.png -text
8+
*.snk -text
9+
*.mht -text
10+
*.pickle -text
11+
12+
# Some Windows-specific files should always be CRLF
13+
*.bat eol=crlf

.gitignore

Lines changed: 60 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,60 @@
1-
# Python cache
2-
__pycache__/
3-
*.pyc
4-
5-
# Virtual environment
6-
env/
7-
8-
# PTVS analysis
9-
.ptvs/
10-
11-
# Build results
12-
bin/
13-
obj/
14-
dist/
15-
MANIFEST
16-
17-
# Result of running python setup.py install/pip install -e
18-
RECORD.txt
19-
build/
20-
*.egg-info/
21-
22-
# Test results
23-
TestResults/
24-
25-
# Credentials
26-
credentials_real.json
27-
testsettings_local.json
28-
servicebus_settings_real.py
29-
storage_settings_real.py
30-
legacy_mgmt_settings_real.py
31-
mgmt_settings_real.py
32-
app_creds_real.py
33-
34-
# User-specific files
35-
*.suo
36-
*.user
37-
*.sln.docstates
38-
.vs/
39-
40-
# Windows image file caches
41-
Thumbs.db
42-
ehthumbs.db
43-
44-
# Folder config file
45-
Desktop.ini
46-
47-
# Recycle Bin used on file shares
48-
$RECYCLE.BIN/
49-
50-
# Mac desktop service store files
51-
.DS_Store
52-
53-
.idea
54-
src/build
55-
*.iml
56-
/doc/_build
57-
/.vs/config/applicationhost.config
58-
59-
# Azure deployment credentials
60-
*.pubxml
61-
1+
# Python cache
2+
__pycache__/
3+
*.pyc
4+
5+
# Virtual environment
6+
env/
7+
8+
# PTVS analysis
9+
.ptvs/
10+
11+
# Build results
12+
obj/
13+
dist/
14+
MANIFEST
15+
16+
# Result of running python setup.py install/pip install -e
17+
RECORD.txt
18+
build/
19+
*.egg-info/
20+
21+
# Test results
22+
TestResults/
23+
24+
# Credentials
25+
credentials_real.json
26+
testsettings_local.json
27+
servicebus_settings_real.py
28+
storage_settings_real.py
29+
legacy_mgmt_settings_real.py
30+
mgmt_settings_real.py
31+
app_creds_real.py
32+
33+
# User-specific files
34+
*.suo
35+
*.user
36+
*.sln.docstates
37+
.vs/
38+
39+
# Windows image file caches
40+
Thumbs.db
41+
ehthumbs.db
42+
43+
# Folder config file
44+
Desktop.ini
45+
46+
# Recycle Bin used on file shares
47+
$RECYCLE.BIN/
48+
49+
# Mac desktop service store files
50+
.DS_Store
51+
52+
.idea
53+
src/build
54+
*.iml
55+
/doc/_build
56+
/.vs/config/applicationhost.config
57+
58+
# Azure deployment credentials
59+
*.pubxml
60+

.hgignore

Lines changed: 0 additions & 62 deletions
This file was deleted.

azure-cli.pyproj

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<SchemaVersion>2.0</SchemaVersion>
6+
<ProjectGuid>{938454f7-93bd-41a7-84b2-3c89d64b969d}</ProjectGuid>
7+
<ProjectHome>src\</ProjectHome>
8+
<StartupFile />
9+
<SearchPath />
10+
<WorkingDirectory>.</WorkingDirectory>
11+
<OutputPath>.</OutputPath>
12+
<ProjectTypeGuids>{888888a0-9f3d-457c-b088-3a5042f75d52}</ProjectTypeGuids>
13+
<LaunchProvider>Standard Python launcher</LaunchProvider>
14+
<InterpreterId>{1dd9c42b-5980-42ce-a2c3-46d3bf0eede4}</InterpreterId>
15+
<InterpreterVersion>3.5</InterpreterVersion>
16+
</PropertyGroup>
17+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
18+
<PropertyGroup Condition="'$(Configuration)' == 'Release'" />
19+
<PropertyGroup>
20+
<VisualStudioVersion Condition=" '$(VisualStudioVersion)' == '' ">10.0</VisualStudioVersion>
21+
<PtvsTargetsFile>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets</PtvsTargetsFile>
22+
</PropertyGroup>
23+
<ItemGroup>
24+
<Compile Include="azure\cli\commands\login.py" />
25+
<Compile Include="azure\cli\commands\storage.py" />
26+
<Compile Include="azure\cli\commands\__init__.py" />
27+
<Compile Include="azure\cli\main.py" />
28+
<Compile Include="azure\cli\tests\test_argparse.py">
29+
<SubType>Code</SubType>
30+
</Compile>
31+
<Compile Include="azure\cli\_argparse.py" />
32+
<Compile Include="azure\cli\_logging.py" />
33+
<Compile Include="azure\cli\_session.py">
34+
<SubType>Code</SubType>
35+
</Compile>
36+
<Compile Include="azure\cli\_util.py" />
37+
<Compile Include="azure\cli\__init__.py" />
38+
<Compile Include="azure\cli\__main__.py" />
39+
<Compile Include="azure\__init__.py" />
40+
</ItemGroup>
41+
<ItemGroup>
42+
<Folder Include="azure" />
43+
<Folder Include="azure\cli" />
44+
<Folder Include="azure\cli\commands" />
45+
<Folder Include="azure\cli\tests\" />
46+
</ItemGroup>
47+
<ItemGroup>
48+
<Interpreter Include="..\env\">
49+
<Id>{1dd9c42b-5980-42ce-a2c3-46d3bf0eede4}</Id>
50+
<BaseInterpreter>{2af0f10d-7135-4994-9156-5d01c9c11b7e}</BaseInterpreter>
51+
<Version>3.5</Version>
52+
<Description>env (Python 3.5)</Description>
53+
<InterpreterPath>Scripts\python.exe</InterpreterPath>
54+
<WindowsInterpreterPath>Scripts\pythonw.exe</WindowsInterpreterPath>
55+
<LibraryPath>Lib\</LibraryPath>
56+
<PathEnvironmentVariable>PYTHONPATH</PathEnvironmentVariable>
57+
<Architecture>X86</Architecture>
58+
</Interpreter>
59+
</ItemGroup>
60+
<Import Project="$(PtvsTargetsFile)" Condition="Exists($(PtvsTargetsFile))" />
61+
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="!Exists($(PtvsTargetsFile))" />
62+
</Project>

azure-cli.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.24720.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "azure-cli", "azure-cli.pyproj", "{938454F7-93BD-41A7-84B2-3C89D64B969D}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{938454F7-93BD-41A7-84B2-3C89D64B969D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{938454F7-93BD-41A7-84B2-3C89D64B969D}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

bin/extract-loc.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#! /usr/bin/env python3
2+
3+
import os
4+
import re
5+
import subprocess
6+
import sys
7+
8+
from pathlib import Path
9+
10+
ROOT = Path(__file__).resolve().parent.parent / "src" / "azure" / "cli"
11+
OUTPUT = ROOT / "locale" / "en-US" / "messages.txt"
12+
13+
print('Extracting from:', ROOT)
14+
15+
if not ROOT.is_dir():
16+
print("Failed to locate 'azure/cli'")
17+
sys.exit(1)
18+
19+
if not OUTPUT.parent.is_dir():
20+
os.makedirs(str(OUTPUT.parent))
21+
22+
with open(str(OUTPUT), 'w', encoding='utf-8-sig') as f_out:
23+
for path in ROOT.rglob('*.py'):
24+
with open(str(path), 'r', encoding='utf-8') as f:
25+
content = f.read()
26+
for m in re.finditer('[^\w_]_\(("(.+)"|\'(.+)\')\)', content):
27+
print('# From', path, ':', m.span()[0], file=f_out)
28+
print('KEY:', m.group(2) or m.group(3), file=f_out)
29+
print(m.group(2) or m.group(3), file=f_out)
30+
print(file=f_out)

src/MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include *.rst
2+
exclude azure/__init__.py

src/README.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
Microsoft Azure Command-Line Tools
2+
==================================
3+
4+
This is the Microsoft Azure Service Bus Runtime Client Library.
5+
6+
This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5.
7+
8+
9+
Installation
10+
============
11+
12+
Download Package
13+
----------------
14+
15+
To install via the Python Package Index (PyPI), type:
16+
17+
.. code:: shell
18+
19+
pip install azure-cli
20+
21+
22+
Download Source Code
23+
--------------------
24+
25+
To get the source code of the SDK via **git** type:
26+
27+
.. code:: shell
28+
29+
git clone https://github.com/Azure/azure-cli.git
30+
31+
32+
Usage
33+
=====
34+
35+
36+
37+
Need Help?
38+
==========
39+
40+
Be sure to check out the Microsoft Azure `Developer Forums on Stack
41+
Overflow <http://go.microsoft.com/fwlink/?LinkId=234489>`__ if you have
42+
trouble with the provided code.
43+
44+
45+
Contribute Code or Provide Feedback
46+
===================================
47+
48+
If you would like to become an active contributor to this project please
49+
follow the instructions provided in `Microsoft Azure Projects
50+
Contribution
51+
Guidelines <http://azure.github.io/guidelines.html>`__.
52+
53+
If you encounter any bugs with the tool please file an issue in the
54+
`Issues <https://github.com/Azure/azure-cli/issues>`__
55+
section of the project.
56+
57+
58+
Learn More
59+
==========
60+
61+
`Microsoft Azure Python Developer
62+
Center <http://azure.microsoft.com/en-us/develop/python/>`__

src/azure/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__import__('pkg_resources').declare_namespace(__name__)

0 commit comments

Comments
 (0)