diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..1dc1d4c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,29 @@ +--- +name: Bug report +about: Something isn't working properly +title: "" +labels: bug +assignees: "" +--- + +**Context** + +Software used: [e.g. Unreal Engine] +lib used: [e.g. Maya usd 0.27] +environement: [e.g. Windows] + +**What happened** + +Please fill out a short description of the error here + +**Expected behaviour** + +Please describe the behaviour you expected + +**How to reproduce the error as simple as possible** + +Please describe the exact steps needed to reproduce the issue + +**Screenshots** + +If applicable, add screenshots to help explain your problem. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..c0164ed --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,13 @@ +--- +name: Feature request +about: Suggest a new idea +title: '' +labels: feature +assignees: '' + +--- + +*Need* + +Please fill out a short description of the feature you would like to see + diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 0000000..8168c42 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,7 @@ +--- +name: Question +about: I have a question about Python Semantic Release +title: "" +labels: question +assignees: "" +--- diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2b9e6b3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: Release +on: + push: + branches: + - main +jobs: + release: + name: release + runs-on: ubuntu-22.04 + strategy: + matrix: + python-version: ["3.9"] + concurrency: release + permissions: + id-token: write + contents: write + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Python Semantic Release + id: release + uses: python-semantic-release/python-semantic-release@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Create package + run: | + python create_package.py + mkdir -p dist && cp package/*.zip ./dist + - name: Upload to gitHub release + id: github-release + if: steps.release.outputs.released == 'true' + uses: python-semantic-release/upload-to-gh-release@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ steps.release.outputs.tag }} + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..05d9113 --- /dev/null +++ b/.gitignore @@ -0,0 +1,168 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +# VisualStudioCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +**/.history diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6cca336 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,399 @@ +# CHANGELOG + + + +## v0.2.0 (2024-03-14) + +### Feature + +* feat: last update before reset repo ([`c41081b`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/c41081b6c93f1daee36a41e20cc3e55f471e4901)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`3387dd5`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/3387dd5ee401152a9eb0a8b018934f233e7289f1)) + + +## v0.1.31 (2024-03-14) + +### Fix + +* fix: test09 ([`4d99276`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/4d992765a7d6d8239288b42822fce92e85bffb92)) + + +## v0.1.30 (2024-03-14) + +### Fix + +* fix: test08 ([`13974f0`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/13974f0a0edced98e3236bd29d25769426867ef6)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`c50f9c0`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/c50f9c033db707d552cf88e8aa19ffaa4247fda6)) + + +## v0.1.29 (2024-03-14) + +### Fix + +* fix: test08 ([`874c5f0`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/874c5f05de8d571c2391c33f729139642d16f194)) + + +## v0.1.28 (2024-03-14) + +### Fix + +* fix: test08 ([`12b272c`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/12b272cfd999b765334c219e4e86b6b164f88ed1)) + + +## v0.1.27 (2024-03-14) + +### Fix + +* fix: test07 ([`fd371bd`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/fd371bdd1cedc7a512c283f93a5f110f2793bc6c)) + + +## v0.1.26 (2024-03-14) + +### Fix + +* fix: test07 ([`e00fb52`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/e00fb5255d075913bdc13e72cf6d2cb243c48650)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`929ff44`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/929ff44ea2c5c0f52b546cfebbb39d0ed1377ec4)) + + +## v0.1.25 (2024-03-14) + +### Fix + +* fix: test07 ([`bc1bc6a`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/bc1bc6aba5e99afb47e540db4a6b340cd42c1bc4)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`e7f4c16`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/e7f4c1614c9f12fe04b638da32ba1d87e6a16f76)) + + +## v0.1.24 (2024-03-13) + +### Fix + +* fix: test06 ([`e0fceef`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/e0fceef1d2158c80275270f9d9a85bf722c246e9)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`75d8c37`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/75d8c37b1cdb60c3a3c60fac28da97135917c87e)) + + +## v0.1.23 (2024-03-13) + +### Fix + +* fix: test06 ([`c88d9a6`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/c88d9a6addf365109a287892402bca74ab01ba22)) + + +## v0.1.22 (2024-03-13) + +### Fix + +* fix: test06 ([`4d1636e`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/4d1636e63b6a4417824b55e224976aeb4501ed63)) + + +## v0.1.21 (2024-03-13) + +### Fix + +* fix: test05 ([`f07f19f`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/f07f19f04d743e0daaa790fec48371414609e438)) + +### Unknown + +* 0.1.21 + +Automatically generated by python-semantic-release ([`310503f`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/310503f04546cac625a3c2844d480a175671f950)) + + +## v0.1.20 (2024-03-13) + +### Fix + +* fix: test05 ([`8fb24b3`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/8fb24b3204385bf93de8273e5cc0118a2b22555f)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`e87cb59`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/e87cb59d19b667758058dbe39737489a840295e7)) + + +## v0.1.19 (2024-03-13) + +### Fix + +* fix: test05 ([`4ac3d94`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/4ac3d94dba77d6fbc94bb2ac3f22df7127fdb68b)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`717a1ec`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/717a1ec049faf0af09d10e4b91d5501af4b0bf0a)) + + +## v0.1.18 (2024-03-13) + +### Fix + +* fix: test05 ([`9b17dcf`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/9b17dcfc24bd290a63055469a7839b13b7412d9e)) + +* fix: test05 ([`da515bf`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/da515bfc5d572a6d37bb52c2df29ce329dc02253)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`c6c88d6`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/c6c88d68c134ef46d3d2a16d7d891bdd3f01b4e0)) + + +## v0.1.17 (2024-03-13) + +### Fix + +* fix: test05 ([`5c39d39`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/5c39d39074bb8a73a5522deff632564bc8beec87)) + +* fix: test05 ([`8861cd1`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/8861cd1ef0e0050f1d39bca020c0b8882c49c8b4)) + +* fix: test05 ([`ecba614`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/ecba614da1276cd249570d54cb9acf8af9c5f674)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`62434fb`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/62434fb28bb89ccc3015733d1d5020a9806c6eba)) + + +## v0.1.16 (2024-03-13) + +### Fix + +* fix: test05 ([`6dff59c`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/6dff59ce64785df42ebba9e7076f08844486b0e2)) + +### Unknown + +* 0.1.16 + +Automatically generated by python-semantic-release ([`d412589`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/d4125890255cf766aedbc5bf2e243e149b6129f7)) + + +## v0.1.15 (2024-03-13) + +### Fix + +* fix: test05 ([`3e1c2aa`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/3e1c2aaa1a8996151dc61cc73d3d59ff4dc8593e)) + +### Unknown + +* 0.1.15 + +Automatically generated by python-semantic-release ([`eaf0db9`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/eaf0db935bb5f48d121245aae4a15af9f08aa20e)) + + +## v0.1.14 (2024-03-13) + +### Fix + +* fix: test05 ([`39f701d`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/39f701d06db96ea5cb3b1655ed4a7bc7b301370d)) + +### Unknown + +* 0.1.14 + +Automatically generated by python-semantic-release ([`ec987b9`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/ec987b98c948fb773e379c172ea0e9c73d4e22cc)) + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`a5e6740`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/a5e67400f2a678d09c5f222714af7257bad6bd60)) + + +## v0.1.13 (2024-03-13) + +### Fix + +* fix: test05 ([`73da176`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/73da176e8be156a594863db7aa4b46cd965c3564)) + +### Unknown + +* 0.1.13 + +Automatically generated by python-semantic-release ([`133ce70`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/133ce707072b24979d04c76d32a9fd70a0d3da13)) + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`4cdc3d2`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/4cdc3d2598f120f648d9c9f71f6673aa223ebb13)) + + +## v0.1.12 (2024-03-13) + +### Fix + +* fix: test05 ([`c9f9fc9`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/c9f9fc958dd9f047bb80b6ad81bd15cc22332fa0)) + +### Unknown + +* 0.1.12 + +Automatically generated by python-semantic-release ([`e71c8c3`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/e71c8c3c48b7c80a8e46472012b67345399bfe43)) + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`87124ea`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/87124ea06bef5dc1fbbb7246571dae528ff61f85)) + + +## v0.1.11 (2024-03-13) + +### Fix + +* fix: test05 ([`01ce2b0`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/01ce2b054985647a746afb7b634aefc42154abef)) + +### Unknown + +* 0.1.11 + +Automatically generated by python-semantic-release ([`d07de5c`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/d07de5c4775748fc48d231eb644cc27684b96dae)) + + +## v0.1.10 (2024-03-13) + +### Fix + +* fix: test04 ([`f94d054`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/f94d054212da7666eba59153b02389cd977b048f)) + +### Unknown + +* 0.1.10 + +Automatically generated by python-semantic-release ([`b05d581`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/b05d5818cfef4b77c170f97d246023fc1bcee137)) + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`b96eee6`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/b96eee638e4b0d1be0e57a368f244ed0fe2eb2b0)) + + +## v0.1.9 (2024-03-13) + +### Fix + +* fix: test03 ([`376de38`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/376de385e2ef22e59b1343c068c32dc87a9e1920)) + + +## v0.1.8 (2024-03-13) + +### Fix + +* fix: test03 ([`c8eddb7`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/c8eddb79fe70d0dd191c6d4a57f8050587811a0f)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`9013fe0`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/9013fe03df776c45ed8a9f4044288d2168c8b1d2)) + + +## v0.1.7 (2024-03-13) + +### Fix + +* fix: test03 ([`334da38`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/334da382f83eef1d496ef6b3a5bd1ecf4800b627)) + +* fix: test03 ([`4182e0c`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/4182e0c479751ede86a4a4d67bf406351999d2fa)) + +* fix: test03 ([`7565945`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/75659456796ce8add8d82aaa76ed98a15ef53645)) + +* fix: test03 ([`36e4413`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/36e44139ed24d2a93d3e142e266278a93fac48d3)) + +* fix: test02 ([`24b96c4`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/24b96c4eb97be65fe6c1d7530fb60e4105334e1e)) + +* fix: test02 ([`0eba8bb`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/0eba8bb50bd29584e6b7876be2e3f38e5d8d0358)) + +* fix: test02 ([`48ff907`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/48ff9070f9876784a0945eb3065125d4f05c3892)) + + +## v0.1.6 (2024-03-13) + +### Fix + +* fix: test02 ([`8213326`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/82133262b1c2ce46910f88150525693643358c30)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`bedc518`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/bedc518a7c2a897380e8d050a6dd585b7752a5ca)) + + +## v0.1.5 (2024-03-13) + +### Fix + +* fix: test02 ([`3404d4c`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/3404d4c037311bc676ac353ea25fb7f03d990ba2)) + +### Unknown + +* Merge branch 'main' of github.com:LoopsCreativeStudio/ayon-perforce ([`83ed45a`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/83ed45a035f9631d331c2b301c1f0223ed0a8ec2)) + + +## v0.1.4 (2024-03-13) + +### Fix + +* fix: test02 ([`6c17c0b`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/6c17c0ba9e1e1618c4f00b693cb9b62abd71a7be)) + + +## v0.1.3 (2024-03-13) + +### Fix + +* fix: test02 ([`34f4439`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/34f44398e727f94884e022792fdeeb99de84ef19)) + + +## v0.1.2 (2024-03-13) + +### Fix + +* fix: test02 ([`98de82c`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/98de82c5438a4d427d970561bb5d5a55ee443ee8)) + + +## v0.1.1 (2024-03-13) + +### Fix + +* fix: test02 ([`e7663d4`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/e7663d4e1a2048667af4b509094a30d564787f0c)) + +* fix: test02 ([`4805cde`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/4805cde5afb306ae7514fe707d47bd95a46bf65a)) + +* fix: push as asset ([`9b78935`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/9b789351e477053745ab42fd3ca935a5bf32f455)) + + +## v0.1.0 (2024-03-13) + +### Feature + +* feat: server settings ([`2ba658b`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/2ba658b3104f47ea364f211dc1a92459eceb9b67)) + +* feat: raise launch failed and log debug optimized ([`5d25418`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/5d254186ef086e3703670cdf64d23db49c57b901)) + +* feat: skip client version ([`a25b426`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/a25b4260feecb095ea553442fff43451274c8fa8)) + +* feat: log sync progress ([`c7b272a`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/c7b272aafe8d6aeae5f7f3b9be012ded934e249b)) + +### Fix + +* fix: remove python ver ([`7f3ed65`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/7f3ed6502dab8f2b23bb383b06d7217890a52cc0)) + +* fix: test cicd ([`f0d579c`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/f0d579c433aee776deb4424896d5c1f9b947ba1a)) + +* fix: data env and log sync progress ([`b083207`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/b083207d4a40c14ea7ed5153660c2c5745ce8cbc)) + +* fix: p4 set bug and update minor version ([`827fd3f`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/827fd3f521b3d14c046ff3408cad49d33cf4a7f9)) + +### Unknown + +* config pylint vscode ([`0cfb9ee`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/0cfb9ee9198760dcb9017bb6758ca300a9542dcd)) + +* update gitignore ([`3ada3f7`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/3ada3f763cd48392fb7bfff6ce045225709ccea5)) + +* enhanced settings hosts ([`f103fed`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/f103fed54cd8c8d5b097201cb75be10a93941267)) + +* release 0.1.0 ([`4e031c6`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/4e031c653f682b890bfd5b8e6837a87ce9fbec6f)) + +* fix log p4user and log error ([`e6b42b8`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/e6b42b8de4d0405fe8c7ee83a8a2885d6e3fe7a0)) + +* switch sync force to safe ([`4de1603`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/4de16038f87ac1add1e07dd2571aaba524c3ace6)) + +* update version ([`e1dd5db`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/e1dd5db81ce1c114bfe83e3a50c331f3b368e855)) + +* fix p4port alt def ([`36d8d78`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/36d8d78fbc5afad7766b11c3398c4a2dba644dc0)) + +* Update README.md ([`0bae990`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/0bae9900aa121846e97a169d69faf9725c7ed43a)) + +* version 1.0.0 ([`f2ed951`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/f2ed951770b5028c03886f56a93c2402f383e556)) + +* Initial commit ([`2c93379`](https://github.com/LoopsCreativeStudio/ayon-perforce/commit/2c93379de11c572bb97a6510b3a86a14359c28d1)) diff --git a/README.md b/README.md index 72df866..22e8acf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,18 @@ # ayon-perforce -Perforce addon for ayon + +[![Release](https://github.com/LoopsCreativeStudio/ayon-perforce/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/LoopsCreativeStudio/ayon-perforce/actions/workflows/release.yml) + + +### Versioning + +Follow [Semantic Versioning](https://semver.org/) and automate with [python semantic release](https://github.com/python-semantic-release/python-semantic-release) + + +### Authors + +``` +LoopsCreativeStudio + +https://loopscreativestudio.com/ +tech@loopscreativestudio.com +``` \ No newline at end of file diff --git a/client/ayon_perforce/README.md b/client/ayon_perforce/README.md new file mode 100644 index 0000000..89ea621 --- /dev/null +++ b/client/ayon_perforce/README.md @@ -0,0 +1 @@ +# Perforce Addon \ No newline at end of file diff --git a/client/ayon_perforce/__init__.py b/client/ayon_perforce/__init__.py new file mode 100644 index 0000000..ca1ed2b --- /dev/null +++ b/client/ayon_perforce/__init__.py @@ -0,0 +1,5 @@ +from .addon import PerforceAddon + +__all__ = ( + "PerforceAddon", +) diff --git a/client/ayon_perforce/addon.py b/client/ayon_perforce/addon.py new file mode 100644 index 0000000..8169fad --- /dev/null +++ b/client/ayon_perforce/addon.py @@ -0,0 +1,27 @@ + + +import os +from openpype.modules import OpenPypeModule, ILaunchHookPaths + +from .version import __version__ + +PERFORCE_MODULE_DIR = os.path.dirname(os.path.abspath(__file__)) + + +class PerforceAddon(OpenPypeModule, ILaunchHookPaths): + """Perfrorce Addon + """ + name = "perforce" + version = __version__ + label = "Perforce" + + def initialize(self, module_settings): + self.enabled = True + + def get_launch_hook_paths(self, app): + """Implementation for applications launch hooks. + + Returns: + (str): full absolut path to directory with hooks for the module + """ + return os.path.join(PERFORCE_MODULE_DIR, "hooks") diff --git a/client/ayon_perforce/hooks/pre_p4_sync.py b/client/ayon_perforce/hooks/pre_p4_sync.py new file mode 100644 index 0000000..7798fc0 --- /dev/null +++ b/client/ayon_perforce/hooks/pre_p4_sync.py @@ -0,0 +1,96 @@ + +import re +import subprocess + +from openpype.lib.applications import ( + PreLaunchHook, LaunchTypes, ApplicationLaunchFailed +) + +class PerforceSync(PreLaunchHook): + """Run Perforce Sync for the given project config. + """ + order = -1 + launch_types = {LaunchTypes.local} + + def execute(self, *args, **kwargs): + + perforce_settings = self.data["project_settings"]["perforce"] + + perforce_hosts = { + host["name"]: host["bypass"] + for host in perforce_settings["hosts"] + } + + if self.host_name not in perforce_hosts: + return + + host_bypass = perforce_hosts[self.host_name] + + p4_port = ( + perforce_settings.get("p4port") + or self.data["env"].get("P4PORT") + ) + p4_client = ( + perforce_settings.get("p4client") + or self.data["env"].get("P4CLIENT") + or "{project_name}_{COMPUTERNAME}_{USERNAME}" + ) + p4_user = ( + perforce_settings.get("p4user") + or self.data["env"].get("P4USER") + ) + + if p4_client.count("{") == p4_client.count("}") > 0: + p4_client = p4_client.format( + project_name=self.data["project_name"], + **self.data["env"] + ) + + if perforce_settings.get("p4client_lower"): + p4_client = p4_client.lower() + + self.log.info(f"P4PORT={p4_port or None}") + self.log.info(f"P4CLIENT={p4_client or None}") + self.log.info(f"P4USER={p4_user or None}") + + if not p4_port or not p4_client: + self.log.warning("incomplete p4 configuration: skip sync !") + if not host_bypass: + raise ApplicationLaunchFailed( + "Couldn't run the application! Perforce config error!" + ) + + subprocess.run(["p4", "set", f"P4PORT={p4_port}"], check=True) + subprocess.run(["p4", "set", f"P4CLIENT={p4_client}"], check=True) + if p4_user: + subprocess.run(["p4", "set", f"P4USER={p4_user}"], check=True) + + # start sync + self.log.info("[SYNC PERFORCE PROJECT]") + with subprocess.Popen( + ['p4', '-I', 'sync', '-s', '-q'], + shell=True, + text=True, + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + bufsize=0, + errors='replace', + ) as process: + capture_log = "" + last_percent = None + while process.poll() is None: + capture_log += process.stdout.read(1) + percent_match = re.search(r"\d{1,3}%|finishing", capture_log) + if percent_match: + current_percent = percent_match.group(0) + if last_percent != current_percent: + self.log.info(f"sync {current_percent}") + last_percent = current_percent + capture_log = "" + if process.returncode != 0: + self.log.info(capture_log + process.stdout.read()) + self.log.warning("sync error !") + if not host_bypass: + raise ApplicationLaunchFailed( + "Couldn't run the application! Perforce sync failed!" + ) diff --git a/client/ayon_perforce/version.py b/client/ayon_perforce/version.py new file mode 100644 index 0000000..d4b9e2d --- /dev/null +++ b/client/ayon_perforce/version.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +"""Package declaring addon version.""" +__version__ = "0.1.0" diff --git a/client/pyproject.toml b/client/pyproject.toml new file mode 100644 index 0000000..50a9661 --- /dev/null +++ b/client/pyproject.toml @@ -0,0 +1 @@ +[tool.poetry.dependencies] \ No newline at end of file diff --git a/create_package.py b/create_package.py new file mode 100644 index 0000000..00a4f79 --- /dev/null +++ b/create_package.py @@ -0,0 +1,479 @@ +#!/usr/bin/env python + +"""Prepares server package from addon repo to upload to server. + +Requires Python 3.9. (Or at least 3.8+). + +This script should be called from cloned addon repo. + +It will produce 'package' subdirectory which could be pasted into server +addon directory directly (eg. into `ayon-backend/addons`). + +Format of package folder: +ADDON_REPO/package/{addon name}/{addon version} + +You can specify `--output_dir` in arguments to change output directory where +package will be created. Existing package directory will always be purged if +already present! This could be used to create package directly in server folder +if available. + +Package contains server side files directly, +client side code zipped in `private` subfolder. +""" + +import os +import sys +import re +import shutil +import json +import platform +import argparse +import logging +import collections +import zipfile +from typing import Any, Optional, Iterable, Pattern + +# Name of addon +# - e.g. 'maya' +ADDON_NAME: str = "perforce" +# Name of folder where client code is located to copy 'version.py' +# - e.g. 'ayon_maya' +ADDON_CLIENT_DIR: str = "ayon_perforce" + +# Patterns of directories to be skipped for server part of addon +IGNORE_DIR_PATTERNS: list[Pattern] = [ + re.compile(pattern) + for pattern in { + # Skip directories starting with '.' + r"^\.", + # Skip any pycache folders + "^__pycache__$" + } +] + +# Patterns of files to be skipped for server part of addon +IGNORE_FILE_PATTERNS: list[Pattern] = [ + re.compile(pattern) + for pattern in { + # Skip files starting with '.' + # NOTE this could be an issue in some cases + r"^\.", + # Skip '.pyc' files + r"\.pyc$", + # Skip 'version.py' file + r"^version\.py$", + } +] + + +class ZipFileLongPaths(zipfile.ZipFile): + """Allows longer paths in zip files. + + Regular DOS paths are limited to MAX_PATH (260) characters, including + the string's terminating NUL character. + That limit can be exceeded by using an extended-length path that + starts with the '\\?\' prefix. + """ + _is_windows = platform.system().lower() == "windows" + + def _extract_member(self, member, tpath, pwd): + if self._is_windows: + tpath = os.path.abspath(tpath) + if tpath.startswith("\\\\"): + tpath = "\\\\?\\UNC\\" + tpath[2:] + else: + tpath = "\\\\?\\" + tpath + + return super(ZipFileLongPaths, self)._extract_member( + member, tpath, pwd + ) + + +def safe_copy_file(src_path: str, dst_path: str): + """Copy file and make sure destination directory exists. + + Ignore if destination already contains directories from source. + + Args: + src_path (str): File path that will be copied. + dst_path (str): Path to destination file. + """ + + if src_path == dst_path: + return + + dst_dir: str = os.path.dirname(dst_path) + try: + os.makedirs(dst_dir) + except Exception: + pass + + shutil.copy2(src_path, dst_path) + + +def _value_match_regexes(value: str, regexes: Iterable[Pattern]) -> bool: + return any( + regex.search(value) + for regex in regexes + ) + + +def find_files_in_subdir( + src_path: str, + ignore_file_patterns: Optional[list[Pattern]]=None, + ignore_dir_patterns: Optional[list[Pattern]]=None +) -> list[tuple[str, str]]: + """Find all files to copy in subdirectories of given path. + + All files that match any of the patterns in 'ignore_file_patterns' will + be skipped and any directories that match any of the patterns in + 'ignore_dir_patterns' will be skipped with all subfiles. + + Args: + src_path (str): Path to directory to search in. + ignore_file_patterns (Optional[list[Pattern]]): List of regexes + to match files to ignore. + ignore_dir_patterns (Optional[list[Pattern]]): List of regexes + to match directories to ignore. + + Returns: + list[tuple[str, str]]: List of tuples with path to file and parent + directories relative to 'src_path'. + """ + + if ignore_file_patterns is None: + ignore_file_patterns = IGNORE_FILE_PATTERNS + + if ignore_dir_patterns is None: + ignore_dir_patterns = IGNORE_DIR_PATTERNS + output: list[tuple[str, str]] = [] + + hierarchy_queue: collections.deque = collections.deque() + hierarchy_queue.append((src_path, [])) + while hierarchy_queue: + item: tuple[str, str] = hierarchy_queue.popleft() + dirpath, parents = item + for name in os.listdir(dirpath): + path: str = os.path.join(dirpath, name) + if os.path.isfile(path): + if not _value_match_regexes(name, ignore_file_patterns): + items: list[str] = list(parents) + items.append(name) + output.append((path, os.path.sep.join(items))) + continue + + if not _value_match_regexes(name, ignore_dir_patterns): + items: list[str] = list(parents) + items.append(name) + hierarchy_queue.append((path, items)) + + return output + + +def copy_server_content( + addon_output_dir: str, + current_dir: str, + log: logging.Logger +): + """Copies server side folders to 'addon_package_dir' + + Args: + addon_output_dir (str): Output directory path. + current_dir (str): addon repo dir + log (logging.Logger) + """ + + log.info("Copying server content") + + filepaths_to_copy: list[tuple[str, str]] = [] + server_dirpath: str = os.path.join(current_dir, "server") + + # Version + src_version_path: str = os.path.join(current_dir, "version.py") + dst_version_path: str = os.path.join(addon_output_dir, "version.py") + filepaths_to_copy.append((src_version_path, dst_version_path)) + + for item in find_files_in_subdir(server_dirpath): + src_path, dst_subpath = item + dst_path: str = os.path.join(addon_output_dir, dst_subpath) + filepaths_to_copy.append((src_path, dst_path)) + + # Copy files + for src_path, dst_path in filepaths_to_copy: + safe_copy_file(src_path, os.path.join(addon_output_dir, dst_path)) + + +def _get_client_zip_content(current_dir: str, log: logging.Logger): + """Mapping of source client code files to destination paths. + + Example output: + [ + ( + "C:/addons/MyAddon/version.py", + "my_addon/version.py" + ), + ( + "C:/addons/MyAddon/client/my_addon/__init__.py", + "my_addon/__init__.py" + ) + ] + + Args: + current_dir (str): Directory path of addon source. + log (logging.Logger): Logger object. + + Returns: + list[tuple[str, str]]: List of path mappings to copy. The destination + path is relative to expected output directory. + """ + + output: list[tuple[str, str]] = [] + client_dir: str = os.path.join(current_dir, "client") + if not os.path.isdir(client_dir): + log.info("Client code is not available. Skipping") + return output + + log.info("Preparing client code zip") + + + src_version_path: str = os.path.join(current_dir, "version.py") + if os.path.exists(src_version_path): + dst_version_path: str = os.path.join(ADDON_CLIENT_DIR, "version.py") + output.append((src_version_path, dst_version_path)) + + # Add client code content to zip + client_code_dir: str = os.path.join(client_dir, ADDON_CLIENT_DIR) + for path, sub_path in find_files_in_subdir(client_code_dir): + output.append((path, os.path.join(ADDON_CLIENT_DIR, sub_path))) + return output + + +def zip_client_side( + addon_package_dir: str, + current_dir: str, + log: logging.Logger +): + """Copy and zip `client` content into 'addon_package_dir'. + + Args: + addon_package_dir (str): Output package directory path. + current_dir (str): Directory path of addon source. + log (logging.Logger): Logger object. + """ + + client_dir: str = os.path.join(current_dir, "client") + if not os.path.isdir(client_dir): + log.info("Client directory was not found. Skipping") + return + + log.info("Preparing client code zip") + private_dir: str = os.path.join(addon_package_dir, "private") + + if not os.path.exists(private_dir): + os.makedirs(private_dir) + + mapping = _get_client_zip_content(current_dir, log) + + zip_filepath: str = os.path.join(os.path.join(private_dir, "client.zip")) + with ZipFileLongPaths(zip_filepath, "w", zipfile.ZIP_DEFLATED) as zipf: + # Add client code content to zip + for path, sub_path in mapping: + zipf.write(path, sub_path) + + shutil.copy(os.path.join(client_dir, "pyproject.toml"), "pyproject.toml") + + +def create_server_package( + output_dir: str, + addon_output_dir: str, + addon_version: str, + log: logging.Logger +): + """Create server package zip file. + + The zip file can be installed to a server using UI or rest api endpoints. + + Args: + output_dir (str): Directory path to output zip file. + addon_output_dir (str): Directory path to addon output directory. + addon_version (str): Version of addon. + log (logging.Logger): Logger object. + """ + + log.info("Creating server package") + output_path = os.path.join( + output_dir, f"{ADDON_NAME}-{addon_version}.zip" + ) + manifest_data: dict[str, str] = { + "addon_name": ADDON_NAME, + "addon_version": addon_version + } + with ZipFileLongPaths(output_path, "w", zipfile.ZIP_DEFLATED) as zipf: + # Write a manifest to zip + zipf.writestr("manifest.json", json.dumps(manifest_data, indent=4)) + + # Move addon content to zip into 'addon' directory + addon_output_dir_offset = len(addon_output_dir) + 1 + for root, _, filenames in os.walk(addon_output_dir): + if not filenames: + continue + + dst_root = "addon" + if root != addon_output_dir: + dst_root = os.path.join( + dst_root, root[addon_output_dir_offset:] + ) + for filename in filenames: + src_path = os.path.join(root, filename) + dst_path = os.path.join(dst_root, filename) + zipf.write(src_path, dst_path) + + log.info(f"Output package can be found: {output_path}") + + +def copy_client_code(current_dir: str, output_dir: str, log: logging.Logger): + """Copy client code to output directory. + + Args: + current_dir (str): Directory path of addon source. + output_dir (str): Directory path to output client code. + log (logging.Logger): Logger object. + """ + + full_output_dir = os.path.join(output_dir, ADDON_CLIENT_DIR) + if os.path.exists(full_output_dir): + shutil.rmtree(full_output_dir) + + if os.path.exists(full_output_dir): + raise RuntimeError( + f"Failed to remove target folder '{full_output_dir}'" + ) + + mapping = _get_client_zip_content(current_dir, log) + if not mapping: + log.info("No client code found. Skipping") + return + + os.makedirs(output_dir, exist_ok=True) + for (src_path, dst_path) in mapping: + full_dst_path = os.path.join(output_dir, dst_path) + os.makedirs(os.path.dirname(full_dst_path), exist_ok=True) + shutil.copy2(src_path, full_dst_path) + + +def main( + output_dir: Optional[str]=None, + skip_zip: Optional[bool]=False, + keep_sources: Optional[bool]=False, + only_client: Optional[bool]=False +): + log: logging.Logger = logging.getLogger("create_package") + log.info("Start creating package") + + current_dir: str = os.path.dirname(os.path.abspath(__file__)) + if not output_dir: + output_dir = os.path.join(current_dir, "package") + + if only_client: + log.info("Creating client folder") + if not output_dir: + raise RuntimeError( + "Output directory must be defined" + " for client only preparation." + ) + copy_client_code(current_dir, output_dir, log) + log.info("Client folder created") + return + + version_filepath: str = os.path.join(current_dir, "version.py") + version_content: dict[str, Any] = {} + with open(version_filepath, "r") as stream: + exec(stream.read(), version_content) + addon_version: str = version_content["__version__"] + + addon_output_root: str = os.path.join(output_dir, ADDON_NAME) + addon_output_dir: str = os.path.join( + addon_output_root, addon_version + ) + if os.path.isdir(addon_output_dir): + log.info(f"Purging {addon_output_dir}") + shutil.rmtree(output_dir) + + log.info(f"Preparing package for {ADDON_NAME}-{addon_version}") + + if not os.path.exists(addon_output_dir): + os.makedirs(addon_output_dir) + + failed = True + try: + copy_server_content(addon_output_dir, current_dir, log) + + zip_client_side(addon_output_dir, current_dir, log) + failed = False + finally: + if failed and os.path.isdir(addon_output_dir): + log.info(f"Purging output dir after failed package creation") + shutil.rmtree(output_dir) + + # Skip server zipping + if not skip_zip: + create_server_package( + output_dir, addon_output_dir, addon_version, log + ) + # Remove sources only if zip file is created + if not keep_sources: + log.info("Removing source files for server package") + shutil.rmtree(addon_output_root) + log.info("Package creation finished") + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + parser.add_argument( + "--skip-zip", + dest="skip_zip", + action="store_true", + help=( + "Skip zipping server package and create only" + " server folder structure." + ) + ) + parser.add_argument( + "--keep-sources", + dest="keep_sources", + action="store_true", + help=( + "Keep folder structure when server package is created." + ) + ) + parser.add_argument( + "-o", "--output", + dest="output_dir", + default=None, + help=( + "Directory path where package will be created" + " (Will be purged if already exists!)" + ) + ) + parser.add_argument( + "--only-client", + dest="only_client", + action="store_true", + help=( + "Extract only client code. This is useful for development." + " Requires '-o', '--output' argument to be filled." + ) + ) + parser.add_argument( + "--debug", + dest="debug", + action="store_true", + help="Debug log messages." + ) + + args = parser.parse_args(sys.argv[1:]) + level = logging.INFO + if args.debug: + level = logging.DEBUG + logging.basicConfig(level=level) + main(args.output_dir, args.skip_zip, args.keep_sources, args.only_client) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b192e52 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,73 @@ +[tool.poetry] +name = "ayon-perforce" +description = "perforce addon for ayon" +version = "0.2.0" +authors = ["LoopsCreativeStudio "] +license = "Apache-2.0" +readme = "README.md" +homepage = "https://loopscreativestudio.com/" +keywords = ["cg", "production", "perforce", "ynput", "version control", "ayon"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Operating System :: Microsoft :: Windows :: Windows 10", + "Operating System :: Unix", + "Operating System :: MacOS", + "Natural Language :: English", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Topic :: Multimedia :: Graphics", + "Topic :: Software Development :: Version Control", +] + +[tool.poetry.urls] +Changelog = "https://github.com/LoopsCreativeStudio/ayon-perforce/blob/main/CHANGELOG.md" + +[tool.poetry.dependencies] +python = ">=3.9.1,<3.10" + +[tool.semantic_release] +logging_use_named_masks = true +tag_format = "v{version}" +commit_parser = "angular" +commit_author = "github-actions " +commit_message = "release: {version} [skip ci]" +major_on_zero = true +assets = [] +version_toml = ["pyproject.toml:tool.poetry.version"] +version_variables = ["version.py:__version__"] + +[tool.semantic_release.commit_parser_options] +allowed_tags = [ + "build", + "chore", + "ci", + "docs", + "feat", + "fix", + "perf", + "style", + "refactor", + "test", +] +minor_tags = ["feat"] +patch_tags = ["fix", "perf"] + +[tool.semantic_release.changelog] +changelog_file = "CHANGELOG.md" +exclude_commit_patterns = [] + +[tool.semantic_release.branches.main] +match = "(main|master)" +prerelease = false +prerelease_token = "rc" + +[tool.semantic_release.remote] +name = "origin" +type = "github" +ignore_token_for_push = false +token = { env = "GH_TOKEN" } + +[tool.semantic_release.publish] +dist_glob_patterns = ["dist/*"] +upload_to_vcs_release = true \ No newline at end of file diff --git a/server/__init__.py b/server/__init__.py new file mode 100644 index 0000000..d9c6a45 --- /dev/null +++ b/server/__init__.py @@ -0,0 +1,17 @@ +from typing import Type + +from ayon_server.addons import BaseServerAddon + +from .settings import PerforceSettings, DEFAULT_VALUES +from .version import __version__ + + +class PerforceAddon(BaseServerAddon): + name = "perforce" + title = "Perforce" + version = __version__ + settings_model: Type[PerforceSettings] = PerforceSettings + + async def get_default_settings(self): + settings_model_cls = self.get_settings_model() + return settings_model_cls(**DEFAULT_VALUES) diff --git a/server/settings.py b/server/settings.py new file mode 100644 index 0000000..2aa9904 --- /dev/null +++ b/server/settings.py @@ -0,0 +1,53 @@ + +from typing import List + +from ayon_server.settings import BaseSettingsModel, SettingsField + +DEFAULT_VALUES = { + "p4port": "", + "p4client": "{project_name}_{COMPUTERNAME}_{USERNAME}", + "p4client_lower": True, + "p4user": "", + "hosts": [], +} + + +class HostItemModel(BaseSettingsModel): + _layout = "compact" + name: str = SettingsField(title="Host name") + bypass: bool = SettingsField(title="Bypass permission") + + +class PerforceSettings(BaseSettingsModel): + """Perforce project settings.""" + enabled: bool = SettingsField(default=True) + hosts: List[HostItemModel] = SettingsField( + default_factory=list, + title="Hosts", + description=( + "Sync Preforce for the given host names. " + "Bypass set to True allow host to launch even if sync fails." + ), + ) + p4port: str = SettingsField( + "", + title="P4Port", + description="Mendatory", + section="P4Config", + ) + p4client: str = SettingsField( + "", + title="P4Client", + description=( + "Client pattern use 'project_name' key and environment variables." + ), + ) + p4client_lower: bool = SettingsField( + True, + title="Force P4Client to Lowercase", + ) + p4user: str = SettingsField( + "", + title="P4User", + description="Optional, let Perforce default behavior if not set.", + ) diff --git a/version.py b/version.py new file mode 100644 index 0000000..b22878f --- /dev/null +++ b/version.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +"""Package declaring addon version.""" +__version__ = "0.2.0"