Skip to content

Commit d751e04

Browse files
authored
Merge pull request #174 from britive/develop
v2.0.0
2 parents e2d8c0e + 56e03d4 commit d751e04

File tree

98 files changed

+724
-900
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+724
-900
lines changed

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6+
*.sublime-*
7+
.DS_Store
8+
.idea*
69
.in
710
.out
8-
.idea*
9-
testing-variables.txt
10-
.DS_Store
11-
site/
1211
lock-test.py
12+
site/
1313
test.py
14+
testing-variables.txt
1415

1516
# IDE
1617
.vscode/

CHANGELOG.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1-
# Change Log
1+
# Changelog
22

3-
* As of v1.4.0 release candidates will be published in an effort to get new features out faster while still allowing
4-
time for full QA testing before moving the release candidate to a full release.
3+
> As of v1.4.0, release candidates will be published in an effort to get new features out faster while still allowing
4+
> time for full QA testing before moving the release candidate to a full release.
5+
6+
## v2.0.0 [2024-09-09]
7+
8+
__What's New:__
9+
10+
* Added colors to banner output.
11+
* Added Step Up authentication to `my_secrets`
12+
13+
__Enhancements:__
14+
15+
* Switched to `ruff` for style linting and code-quality checking.
16+
17+
__Bug Fixes:__
18+
19+
* Fixed issue with global `default_tenant` test.
20+
21+
__Dependencies:__
22+
23+
* Dropped `python3.7` support.
24+
* Dropped `pkg_resources` dependency.
25+
* Upgrade `britive` to `>=3.0.0`
26+
* Upgrade `click` to `>=8.1.7`
27+
28+
__Other:__
29+
30+
* Dropped legacy `import` functionality for the now long deprecated Node.js CLI.
531

632
## v1.8.3 [2024-08-20]
733

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ Environment variables that should be set for testing include the following.
4040

4141
* `PYBRITIVE_HOME_DIR` - a path to a home directory where `.britive` directory will be created
4242
* `PYBRITIVE_TEST_TENANT` - the tenant name to be used for testing purposes
43-
* `PYBRITIVE_NPM_IMPORT_PROFILE_ALIAS_VALUE` - the IDs of a profile that can be used to test the import process. This
44-
should be in format `"appid/envid/profileid/appname"`
43+
* `PYBRITIVE_TEST_PROFILE` - the profile to be used for testing purposes
4544
* `PYBRITIVE_ENCRYPTED_CREDENTIAL_PASSPHRASE` - the password for encrypted file credential storage
4645
* `PYBRITIVE_PREPARE_DOT_BRITIVE` - set to true if you want to have the `.britive` directory cleared before starting the
4746
tests

docs/index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PyBritive is intended to be used as a CLI application for communicating with the
66

77
## Requirements
88

9-
* Python 3.7 or higher
9+
* Python 3.8 or higher
1010
* Active Britive tenant (or nothing is really going to work)
1111

1212
## Installation
@@ -118,10 +118,9 @@ set REQUESTS_CA_BUNDLE="C:\Users\User\AppData\Local\corp-proxy\cacert.pem"
118118
Before `pybritive` can connect to a Britive tenant, it needs to know some details about that tenant.
119119
This is where `pybritive configure` will help us.
120120

121-
There are 2 ways to tell `pybritive` about tenants.
121+
There is an easy way to tell `pybritive` about tenants.
122122

123-
1. `pybritive configure import`: this will import an existing configuration from the Node.js version of the Britive CLI.
124-
2. `pybritive configure tenant`: This will prompt (or optionally the values can be passed via flags) for tenant details.
123+
* `pybritive configure tenant`: This will prompt (or optionally the values can be passed via flags) for tenant details.
125124

126125
An alias for a tenant can be created in case more than 1 tenant is configured for use. This may be the case for admins
127126
who may have access to an EA and GA tenant.

pyproject.toml

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,31 @@ authors = [{name = "Britive Inc.", email = "support@britive.com"}]
1111
description = "A pure Python CLI for Britive"
1212
readme = "README.md"
1313
classifiers = [
14-
"Programming Language :: Python :: 3",
1514
"License :: OSI Approved :: MIT License",
16-
"Operating System :: OS Independent"
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Topic :: Internet",
23+
"Topic :: Security",
24+
"Topic :: Utilities",
1725
]
1826
license = {file = "LICENSE"}
19-
requires-python = ">= 3.7"
27+
requires-python = ">= 3.8"
2028
dependencies = [
21-
"britive>=2.25.0",
22-
"click",
23-
"cryptography>=41.0.0",
29+
"britive>=3.0.0",
30+
"click>=8.1.7",
31+
"colored",
32+
"cryptography",
2433
"jmespath",
2534
"merge-args",
2635
"pyjwt",
2736
"python-dateutil",
2837
"PyYAML",
2938
"requests>=2.31.0",
30-
"setuptools; python_version >= '3.12'",
3139
"tabulate",
3240
"toml"
3341
]
@@ -63,10 +71,28 @@ where = ["src"]
6371
plugins.md013.line_length = 120
6472
plugins.md013.code_block_line_length = 120
6573

66-
[tool.black]
74+
[tool.ruff]
75+
include = ["pyproject.toml", "src/**/*.py", "tests/*.py"]
6776
line-length = 120
68-
skip-string-normalization = true
6977

70-
[tool.pylint]
71-
max-line-length = 120
72-
disable = "C0114,C0116,E0401"
78+
[tool.ruff.format]
79+
quote-style = "single"
80+
indent-style = "space"
81+
skip-magic-trailing-comma = false
82+
line-ending = "auto"
83+
84+
[tool.ruff.lint]
85+
select = [
86+
"E", # pycodestyle
87+
"F", # Pyflakes
88+
"I", # isort
89+
"PL", #pylint
90+
"SIM", # flake8-simplify
91+
]
92+
93+
[tool.ruff.lint.pylint]
94+
allow-magic-value-types = ["int", "str"]
95+
max-args = 16
96+
max-branches = 30
97+
max-returns = 8
98+
max-statements = 72

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
beautifulsoup4
22
boto3
3-
britive>=2.25.0
3+
britive>=3.0.0
44
certifi
55
charset-normalizer
6-
click~=8.1.7
6+
click>=8.1.7
7+
colored
78
cryptography
89
google-cloud-compute
910
jmespath
@@ -15,7 +16,6 @@ pytest
1516
python-dateutil
1617
PyYAML
1718
requests
18-
setuptools; python_version >= "3.12"
1919
tabulate
2020
toml
2121
twine

src/pybritive/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.8.3'
1+
__version__ = '2.0.0'

0 commit comments

Comments
 (0)