Commit Graph

177 Commits

Author SHA1 Message Date
Takashi Kajinami 5afd51e8cf Drop unused pymongodb from requirements
Keystone no longer depends on mongodb after cache implementation was
split to oslo.cache[1]. Also, bandit is not a runtime dependency but
a test dependency, so should live in test requirements.

[1] 4969f66fca

Change-Id: I85f376d0897dd6b4dba758f86882fae70511fb6a
2024-02-04 15:04:55 +00:00
Pete Zaitcev d2deab385b Stop pinning pep8 related packages
These practices cause conflicts periodically. Not right now:
the gate is okay with the current values, which this patch
deletes. However, like sun raising in the east it is sure
to happen again. This patch lets workarounds work that the
infra team puts in place. The downside is, we need to fix
the code once in a while as new checks get added.

Change-Id: Ia7a96fb4b6de4251862a8a96c995cefa94dbc271
2023-10-02 15:41:36 -05:00
Stephen Finucane 6dfde5b48b requirements: Bump linter requirements
The pep257 dependency does not support Python 3.10 and has been
deprecated in favour of flake8-docstrings. While we're here, we bump the
other linter dependencies and remove a note regarding the order of
dependencies, which is no longer true with the new dependency resolver
introduced in pip 20.3. We also remove an import exception for six.moves
since we no longer use six.

Change-Id: I4aae75f513568126230becf27b2e07d6682d35a1
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-10-26 15:14:21 +03:00
Ghanshyam Mann db25e505a3 [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).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40190

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal

Change-Id: I5712f29beee2bd7d8ba857c0ce2cd2287646d6b0
2020-09-16 15:33:44 -05:00
Stephen Finucane 5b552d8785 requirements: Drop os-testr
We migrated to os-testr some time ago. There's no reason to keep this
around as a dependency.

Change-Id: Iedde135b9de03229c27ed57638d0c404169f43ab
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-07-09 11:15:04 +01:00
Ghanshyam Mann c0b7825ecc Bump hacking min version to 3.0.1
hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new
version with new checks.

bumping the min version for hacking so that any older hacking versions
which auto adopt the new checks are not used.

Change-Id: Ie0566690335f7f087adc47c7259d3ece72d469bc
2020-05-12 10:09:04 -05:00
Andreas Jaeger f36111954b Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: Ic440219814ee0c2b98217e9a821f38f5baf482ec
2020-04-15 07:17:58 +02:00
Jon Schlueter b35459b290 drop mock from test-requirements
after commit I8bbcedb7ad3f0bc2e06dfa13878a97411ee1dc6d switched usage
to unittest.mock everywhere we can now drop mock from test-requirements
which reduces extra package from being installed

Change-Id: Id9d87aa8449b46dd74b2acedcdd9239200d108fb
2020-03-17 08:15:25 -04:00
Stephen Finucane 5c71ebd7a9 Stop explicitly requiring pycodestyle
pip doesn't have a dependency resolver. Instead, it "simply uses the
first specification it finds for a project." [1] In Train, keystone
switched from hacking 0.12.x/0.13.x to hacking 1.1.x [2]. That change
explicitly added a pycodestyle dependency for reasons that aren't
entirely clear to me, but pip's broken dependency resolution leads to
the below funkiness when trying to install the dependencies.

  ERROR: flake8 2.6.2 has requirement pycodestyle<2.1,>=2.0, but you'll have pycodestyle 2.5.0 which is incompatible.

