Commit Graph

86 Commits

Author SHA1 Message Date
Ghanshyam Mann 00227dfa9a Retire the python-tricircleclient project
Recently the TC has worked on determining the criteria for when an
OpenStack project should be retired[1]. During Victoria cycle,
there was not a PTL nominee for the Triccirle project, that triggered
the TC to review the project health. In TC meeting it was decided to
retire the Tricircle project and was announced in the
openstack-discuss mailing[2]. python-tricircleclient is one of the deliverable
maintained under Tricircle projects which also need to be retire
in this process.

This commit retires the repository as per process and if anyone would
like to maintain Tricircle again, please revert back this commit and propose
the re-adding of Tricircle to governance.

The community wishes to express our thanks and appreciation to all of
those who have contributed to the Tricircle project over the years.

[1] https://governance.openstack.org/tc/reference/dropping-projects.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014338.html

Depends-On: https://review.opendev.org/#/c/728903/
Change-Id: I773640d29c904c333fda8ead58b883661b483939
2020-06-12 12:13:46 -05:00
Zuul 1cabed957a Merge "Add Python3 victoria unit tests" 2020-05-22 17:36:18 +00:00
Sean McGinnis f3fdf782fe Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I29a92ee5a0eeffcf0f2dc1aba1229cf9a7075b25
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-20 18:27:16 +00:00
OpenStack Release Bot bfa0e60f3f Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I4f968c0cc8063548331a9ffe9161505633f3fbe7
2020-04-11 18:49:09 +00:00
Andreas Jaeger 67766fd4fa Fix docs publishing
Change I3e274969dd66d57a5cd0bbb7c39e433bf3b03370 broke docs, fix it
with using the new way of building docs.

Switch to using sphinxcontrib.apidoc for api building.

Remove autodoc config.

Change-Id: I669ae99144267316901c31d8dd3bb4a58fc07001
2020-04-08 08:31:38 +02:00
Andreas Jaeger d7081545da Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I3e274969dd66d57a5cd0bbb7c39e433bf3b03370
2020-04-04 17:17:55 +02:00
Ghanshyam Mann 27bfddea9d Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-tricircleclient is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: I7d608f8dd142283101e54f9c211813ebdf739c3f
2019-12-13 23:48:09 +00:00
Zuul 53fd6b0544 Merge "Update sphinx requirements to match global requirements" 2019-08-12 14:16:20 +00:00
Sean McGinnis 25b780e3f5 Update sphinx requirements to match global requirements
Sphinx has released a version that is not compatible with Python 2, so
we now need separate requirements for py2 and py3.

Also removing the [docs] target from setup.cfg since that method has
been deprecated and is no longer used.

Change-Id: If006a45d8897d4a68e93180ea55f3220edb1abac
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-08-12 05:39:37 +00:00
Corey Bryant bf57c03127 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I0d14ed9a762c1401be8b4406af94f7ad5a407f4e
Story: #2005924
Task: #34252
2019-08-12 05:39:16 +00:00
Victor Morales e607733723 Fix the :module sphinx instruction
This instruction was causing a warning during the building process of
the documentation and failing the Jenkins Jobs.

Change-Id: Ie9cb41fe0a2aef6f222a2fed13f698b830fff40c
2019-08-11 22:34:18 -07:00
Zuul ae17230e67 Merge "Dropping the py35 testing" 2019-05-16 15:15:45 +00:00
OpenDev Sysadmins 68d71e51c0 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:34:46 +00:00
Ghanshyam Mann c214bece68 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I188923dc2896866c9fa955678d9564501fc0caae
2019-04-16 16:30:53 +00:00
98k d7dc4eedb2 Add doc/requirements.txt to docs tox environment
Without these dependencies, the releasenotes build does not actually
work.

Change-Id: Ife3afc67b326c72443ee6513241d9bdec902a499
2019-01-09 17:07:02 +00:00
98k 078ec0e8f0 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I97e653b3295f533cb1d340bec7898ed517ba211b
2018-12-04 07:03:36 +00:00
qingszhao 26561c2aa6 Add Python 3.6 classifier to setup.cfg
Change-Id: I8d3557bb888712adcab2a5ac551fe471cf0b9dec
2018-11-30 07:36:20 +00:00
Vieri 45db1391f2 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I7c3fad62437ab96e8b1e02bb9c38bc1138f7fce8
Story: #2002586
2018-11-28 08:07:27 +00:00
huang.zhiping cab60e2f27 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: Id0e9d5aceeb12ceba176d65d33980f775878c809
2018-10-21 02:55:17 +00:00
qingszhao a59172431e Change python3.5 job to python3.7 job on Stein+
This is a mechanically generated patch to add a unit test job running
under Python 3.7 and drop the Python 3.5 unit test job.

