diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f831c325..90b5221a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -473,8 +473,7 @@ jobs: run: | echo "before anything..." "$PYTHON" -m pip list - "$PYTHON" -m pip install --upgrade -r requirements.txt - echo "after requirements..." + "$PYTHON" -m pip install --upgrade ..[yubikey] "$PYTHON" -m pip list #"$PYTHON" -m pip install --force-reinstall --no-deps --upgrade cryptography echo "after everything..." diff --git a/pyproject.toml b/pyproject.toml index df088216..61c5f06b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,6 @@ authors = [ { name="Jay Lee", email="jay0lee@gmail.com" }, { name="Ross Scroggs", email="Ross.Scroggs@gmail.com" }, ] -# The following deps and optional deps should be edited to match: setup.cfg, requirements.txt # notice that yubikey-manager remains optional further down since it is less command and adds #significant compile dependencies. dependencies = [ diff --git a/src/requirements.txt b/src/requirements.txt deleted file mode 100644 index 7162c77e..00000000 --- a/src/requirements.txt +++ /dev/null @@ -1,14 +0,0 @@ -chardet>=5.2.0 -cryptography>=44.0.2 -distro; sys_platform=='linux' -filelock>=3.18.0 -google-api-python-client>=2.167.0 -google-auth-httplib2>=0.2.0 -google-auth-oauthlib>=1.2.2 -google-auth>=2.39.0 -httplib2>=0.22.0 -lxml>=5.4.0 -passlib>=1.7.4 -pathvalidate>=3.2.3 -python-dateutil -yubikey-manager>=5.6.1 diff --git a/src/setup.cfg b/src/setup.cfg deleted file mode 100644 index 714d80da..00000000 --- a/src/setup.cfg +++ /dev/null @@ -1,55 +0,0 @@ -[metadata] -name = GAM for Google Workspace -version = attr: gam__version__ -description = Command line management for Google Workspaces -long_description = file: readme.md -long_description_content_type = text/markdown -url = https://github.com/GAM-team/GAM -author = GAM Team -author_email = google-apps-manager@googlegroups.com -license = Apache -license_files = LICENSE -keywords = google, oauth2, gsuite, google-apps, google-admin-sdk, google-drive, google-cloud, google-calendar, gam, google-api, oauth2-client, google-workspace -classifiers = - Programming Language :: Python :: 3 - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - License :: OSI Approved :: Apache License - -[options] -packages = find: -python_requires = >= 3.9 -# The following files should be edited to match: pyproject.toml, requirements.txt -install_requires = - chardet >= 5.2.0 - cryptography >= 44.0.2 - distro; sys_platform == 'linux' - filelock >= 3.18.0 - google-api-python-client >= 2.167.0 - google-auth-httplib2 >= 0.2.0 - google-auth-oauthlib >= 1.2.2 - google-auth >= 2.39.0 - httplib2 >= 0.22.0 - lxml >= 5.4.0 - passlib >= 1.7.4 - pathvalidate >= 3.2.3 - python-dateutil - yubikey-manager >= 5.6.1 - -[options.package_data] -* = *.pem - -# used during pip install .[test] -[options.extras_require] -test = pre-commit - -[options.entry_points] -console_scripts = - gam = gam.__main__:main - -[bdist_wheel] -universal = True diff --git a/src/setup.py b/src/setup.py deleted file mode 100644 index 60684932..00000000 --- a/src/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -from setuptools import setup - -setup() diff --git a/wiki/Install-GAM-as-Python-Library.md b/wiki/Install-GAM-as-Python-Library.md index 3ea221bd..5929f4ff 100644 --- a/wiki/Install-GAM-as-Python-Library.md +++ b/wiki/Install-GAM-as-Python-Library.md @@ -1,20 +1,14 @@ # Install GAM as Python Library -Thanks to Jay Lee for showing me how to do this. - -On Windows, you need to install Git to use the pip command. -* See: https://pythoninoffice.com/python-pip-install-from-github/ - -Scroll down to Install Git You can install GAM as a Python library with pip. ``` -pip install git+https://github.com/GAM-team/GAM.git#subdirectory=src +pip install gam7 ``` Or as a PEP 508 Requirement Specifier, e.g. in requirements.txt file: ``` -gam-for-google-workspace @ git+https://github.com/GAM-team/GAM.git#subdirectory=src +gam7 ``` Or a pyproject.toml file: @@ -23,13 +17,13 @@ Or a pyproject.toml file: name = "your-project" # ... dependencies = [ - "gam-for-google-workspace @ git+https://github.com/GAM-team/GAM.git#subdirectory=src" + "gam7" ] ``` -Target a specific revision or tag: +Target a specific version: ``` -gam-for-google-workspace @ git+https://github.com/GAM-team/GAM.git@v7.12.01#subdirectory=src +gam7==/7.13.3 ``` ## Using the library