irods / irods_testing_environment

BSD 3-Clause "New" or "Revised" License
8 stars 15 forks source link

Many `SyntaxWarning`s occur when using Python 3.8 #230

Open MartinFlores751 opened 3 months ago

MartinFlores751 commented 3 months ago

Following is a brief view of the warnings, truncated, as the warnings are the same, just at different locations in the testing environment:

(irods_testing_environment) [irods_testing_environment]$ python stand_it_up.py --help
/home/user/Documents/iRODS/irods_testing_environment/irods_testing_environment/database_setup.py:176: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if ec is not 0:
/home/user/Documents/iRODS/irods_testing_environment/irods_testing_environment/database_setup.py:398: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if ec is not 0:
/home/user/Documents/iRODS/irods_testing_environment/irods_testing_environment/database_setup.py:402: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if ec is not 0:
...
usage: stand_it_up.py [-h] [--verbose] [--project-directory PATH_TO_PROJECT_DIRECTORY] [--project-name PROJECT_NAME] [--odbc-driver-path PATH_TO_ODBC_DRIVER_ARCHIVE] [--irods-package-directory PATH_TO_DIRECTORY_WITH_PACKAGES] [--irods-package-version PACKAGE_VERSION_TO_DOWNLOAD] [--irods-externals-package-directory PATH_TO_DIRECTORY_WITH_IRODS_EXTERNALS_PACKAGES]
                      [--use-static-image] [--consumer-instance-count IRODS_CATALOG_SERVICE_CONSUMER_INSTANCE_COUNT] [--use-ssl]

Stand up an iRODS zone.

optional arguments:
  -h, --help            show this help message and exit
  --verbose, -v         Increase the level of output to stdout. CRITICAL and ERROR messages will always be printed. Add more to see more log messages (e.g. -vvv displays DEBUG).
  --project-directory PATH_TO_PROJECT_DIRECTORY
                        Path to Compose project on which packages will be installed.
  --project-name PROJECT_NAME
                        Name of Compose project on which to install packages.
  --odbc-driver-path PATH_TO_ODBC_DRIVER_ARCHIVE
                        Path to the ODBC driver archive file on the local machine. If not provided, the driver will be downloaded.
  --irods-package-directory PATH_TO_DIRECTORY_WITH_PACKAGES
                        Path to local directory which contains iRODS packages.
  --irods-package-version PACKAGE_VERSION_TO_DOWNLOAD
                        Version of official iRODS packages to download and install. If neither this or --irods-package-directory are specified, the latest available version will be installed. Can be used with --use-static-image to avoid downloading packages.
  --irods-externals-package-directory PATH_TO_DIRECTORY_WITH_IRODS_EXTERNALS_PACKAGES
                        Path to local directory which contains iRODS externals packages.
  --use-static-image    If specified, a Docker image which has pre-installed iRODS packages will be used instead of installing the packages at runtime. This is incompatible with --irods-package-directory. --irods-package-version must be specified to use this option.
  --consumer-instance-count IRODS_CATALOG_SERVICE_CONSUMER_INSTANCE_COUNT
                        Number of iRODS Catalog Service Consumer service instances.
  --use-ssl             Indicates that SSL should be configured and enabled in the Zone.
(irods_testing_environment) [irods_testing_environment]$ python --version
Python 3.8.17