python3.5 was the only supported python3 version on Xenial. Now that
we have Bionic nodes supporting python3.6 and python3.7, let's switch
to testing with python3.7 in addition to python3.6 in Stein and
beyond.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: Ic870e30988317611afd168c69fed84607df6a3e7
Story: #2004073
Task: #27458
2018-10-16 02:34:48 +00:00
Vieri c62c047f8d Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I40bd602eb3896af881906a95a5652b740577f85e
2018-10-09 14:06:08 +00:00
Andreas Jaeger b7c2fc3475 Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Use openstack-lower-constraints-jobs template

Remove jobs that are part of the templates.

Change-Id: I9075f2ded74aab0baa35e58298598b8e835d62e7
2018-09-07 15:04:38 +02:00
Nguyen Hai 2b9bce8d3f add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Icb51a6dcabe3455b331fa5633e2a53842b51c04e
Story: #2002586
Task: #24340
2018-08-24 16:25:47 +09:00
Nguyen Hai 7232e1d292 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id51bd4b3a4a33dc6161c1b2932abb646bc8437f0
Story: #2002586
Task: #24340
2018-08-24 16:25:46 +09:00
Nguyen Hai 75d7a68f1b import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ifa9420a5a7f90c4b761df46e4f3f9e4b9a55870a
Story: #2002586
Task: #24340
2018-08-24 16:25:33 +09:00
Sean McGinnis a60ef68c25 Enforce to cleanup RST errors
PyPI is enforcing to not have syntax errors in package
descriptors. The README file is used as project's description.
According to the official documentation[1], PyPI supports three
different formats (plain text, reStructureText and Markdown).

This change changes the format of the README file to Markdown and
reports syntax errors in documentation. These errors need to be
fixed before a new release can be done.

[1] https://packaging.python.org/guides/making-a-pypi-friendly-readme/

Change-Id: Ia96882528df8a371cc8a89a7d9d74233c4d1b1de
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-08-10 11:14:05 -07:00
Vu Cong Tuan 2bb2bda87b Switch to stestr
According to Openstack summit session [1], stestr is maintained
project to which all Openstack projects should migrate. Let's switch
to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Idf968272f7e741901dfcaaf00ba682deb9d1ac4a
2018-07-09 09:02:08 -07:00
Doug Hellmann 69a5b492c4 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I9e1b3bab1e352614a14be28566a2683f310ec67e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-12 15:22:39 +00:00
Victor Morales a3f408d5b8 Fix Documentation process
PBR has been done changes that affects the way to generate the
documentation. Those changes was causing failures because the
API information was not created. So this change fixes the process
that creates the documentation and fixes the syntax of the one of
the titles of API document.

Change-Id: I9e27897a5df0b2ddaca357f02568c7c97fc2453d
2018-06-07 21:51:59 -07:00
OpenStack Proposal Bot 083e92713b Updated from global requirements
Change-Id: Ie8b15bd518b18f6f47277f37863b8a77293d645d
2018-03-28 09:23:49 +00:00
melissaml 4eb9ac3ef8 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I523eb67139d2881ebdb67d8a0ae28ddbb0e7ef69
2018-03-27 23:35:53 -07:00
Victor Morales f247b70df4 Fix the cover task
The coverage code task was failing because it was missing the
oslotest python module in its test-requirements.txt file

Change-Id: If9387580b10f50fc51b51b7f41ef2af045a01d13
2018-03-27 14:43:24 -07:00
Zuul 468f725583 Merge "add lower-constraints job" 2018-03-27 15:36:45 +00:00
Zuul fe0c766c8a Merge "Updated from global requirements" 2018-03-27 07:14:32 +00:00
Doug Hellmann d55f229bb6 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I123055f6eb0a653803ac2b574ea6c87bee707256
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-27 06:57:11 +00:00
Victor Morales 8f21b50e4c Fix routings headers
The current implementation that remaps the headers of jobs objects
fails in python3. This change simplify the implementation and fixes
the current failures.

