summaryrefslogtreecommitdiff
path: root/gitlab/const.py
Commit message (Collapse)AuthorAgeFilesLines
* chore: rename `gitlab/__version__.py` -> `gitlab/_version.py`jlvillal/version_mvJohn L. Villalovos2022-01-151-1/+1
| | | | | | | | | | | | | | It is confusing to have a `gitlab/__version__.py` because we also create a variable `gitlab.__version__` which can conflict with `gitlab/__version__.py`. For example in `gitlab/const.py` we have to know that `gitlab.__version__` is a module and not the variable due to the ordering of imports. But in most other usage `gitlab.__version__` is a version string. To reduce confusion make the name of the version file `gitlab/_version.py`.
* refactor: deprecate accessing constants from top-level namespaceJohn L. Villalovos2021-11-301-0/+35
| | | | | | | | | | | | | | We are planning on adding enumerated constants into gitlab/const.py, but if we do that than they will end up being added to the top-level gitlab namespace. We really want to get users to start using `gitlab.const.` to access the constant values in the future. Add the currently defined constants to a list that should not change. Use a module level __getattr__ function so that we can deprecate access to the top-level constants. Add a unit test which verifies we generate a warning when accessing the top-level constants.
* refactor: use f-strings for string formattingNejc Habjan2021-11-051-1/+1
|
* refactor(objects): remove deprecated constants defined in objectsNejc Habjan2021-09-111-4/+3
| | | | | BREAKING CHANGE: remove deprecated constants defined in gitlab.v4.objects, and use only gitlab.const module
* feat: default to gitlab.com if no URL givenNejc Habjan2021-09-081-0/+2
| | | | | BREAKING CHANGE: python-gitlab will now default to gitlab.com if no URL is given
* chore: fix import ordering using isortJohn L. Villalovos2021-05-251-1/+0
| | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/
* chore: add type-hints to gitlab/const.pyJohn L. Villalovos2021-02-251-30/+30
|
* feat(api,cli): make user agent configurableNejc Habjan2021-01-311-0/+5
|
* feat: add MINIMAL_ACCESS constantJacob Henner2020-12-151-0/+1
| | | | | | A "minimal access" access level was [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/220203) in GitLab 13.5.
* chore: simplified search scope constantsValentin Grégoire2020-09-291-32/+11
|
* chore: added docs for search scopes constantsValentin Grégoire2020-09-161-0/+1
|
* chore: added constants for search APIValentin Grégoire2020-07-071-0/+37
|
* feat: added NO_ACCESS constStuart Gunter2020-07-021-0/+1
| | | | | | | | This constant is useful for cases where no access is granted, e.g. when creating a protected branch. The `NO_ACCESS` const corresponds to the definition in https://docs.gitlab.com/ee/api/protected_branches.html
* refactor: format everything blackrefactor/blackMax Wittig2019-05-161-6/+6
|
* refactor: rename MASTER_ACCESSrefactor/rename-variableMax Wittig2018-10-061-1/+2
| | | | | | | to MAINTAINER_ACCESS to follow GitLab 11.0 docs See: https://docs.gitlab.com/ce/user/permissions.html#project-members-permissions
* update copyright yearsGauvain Pocentek2017-05-241-1/+1
|
* Add support for the notification settings APIGauvain Pocentek2016-10-231-0/+7
|
* Move the constants at the gitlab root levelGauvain Pocentek2016-08-111-0/+26