As seen below, this can be easily reproduced and seems to happen because
pip doesn't go further than one level of dependencies, meaning it knows
about the dependency on flake8<2.7.0,>=2.6.0 from hacking, but not the
dependency on pycodestyle<2.1,>=2.0 that this in-turn introduces.

  $ virtualenv venv
  $ source venv/bin/activate
  $ (venv) cat requirements.txt
  hacking>=1.1.0,<1.2.0 # Apache-2.0
  pycodestyle>=2.0.0 # MIT License

  $ pip install -r requirements-new.txt
  Collecting hacking<1.2.0,>=1.1.0
    Using cached ...
  Collecting pycodestyle>=2.0.0
    Using cached ...
  Collecting six>=1.10.0
    Using cached ...
  Collecting flake8<2.7.0,>=2.6.0
    Using cached ...
  Collecting pbr!=2.1.0,>=2.0.0
    Using cached ...
  Collecting mccabe<0.6,>=0.2.1
    Using cached ...
  Collecting pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.3,>=0.8.1
    Using cached ...
  ERROR: flake8 2.6.2 has requirement pycodestyle<2.1,>=2.0, but you'll have pycodestyle 2.5.0 which is incompatible.
  Installing collected packages: six, pycodestyle, mccabe, pyflakes, flake8, pbr, hacking
  Successfully installed flake8-2.6.2 hacking-1.1.0 mccabe-0.5.3 pbr-5.4.3 pycodestyle-2.5.0 pyflakes-1.2.3 six-1.12.0

The solution is simple: stop explicitly requiring this dependency and
instead rely on flake8 bringing it in.

[1] https://pip.pypa.io/en/stable/user_guide/#requirements-files
[2] I3fc591e09c1e25a3bd2a3922880772ea9617f1e3

Change-Id: Ic0991d3eeae018609be0ecbd43fa0b0b9f13d6ba
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-10-17 08:18:25 +00:00
wangxiyuan 090886902c Use pycodestyle in place of pep8
The lower version of pycodestyle lib (aliased to pep8) doesn't work
for py36 env. This commit unblocks the py36 gate by adding a
dependency on pycodestyle and using that for style checks.

Bump the "hacking" lib version to v1.1.0 which depends
on a higher verion of pycodestyle.

Change-Id: I3fc591e09c1e25a3bd2a3922880772ea9617f1e3
2018-11-20 17:16:01 +00:00
Nguyen Hai a04a1dc782 Follow the new PTI for document build
- Follow new PTI for docs build
- Add sphinxcontrib.apidoc to replace pbr autodoc

REF:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Depends-On: https://review.openstack.org/#/c/559334/
Change-Id: I1d5f01cf49f36567f5a891c69c7269d3e966b9c5
2018-04-09 01:13:58 +09:00
OpenStack Proposal Bot ad6a2bce2a Updated from global requirements
Change-Id: I399e08cbd0d5fa519bd0a1995d61cbda340f34bb
2018-01-17 20:36:58 +00:00
qinglin.cheng 07bba320ae Create doc/requirements.txt
For compliance with the Project Testing Interface as described in:

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

Refer to:

http://lists.openstack.org/pipermail/openstack-dev/2017-November/124815.html

Change-Id: Ic05a55fb14741bb0802c217c81b0035b6e1f7de2
2017-12-19 16:17:26 +01:00
OpenStack Proposal Bot dd0f7876d2 Updated from global requirements
Change-Id: I508ab26c6537104b1783f6653f04d85d885ef9d2
2017-11-16 11:06:56 +00:00
Jenkins c83d139273 Merge "Migrate to stestr" 2017-09-27 22:58:41 +00:00
Gage Hugo 71e543152e Migrate to stestr
With the latests changes to os-testr[0] it now expects
a .stestr.conf file instead of a .testr.conf file. This
change migrates the testing suite from using testr to
use stestr instead.

[0] http://lists.openstack.org/pipermail/openstack-dev/2017-September/122135.html

