Commit Graph

13 Commits

Author SHA1 Message Date
Ghanshyam Mann f290882658 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I011e9d6e0787dae20607040bc08e7335ff306862
2022-05-03 11:26:13 +00:00
Martin Chacon Piza 873cbf82f6 Rename tenant with project_id
Since oslo.context=4.0.0 Feb 3, 2022  the deprecated argument
tenant was removed [1]

- Bump docutils in lower-constraints and test-requirements

[1] f4cbe4c296

Change-Id: I703d49f5e5870bf45030fc5502749e197aae3a3b
2022-04-06 11:04:08 +02:00
Ghanshyam Mann c491b34888 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ibb26169656785330e7d86a362fd110222fb63a07
2021-02-02 17:44:35 +00:00
wangzihao 6ffab589a4 Remove six
Remove six Replace the following items with Python 3 style code.
- six.PY3
- six.xrange
- six.string_types
- six.binary_type
- six.iteritems
- six.unichr
- six.wraps
- six.get_function_code
- six.PY2
- six.b
- six.moves.range
- reraise
- six.text_type

Story: 2008305
Task: 41301
Change-Id: Idf64154a013b53c7db771a25f1c63c1295e354e6
2020-11-23 15:20:59 +08:00
Martin Chacon Piza e8a953ba3a [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

-Bump the requirements and lower constraints for required deps
which added python3.8 support in their later version.

-It also fixes one unit tests to handle PEP479 being enabled for all code
in Python 3.8 [2].

Story: #2007865
Task: #40197

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
[2] https://stackoverflow.com/questions/51700960/runtimeerror-generator-raised-stopiteration-every-time-i-try-to-run-app

Change-Id: If67bbfe8a2db19fa8f3437f746ca7f4d04487447
2020-10-13 16:09:31 +02:00
Hervé Beraud 3a7030d168 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: Ie7239e6651feb358cd0f00fe2709452ebeb3a811
2020-06-09 01:24:15 +02:00
Andreas Jaeger 2ebc766534 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

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

Change-Id: Ia16e8cbccf7b38be8909aa94e66c04b99f200b89
2020-04-24 12:41:05 +00:00
Martin Chacon Piza 0f4e2bc5df Replacing ujson with simplejson
- http://lists.openstack.org/pipermail/openstack-discuss/2020-January/012285.html

Change-Id: Ic18f8cf4addfedd9055999ec685e81140ffda32d
2020-04-02 15:44:25 +02:00
Witold Bedyk a8b68cbc19 Add wrapper for Confluent Kafka async Producer
Story: 2003705
Task: 27630
Change-Id: I5981e40ecf62cd123ff1969109a8b4b0b9ec204d
2018-11-28 09:56:34 +01:00
Witold Bedyk 34e4c58d50 Remove not used pykafka requirement
Story: 2003079
Task: 23153
Change-Id: Iba653db8935f9575a7838f6daa24b1ec90526815
2018-07-24 16:23:52 +02:00
Witold Bedyk b18cde2dc8 Add check for rst syntax
Creating the release would fail if the syntax of README.rst is not
correct. Let's check it in the pep8 environment.

Story: 2002163
Task: 23044
Change-Id: I2856622af08cec7c801959ca85f4c77252263db5
2018-07-18 16:11:30 +02:00
Doug Szumski 7523d3628b Sync requests-mock minimum version
lower-constraints.txt specifies a version of requests-mock lower
than the minimum version specified in test-requirements.txt. This
causes the CI to fail.

TrivialFix

Change-Id: I0ff21f20f74b7a49c08f72d01ebc197ad8e816cc
2018-05-16 17:40:19 +01:00
Doug Hellmann 9c426e867f 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: I0ef8ed50f55fa905b6090805a3088fc5ab56906c
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 15:47:51 -04:00