diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml new file mode 100644 index 0000000..5da95f3 --- /dev/null +++ b/.onedev-buildspec.yml @@ -0,0 +1,35 @@ +version: 39 +jobs: +- name: Upload to Pypi + steps: + - !CheckoutStep + name: Checkout Code + cloneCredential: !DefaultCredential {} + withLfs: false + withSubmodules: false + cloneDepth: 1 + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + - !CommandStep + name: Publish to Pypi + runInContainer: true + image: python:3.12-bullseye + interpreter: !DefaultInterpreter + commands: | + cat << EOF > $HOME/.pypirc + [pypi] + username=__token__ + password=@secret:access-token@ + EOF + + pip3 install build twine + python3 -m build + python3 -m twine upload dist/* + useTTY: true + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !TagCreateTrigger + branches: dev + retryCondition: never + maxRetries: 3 + retryDelay: 30 + timeout: 14400 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 746ef35..49dde12 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,6 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer - - id: check-yaml - id: debug-statements - id: double-quote-string-fixer - id: name-tests-test