Change-Id: Ie0de862f2192491fa7752af03c8c03b3ee36337a
2017-09-22 11:07:09 -05:00
OpenStack Proposal Bot fdb6adf055 Updated from global requirements
Change-Id: I3e5bb988ef2dfe93442cb5eada086313d22d5857
2017-09-22 12:52:15 +00:00
OpenStack Proposal Bot a1f19c73b6 Updated from global requirements
Change-Id: I1e451ebff88a14928fe7d4014a837e11dfb91f6d
2017-08-24 05:50:44 +00:00
Morgan Fainberg 38974af24c Add int storage of datetime for password created/expires
Due to MySQL (in some versions) not storing datetime resolution below
one second, keystone occasionally ends up with weird behavior such as
a New password not being valid. The password created at and expires at
columns now store both datetime (for rolling upgrades) and integers.

Keystone from Pike and beyond leans on the new created_at_int column
and expires_at_int column.

Change-Id: I2c219b4b9b353f1e2cce6088849a773196f0e443
Closes-Bug: #1702211
2017-08-15 16:29:18 +00:00
OpenStack Proposal Bot 80c81ad3c6 Updated from global requirements
Change-Id: Ic299eb548c5ed15b68bb1b8204c32f520e25ed74
2017-07-27 19:11:04 +00:00
OpenStack Proposal Bot 4172893a5d Updated from global requirements
Change-Id: Ic82aba8fccf07930897dd51220185423cacbf3ea
2017-07-14 23:03:13 +00:00
Van Hung Pham 6e631db558 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: I31543b78a1b2d2df685e295d4d011c5e6e4a165b
2017-06-30 14:07:10 +07:00
OpenStack Proposal Bot 147bbd6e2d Updated from global requirements
Change-Id: I0f3ce33f7f60b3e9f5588a9b69cd29bb6fd40e74
2017-06-27 12:11:32 +00:00
Samriddhi f992b1ce42 Updated the keystone docs to follow the docs theme
Changed the existing keystone documenatation html theme to the
new openstackdocstheme. For reference, the same theme is being
used here, https://docs.openstack.org/admin-guide/.

