Skip to content

Commit f177a53

Browse files
authored
Merge pull request #27 from oracle/release_2017-09-11
Releasing version 1.3.7
2 parents b9c2608 + 1505e66 commit f177a53

File tree

266 files changed

+8620
-781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+8620
-781
lines changed

CHANGELOG.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.
66

7+
====================
8+
1.3.7 - 2017-09-11
9+
====================
10+
11+
Deprecated
12+
----------
13+
* The default configuration file location has been changed from ~/.oraclebmc/config to ~/.oci/config. The old location still works if the file at the new location does not exist.
14+
15+
Added
16+
-----
17+
* Support for the Database service
18+
* Support for instance console connections
19+
* Support for the Load Balancer Health Status API
20+
* Support for Compartment renaming
21+
* Support for managing customer secret keys
22+
23+
Changed
24+
-------
25+
* The default configuration file location is now ~/.oci/config
26+
727
====================
828
1.3.6 - 2017-08-10
929
====================
@@ -57,7 +77,7 @@ Added
5777
Added
5878
-------
5979

60-
* Support for VCN private subnets using the prohibit_public_ip_on_vnic parameter on oraclebmc.core.VirtualNetworkClient.create_subnet.
80+
* Support for VCN private subnets using the prohibit_public_ip_on_vnic parameter on oci.core.VirtualNetworkClient.create_subnet.
6181
* Support for FastConnect
6282
* Support for list_regions and region subscription operations
6383
* First class support for new IAD region

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Contributing to the Oracle Bare Metal Cloud Services Python SDK
1+
Contributing to the Oracle Cloud Infrastructure Python SDK
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

44
*Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.*

README.rst

Lines changed: 79 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
Oracle Bare Metal Cloud Services Python SDK
1+
Oracle Cloud Infrastructure Python SDK
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

44
=====
55
About
66
=====
77

8-
This is the Python SDK for Oracle Bare Metal Cloud Services. Python 2.7+ and 3.5+ are supported.
8+
This is the Python SDK for Oracle Cloud Infrastructure. Python 2.7+ and 3.5+ are supported.
99

