Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/core/azure-core/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

v0.0.1 (unreleased)
v0.0.1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Update the underline to fit, might make renderer upset otherwise

-------------------

- New pipeline
3 changes: 2 additions & 1 deletion sdk/core/azure-core/azure/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
#
# --------------------------------------------------------------------------

__version__ = "0.0.1"
from .version import VERSION
__version__ = VERSION

from .configuration import Configuration
from .pipeline_client import PipelineClient
Expand Down
4 changes: 2 additions & 2 deletions sdk/core/azure-core/azure/core/pipeline/transport/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def set_xml_body(self, data):

def set_json_body(self, data):
"""Set a JSON-friendly object as the body of the request.

:param data: The request field data.
"""
if data is None:
Expand Down Expand Up @@ -207,7 +207,7 @@ def set_formdata_body(self, data=None):

def set_bytes_body(self, data):
"""Set generic bytes as the body of the request.

:param data: The request field data.
"""
if data:
Expand Down
1 change: 0 additions & 1 deletion sdk/core/azure-core/azure/core/pipeline_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,3 @@ def _build_pipeline(self, config, transport): # pylint: disable=no-self-use
transport,
policies
)

2 changes: 1 addition & 1 deletion sdk/core/azure-core/azure/core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "0.0.1"
4 changes: 2 additions & 2 deletions sdk/core/azure-core/sdk_packaging.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[packaging]
package_name = "azure-core"
package_nspkg = "azure-nspkg"
package_pprint_name = "MyService Management"
package_pprint_name = "Core"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is_arm = false

package_doc_id = ""
is_stable = false
is_arm = true
need_msrestazure = true
need_msrestazure = false
auto_update = false
23 changes: 3 additions & 20 deletions sdk/core/azure-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,13 @@

# Change the PACKAGE_NAME only to change folder and different name
PACKAGE_NAME = "azure-core"
PACKAGE_PPRINT_NAME = "MyService Management"
PACKAGE_PPRINT_NAME = "Core"

# a-b-c => a/b/c
package_folder_path = PACKAGE_NAME.replace('-', '/')
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__ # type: ignore
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', # type: ignore
Expand All @@ -51,7 +36,7 @@
setup(
name=PACKAGE_NAME,
version=version,
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME),
description='Microsoft Azure {} Library for Python'.format(PACKAGE_PPRINT_NAME),
long_description=readme + '\n\n' + history,
long_description_content_type='text/markdown',
license='MIT License',
Expand All @@ -77,9 +62,7 @@
'azure',
]),
install_requires=[
'msrest>=0.5.0',
'msrestazure>=0.4.32,<2.0.0',
'azure-common~=1.1',
'requests>=2.18.4',
],
extras_require={
":python_version<'3.0'": ['azure-nspkg'],
Expand Down