Closes-Bug: #1692031
Change-Id: Ibf1b018e8ed38afa04d02ab033762d6b0ceab89b
2017-06-22 13:26:46 +05:30
OpenStack Proposal Bot 5bca492d17 Updated from global requirements
Change-Id: Ieb62c4ff2d830609bdb73e6f1264262d9d6a7d01
2017-06-19 21:03:58 +00:00
OpenStack Proposal Bot a83257f756 Updated from global requirements
Change-Id: I69d68ca86c1ed1520491f92ef3c3a9bf1421137d
2017-06-10 21:38:30 +00:00
OpenStack Proposal Bot 753f8a6151 Updated from global requirements
Change-Id: Ib313761ed93a2e60cb5d3dc4e654724b70ba1332
2017-06-03 13:05:13 +00:00
OpenStack Proposal Bot 3d033df1c0 Updated from global requirements
Change-Id: I327a89635e2472a90fb57769d06190c4f7640fe7
2017-05-24 03:37:21 +00:00
OpenStack Proposal Bot f172759285 Updated from global requirements
Change-Id: I537f5ba3bdef64abfee3857d1d7c9a559960a119
2017-05-17 03:49:09 +00:00
OpenStack Proposal Bot 2bda1211ed Updated from global requirements
Change-Id: I074fab11f1a7167a3c7ec9b759f6fc3ba4489d03
2017-05-15 00:45:27 +00:00
OpenStack Proposal Bot 7946f67cfc Updated from global requirements
Change-Id: Ie4de66c0f67a73741dc80e680fcd27e710c1b5e0
2017-03-30 01:16:40 +00:00
OpenStack Proposal Bot a55f267bb9 Updated from global requirements
Change-Id: Ibe3650732dab999ed2f07dc6c949f197a0d4a38c
2017-02-19 21:21:46 +00:00
xurong00037997 6cf52d1fc6 Update hacking version
Change-Id: I4369dd138129052a48a0babe212610576a67a47d
2017-02-04 17:51:52 +08:00
OpenStack Proposal Bot 62fa3cdc57 Updated from global requirements
Change-Id: I3ce564d414caef55e812b7c7624a2e87c211b6d8
2017-01-02 16:10:39 +00:00
OpenStack Proposal Bot 1dbbec037e Updated from global requirements
Change-Id: I916a8456da4bc5c6db4ce66946ff09f58b36b692
2016-12-23 03:12:19 +00:00
OpenStack Proposal Bot f3d58a53dd Updated from global requirements
Change-Id: I65c524c3cf3debc29e0923490805c6a2ec9bf85c
2016-12-02 05:06:03 +00:00
OpenStack Proposal Bot 3d513daeb3 Updated from global requirements
Change-Id: I4be320de402c5df9de51d9115fdd8a7c5615100b
2016-11-14 15:05:24 +00:00
OpenStack Proposal Bot 6589dbd5af Updated from global requirements
Change-Id: Ie9e0b75a96d352961815aabdd9607feb12946b7a
2016-11-08 21:23:14 +00:00
OpenStack Proposal Bot 1b799943db Updated from global requirements
Change-Id: I52096766a9c07eab147db2557ca09cfff60b3e0a
2016-11-02 15:32:48 +00:00
OpenStack Proposal Bot b8435cc152 Updated from global requirements
Change-Id: Ib83632b8112ef5caea285301f5f96b5451d81000
2016-10-22 01:20:06 +00:00
OpenStack Proposal Bot 635d4a4c31 Updated from global requirements
Change-Id: I765656deac29b3bfd8f4a82d00bffbb2c6478fb1
2016-09-30 10:17:52 +00:00
OpenStack Proposal Bot a0ee0bbaf2 Updated from global requirements
Change-Id: Id638c4c2baba3f3a1d8e3526b07418067d045a89
2016-09-28 16:53:51 +00:00
OpenStack Proposal Bot a615a85f36 Updated from global requirements
Change-Id: I4119653386091e32572573adf02b37a83d158654
2016-09-27 10:00:38 +00:00
OpenStack Proposal Bot e56dbe8d58 Updated from global requirements
Change-Id: I2bad9b39ed9ad4995e14e1c253abb3f8cbac9267
2016-09-09 16:05:04 +00:00
OpenStack Proposal Bot 372c1bd5bf Updated from global requirements
Change-Id: Ide788aaad730825c14d7adf5a7305796fb9228e2
2016-08-26 09:11:39 +00:00
Matthew Treinish 4bf04ff189 Remove mox from test-requirements
The requirement is not used anywhere and commented out, lets just
remove it. There is no reason to keep it in there.

Change-Id: I1da227911d04de4d9baadb92db324ce8590060e7
2016-08-24 10:48:41 -04:00
OpenStack Proposal Bot 0c78293216 Updated from global requirements
Change-Id: I326f00a4876a26b1a53285dfbcee4add54dcd7ff
2016-08-12 04:49:45 +00:00
OpenStack Proposal Bot 2398e5bb8d Updated from global requirements
Change-Id: I9531301d14942dfc5e33ca58a93908987e56222c
2016-08-09 16:00:52 +00:00
OpenStack Proposal Bot b679f2b440 Updated from global requirements
Change-Id: I652cc271d0b7affb9d62e0d7bf6a5240a2790b8e
2016-07-19 21:08:11 +00:00
Lance Bragstad 7646e2181b Use freezegun to increment the clock in test_v3_filters
In preparation for making Fernet the default token provider, we must freeze and
increment the clock in certain tests. This is because Fernet does not support
sub-second precision and if a Fernet token is validated in the same second that
a revocation event has occured, it will be considered invalid.

This commit makes it so that we freeze the clock in
test_list_users_filtered_by_funny_name() and increment it by one second when we
go to list users by name.

This fix was originally a part of https://review.openstack.org/#/c/258650 but
this is an attempt to break 258650 into smaller, more reviewable, pieces.

Partial-Bug: 1561054
Change-Id: I3ea4af702e6914775156c605799992a41e8e75c5
2016-07-18 15:47:51 +00:00