1010
.. code-block:: pycon
1111
12-
>>> import oraclebmc
12+
>>> import oci
1313
# Set up config
14-
>>> config = oraclebmc.config.from_file(
15-
... "~/.oraclebmc/config",
14+
>>> config = oci.config.from_file(
15+
... "~/.oci/config",
1616
... "DEFAULT")
1717
# Create a service client
18-
>>> identity = oraclebmc.identity.IdentityClient(config)
18+
>>> identity = oci.identity.IdentityClient(config)
1919
# Get the current user
2020
>>> user = identity.get_user(config["user"]).data
2121
>>> print(user)
@@ -31,28 +31,88 @@ This is the Python SDK for Oracle Bare Metal Cloud Services. Python 2.7+ and 3.5
3131
3232
The project is open source and maintained by Oracle Corp. The home page for the project is `here`__.
3333

34-
__ https://oracle-bare-metal-cloud-services-python-sdk.readthedocs.io/en/latest/index.html
34+
__ https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/index.html
3535

3636
============
3737
Installation
3838
============
3939

4040
::
4141

42-
pip install oraclebmc
42+
pip install oci
4343

4444

4545
See `the installation guide`__ for installation troubleshooting and alternative install methods.
4646

47-
__ https://oracle-bare-metal-cloud-services-python-sdk.readthedocs.io/en/latest/installation.html
47+
__ https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/installation.html
48+
49+
============
50+
Development
51+
============
52+
53+
Getting Started
54+
===============
55+
Assuming that you have Python and `virtualenv` installed, set up your environment and install the required dependencies like this:
56+
57+
.. code-block:: sh
58+
59+
git clone https://github.com/oracle/oci-python-sdk.git
60+
cd oci-python-sdk
61+
virtualenv oci-python-sdk-env
62+
. oci-python-sdk-env/bin/activate
63+
pip install -r requirements.txt
64+
pip install -e .
65+
66+
You should also set up your configuration files as described `here`__
67+
68+
__ https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdkconfig.htm
69+
70+
Running Tests
71+
=============
72+
The SDK uses `pytest` as its test framework. You can run tests against Python 2.7 Python 3.5 using the `tox` command. Note that this requires that you have those versions of Python installed,
73+
otherwise you must pass `-e` or run tests directly:
74+
75+
.. code-block:: sh
76+
77+
# This will run tests against all configured Pythons in tox.ini (currently 2.7 and 3.5). You need to have those versions installed
78+
tox
79+
80+
# This will run tests against a specific Python versions
81+
tox -e py27
82+
83+
If you wish to run an individual test then you can run:
84+
85+
.. code-block:: sh
86+
87+
py.test -s tests/integ/test_launch_instance_tutorial.py
88+
89+
Generating Documentation
90+
========================
91+
Sphinx is used for documentation. You can generate HTML locally with the following:
92+
93+
.. code-block:: sh
94+
95+
pip install -r requirements.txt
96+
cd docs
97+
make html
98+
99+
Generating the wheel
100+
====================
101+
The SDK is packaged as a wheel. In order to generate the wheel you can run:
102+
103+
.. code-block:: sh
104+
105+
python setup.py sdist bdist_wheel
106+
107+
This wheel can then be installed via `pip`.
48108

49109
========
50110
Examples
51111
========
52112

53113
Examples can be found `here`__.
54114

55-
__ https://github.com/oracle/bmcs-python-sdk/blob/master/examples/
115+
__ https://github.com/oracle/oci-python-sdk/blob/master/examples/
56116

57117
=============
58118
Documentation
@@ -62,34 +122,34 @@ Full documentation, including prerequisites and installation and configuration i
62122

63123
API reference can be found `here`__.
64124

65-
__ https://oracle-bare-metal-cloud-services-python-sdk.readthedocs.io/en/latest/index.html
66-
__ https://oracle-bare-metal-cloud-services-python-sdk.readthedocs.io/en/latest/api/index.html
125+
__ https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/index.html
126+
__ https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/api/index.html
67127

68128
====
69129
Help
70130
====
71131

72132
See the “Questions or Feedback” section `here`__.
73133

74-
__ https://oracle-bare-metal-cloud-services-python-sdk.readthedocs.io/en/latest/feedback.html
134+
__ https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/feedback.html
75135

76136
=======
77137
Changes
78138
=======
79139

80140
See `CHANGELOG`__.
81141

82-
__ https://github.com/oracle/bmcs-python-sdk/blob/master/CHANGELOG.rst
142+
__ https://github.com/oracle/oci-python-sdk/blob/master/CHANGELOG.rst
83143

84144
============
85145
Contributing
86146
============
87147

88-
bmcs-python-sdk is an open source project. See `CONTRIBUTING`__ for details.
148+
oci-python-sdk is an open source project. See `CONTRIBUTING`__ for details.
89149

90-
Oracle gratefully acknowledges the contributions to bmcs-python-sdk that have been made by the community.
150+
Oracle gratefully acknowledges the contributions to oci-python-sdk that have been made by the community.
91151

92-
__ https://github.com/oracle/bmcs-python-sdk/blob/master/CONTRIBUTING.rst
152+
__ https://github.com/oracle/oci-python-sdk/blob/master/CONTRIBUTING.rst
93153

94154
============
95155
Known Issues
@@ -99,7 +159,7 @@ You can find information on any known issues with the SDK `here`__ and under the
99159
project's `GitHub repository`__.
100160

101161
__ https://docs.us-phoenix-1.oraclecloud.com/Content/knownissues.htm
102-
__ https://github.com/oracle/bmcs-python-sdk
162+
__ https://github.com/oracle/oci-python-sdk
103163

104164
=======
105165
License
@@ -111,4 +171,4 @@ This SDK and sample is dual licensed under the Universal Permissive License 1.0
111171

112172
See `LICENSE`__ for more details.
113173

114-
__ https://github.com/oracle/bmcs-python-sdk/blob/master/LICENSE.txt
174+
__ https://github.com/oracle/oci-python-sdk/blob/master/LICENSE.txt

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ qthelp:
9292
@echo
9393
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
9494
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
95-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/oraclebmc.qhcp"
95+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/oci.qhcp"
9696
@echo "To view the help file:"
97-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/oraclebmc.qhc"
97+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/oci.qhc"
9898

9999
.PHONY: applehelp
100100
applehelp:
@@ -111,8 +111,8 @@ devhelp:
111111
@echo
112112
@echo "Build finished."
113113
@echo "To view the help file:"
114-
@echo "# mkdir -p $$HOME/.local/share/devhelp/oraclebmc"
115-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/oraclebmc"
114+
@echo "# mkdir -p $$HOME/.local/share/devhelp/oci"
115+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/oci"
116116
@echo "# devhelp"
117117

118118
.PHONY: epub

0 commit comments

Comments
 (0)