Change-Id: I6620a8aeff2b678ab07ae9a55ef2f1e481bdef5d
2018-03-26 22:14:26 -07:00
OpenStack Proposal Bot 27b79a884c Updated from global requirements
Change-Id: I76a1c85f6af42a6cc459b3c30f01886f05b35545
2018-03-15 08:05:27 +00:00
OpenStack Proposal Bot fb3b78942c Updated from global requirements
Change-Id: I5a8a6a81211d303aaefcc2329a27887f62fd285d
2018-01-16 04:33:11 +00:00
Zuul 4bf13ec7e2 Merge "Support pagination and filtering for job list operations" 2017-10-19 02:27:30 +00:00
OpenStack Proposal Bot e54920abbf Updated from global requirements
Change-Id: Ie061e2d6a658cfefeff001a0ad666a3175c94698
2017-10-15 17:09:33 +00:00
Dongfeng Huang dc4ef15c2c Support pagination and filtering for job list operations
1. What is the problem
Tricircle job list operations support pagination and
filtering now, which tricircleclient is lacking of.

2. What is the solution for the problem
Support pagination and filtering for job list operation.

3. What the features need to be implemented to the
tricircleclient to realize the solution
Add pagination and filtering for job list operations.

Change-Id: I109f4d5b222472223f3030b9c4eb2fb5503b3d72
2017-10-10 11:20:40 +08:00
OpenStack Proposal Bot 0bc8efd735 Updated from global requirements
Change-Id: Id671bbedb3e06ccb4f8345be70e83d18d44496f5
2017-09-21 13:39:17 +00:00
OpenStack Proposal Bot 4495bd939d Updated from global requirements
Change-Id: I056a10ebae3fc9dae0052514660557603bb15d5c
2017-08-18 04:52:37 +00:00
Dongfeng Huang 656d88fc9b Include top-id in routing list
1. What is the problem
Currently only pod-id and resource type are showed in the routing list,
top-id should also be displayed.

2. What is the solution for the problem
Include top-id in routing list.

3. What the features need to be implemented to the Tricircle client to
realize the solution
None.

Change-Id: Ie6124adfaee516af672e0c34fdb6bec92c03c2b3
Closes-Bug: #1710546
2017-08-14 19:45:24 +08:00
OpenStack Proposal Bot 572e43c17d Updated from global requirements
Change-Id: I1ac5d31bea32b9d033a4ce3af1eaee31fd1a5024
2017-07-27 20:33:39 +00:00
Kiran_totad 563f700b62 Replaces uuid.uuid4 with uuidutils.generate_uuid()
Change-Id: Icbbb58cd5d84e5c9f382b13beb83efc9c94cf67c
2017-07-25 11:14:50 +05:30
Jenkins 35102c0777 Merge "Add some available resource types" 2017-07-25 03:58:12 +00:00
Jenkins f7293d9f5d Merge "Update the documentation link for doc migration" 2017-07-24 15:04:56 +00:00
Victor Morales 4a571c8e71 Fix openstackdocs theme usage
1. What is the problem?
The tox.ini file was not installing the _openstackdocstheme_ python
module, as consequence the documentation was generated with
`defuault` theme.

2. What is the solution for the problem?
Remove the use of pbr flavors

* https://julien.danjou.info/blog/2017/packaging-python-with-pbr

3. What the features need to be implemented to the tricircleclient
to realize the solution?
None

Change-Id: I6f30ae3662a4b448c281a367924f0b87b5d909dc
2017-07-24 09:42:42 -05:00
Dongfeng Huang ce4cc51625 Add some available resource types
1. What is the problem
Some resources are needed by asynchronous job, as described in [1],
'trunk_id' and 'portchain_id' are needed when create a job.
So we need to add these resources to allow resource routings
creation. Besides resources 'trunk_id' and 'portchain_id', other
resources are also needed in the tricircle, therefore all needed
resources are added at once by this patch. This problem also exists
in the tricircle, and it's fixed by patch [2].

2. What is the solution for the problem
Add some resource types to allow for resource routing creation.

3. What the features need to be implemented to the
tricircleclient to realize the solution
None.

[1] https://github.com/openstack/tricircle/blob/master/tricircle/common/constants.py#L130
[2] https://review.openstack.org/#/c/486364

Change-Id: I75c2ed6b16a2a15ae4c4cc1756f0cb730df90f08
2017-07-24 16:37:21 +08:00