Commit Graph

35 Commits

Author SHA1 Message Date
Hervé Beraud 45df91ada8 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Iac7d5ec69724206453c5fc74cbd61efde9b9a1ee
2021-01-11 15:07:40 +01:00
wangzihao 43203ea025 Update doc8 version
The doc8 lib supports Py36 starting from version 0.8.1

Change-Id: Ifcff34d4432771ae9401f97d9abeb9b609fb0c6a
2021-01-06 16:54:19 +08:00
Andreas Jaeger 30fdf5ff21 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Set openstackdocs_auto_name to use 'project' as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Depends-On: https://review.opendev.org/729744
Change-Id: Ia2c49cfc3a933a04d6ee4aea6c827935bebd3c41
2020-05-20 21:47:56 +02:00
Ghanshyam Mann 4866bf8ec9 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I117c0ff7fe10fa6a1fd1dee7c6de3ea1a1ee06f6
2020-05-12 19:33:37 -05:00
Zuul 2e4252d1e8 Merge "Cleanup py27 support" 2020-04-14 13:41:17 +00:00
Andreas Jaeger c917387402 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
- Use sphinx-build everywhere
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I23a3b98e41099b74a4da95cc5c6e2d3171c0809c
2020-04-08 11:43:54 +02:00
Andreas Jaeger a09afa37b0 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
there.

Change-Id: I14aee6250d80b7485c5c582a20abf4efafcc28c2
2020-03-31 22:07:59 +02:00
Ghanshyam Mann 2504eeda60 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-monascaclient 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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: If739012908f458acccba1e40fe6bb8dbd231fca7
2019-12-15 00:40:37 +00:00
pengyuesheng 50e38ad677 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: Ia888ea1358c4132f7f154ab616b93247f8051d31
2019-10-10 15:22:27 +08:00
ZhijunWei 7939777a15 Update hacking version
1. Use latest release 1.1.0 and compatible changes w.r.t pep8
2. cleanup of .keys() from dict_object.keys() *in* operator

Story: 2004930
Task: 29772
Change-Id: I5c41100494efee5f0d29d094ccb4d85a6f64bcec
2019-03-01 16:07:52 +00:00
Vu Cong Tuan 1b4d88af33 Remove testrepository and .testr.conf
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository and .testr.conf
are unnecessary and should be removed.

This patch also switch from "test" to "stestr" for coverage job .

[1] https://review.openstack.org/571716

Change-Id: I6b506a19edf06a5bc40472f84a51eaae98583a62
2018-07-12 08:41:56 +07:00
Charles Short ff3520baa0 Switch to using stestr
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

Also clean up requirements.

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

Change-Id: Ic9317d0d2e71ffcc5012184510b554453a7e322f
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-06-02 21:18:55 -04:00
OpenStack Proposal Bot 52b1a1f5a2 Updated from global requirements
Change-Id: I30bf036bf0a4625b35b8a5bc8c797a5918199e32
2018-03-15 08:00:10 +00:00
OpenStack Proposal Bot 763c094740 Updated from global requirements
Change-Id: I151ea990880835838a0ae44449646db6c383792a
2018-01-24 01:30:27 +00:00
OpenStack Proposal Bot 5fb9648477 Updated from global requirements
Change-Id: Ib72cf2a91779ac315e19edb9962e65a641287e79
I6e33a0b0be0271194f21910d383844e41040fc08
2018-01-18 03:29:37 +00:00
OpenStack Proposal Bot 64585e4cc8 Updated from global requirements
Change-Id: I47e795f7fc1fdb3de75ab2116e1ba18009f9c3bb
2018-01-16 04:31:12 +00:00
OpenStack Proposal Bot 2f87014a9e Updated from global requirements
Change-Id: Ie064df6f64ee168ad3b5d2dda949b1d14fa7b9d8
2017-12-04 20:54:16 +00:00
kornicameister 6edcdd4af7 Enable client documentation
Commit enables following flavours of client's documentation:
- docs: featuring mainly CLI and Python API
- releasenotes: containing all releases releasenotes

Story: 2001058
Task: 5722

Needed-By: Ie064df6f64ee168ad3b5d2dda949b1d14fa7b9d8
Change-Id: I1b0fa11160d8d7d928b4cfbe358ca8c75ed8dd08
2017-11-21 17:31:06 +01:00
OpenStack Proposal Bot 8acf58de25 Updated from global requirements
Change-Id: I588cdd5e93b1a320b46af7783b86f30d3515841f
2017-09-24 12:28:06 +00:00
Tomasz Trębski 94c5223f02 Integrate client with osc-lib
osc-lib library is foundation on which a CLI client
for openstack can be built. It is meant to facilitate several
aspects, that were previously hard-coded in client:

* keystone communication handling
* supporting multiple authentication methods (not only password)
* common authentication parameters (i.e. environmental OS_*)
* communicating over http with service endpoint
* interactive CLI mode

Thanks to those items, it was possible not only to drop
nearly 3k lines of code and replace them with osc-lib but also
increase reliabity of the client in terms of new openstack releases.
Also it allowed to greatly simpify existing set of unit-tests.
They are now testing only actual logic instead of mocking
entire process of calling shell (i.e. MonascaShell.run(args)) or
mocking HTTP communication. Both items are handled by osc-lib thus
not they are not subject of monascaclient unit tests layers.

Note:
This change is partial integration with osc-lib and its main
purpose is to move the responsibility of:

* keystone communication
* rest-ful communication with service endpoint

to underlying library thus allowing client to implement only
necessary functionality and not supporting boilerplate code,
mentioned above.

Story: 2000995
Task: 4172

Change-Id: I1712a24739438e2d8331a495f18f357749a633c5
2017-07-15 01:37:08 +02:00
OpenStack Proposal Bot d18e339037 Updated from global requirements
Change-Id: I872d61f2a771299ecf98254ab923e23f09004f5d
2017-05-18 06:34:10 +02:00
Tomasz Trębski f9696d6816 Migrate fully to ostestr
Following commit migrates python-monascaclient
fully to os-testr and oslo.test

Additionally:
- removed mock requirement (unused)
- removed sphinx requirement (unused)

Change-Id: If534134ced5081ccdf40ab7963e087e29672608d
2017-02-20 11:07:46 +01:00
OpenStack Proposal Bot dc69217aea Updated from global requirements
Change-Id: I89924278075cc429892245c2a357f4869ad45ec5
2017-02-15 01:35:19 +00:00
OpenStack Proposal Bot 6c91e28edb Updated from global requirements
Change-Id: I165fb464523eb27267abf6057da40af7bd12ee51
2017-02-09 14:00:20 +00:00
Craig Bryant 9cf6e8b0a5 Turn on bandit check as part of pep8
Add bandit job as part of pep8 in tox.ini

Bandit showed no issues with the current code.

Change-Id: I482544040fa80f33335538404c74f7a075f78237
2017-02-08 13:34:22 -07:00
OpenStack Proposal Bot 95cfb847e2 Updated from global requirements
Change-Id: I59d65db5b26194dc2f4fd525506745831621d2b8
2017-01-20 01:54:43 +00:00
Jamie Lennox d50f05a60b Use requests-mock instead of custom fakes
Mocking out the entire http layer means there is no testing being
performed that a request is actually being sent out as expected.
requests-mock mocks requests and responses at the point where it would
be sent out over the wire so we can better see actual made requests.

Change-Id: I66657ecc6a53b23cecfe92c911aee6fd27c68f40
2017-01-09 11:11:13 -07:00
OpenStack Proposal Bot fba4383533 Updated from global requirements
Change-Id: Ic1e157e7374885378223549644173adbed9c70dc
2016-12-12 03:46:59 +00:00
Swapnil Kulkarni (coolsvap) 231fc8e141 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Ie09f945d4814fa482eb49ef16c1d4df196a31ab4
2016-07-22 04:05:38 +00:00
Stefan Caraiman 917ecfea4c Fixes H904: wrapping using parantheses
Enabled H904 on tox and changes made in relevant files to adhere to the
H904 guideline.

Change-Id: Ib2c1d64c176843ceca6dec147d5985a8f9a9fc96
2016-07-01 22:41:52 +03:00
Tony Breeds 5a099c883d Manually sync with global-requirements
This is a manual sync with global-requirements in order to verify that
python-monascaclient is compatible and ready.

I needed to remove argpase, as it isn't in g-r and also isn't needed.

Change-Id: I0bb43d63dcef87582dd75ef6d495d907a1e2e3c6
2016-05-02 13:57:10 +10:00
Christian Berendt 4be03ba6ca Bump hacking to 0.9.x series
Change-Id: I0e223dc5ccb6d9e68564911f986b665bc00d69e8
2014-07-24 11:14:38 +02:00
cindy oneill fffe8692cd Add .gitreview file. pep8 fixes
Change-Id: Ibe974423bd1bc302e4cd416dbef1758374842abf
2014-06-26 09:59:35 -06:00
cindy oneill 63f12b20c4 Notification create working 2014-03-26 15:50:45 -06:00
cindy oneill 16977c1ac2 Initial monclient files. Help, and versioning is working. 2014-03-17 16:15:44 -06:00