Compare commits

..

6 Commits

Author SHA1 Message Date
534a2011a1 v4.0.7
=====================================================================

- unlock logs in virtual dependency update
2024-02-21 08:46:41 -07:00
e1b6c3e4f0 v4.0.6
=====================================================================

- bugfix in python scwrypts.scwrypts
2024-02-21 00:37:44 -07:00
1adb45d75e v4.0.5
=====================================================================

- one last python semver fix and then BOOM
2024-02-21 00:29:33 -07:00
62ab5404cf v4.0.4
=====================================================================

- ensure that full python semver is published to pypi
2024-02-21 00:22:49 -07:00
e43c07f75a v4.0.3
=====================================================================

- circleci: additional branch/tag trigger tweaks
2024-02-21 00:13:21 -07:00
fc5f80232e v4.0.2
=====================================================================

- circleci: more trigger fixes; add python build to python test
2024-02-21 00:05:40 -07:00
5 changed files with 31 additions and 13 deletions

View File

@ -30,6 +30,7 @@ jobs:
&& pip install . .[test] \ && pip install . .[test] \
&& pytest \ && pytest \
; ;
- run: pip install build && python -m build
python-publish: python-publish:
executor: python executor: python
@ -37,7 +38,7 @@ jobs:
steps: steps:
- checkout: - checkout:
path: ~/scwrypts path: ~/scwrypts
- python/dist - run: pip install build && python -m build
- run: pip install twine && twine upload dist/* - run: pip install twine && twine upload dist/*
nodejs-test: nodejs-test:
@ -102,42 +103,56 @@ jobs:
: \ : \
&& [ $CIRCLE_TAG ] \ && [ $CIRCLE_TAG ] \
&& pnpm build \ && pnpm build \
&& pnpm version $(git describe --tags) \ && pnpm version $CIRCLE_TAG \
&& pnpm set //registry.npmjs.org/:_authToken=$NPM_TOKEN \ && pnpm set //registry.npmjs.org/:_authToken=$NPM_TOKEN \
&& pnpm publish --no-git-checks \ && pnpm publish --no-git-checks \
; ;
workflows: workflows:
python-dev:
jobs:
- python-test:
filters:
branches:
ignore: /^main$/
python: python:
jobs: jobs:
- python-test: - python-test:
filters: filters:
tags: tags:
only: /^v.*$/ only: /^v\d+\.\d+\.\d+.*$/
branches: branches:
only: /^.*$/ ignore: /^.*$/
- python-publish: - python-publish:
requires: [python-test] requires: [python-test]
context: [pypi-yage] context: [pypi-yage]
filters: filters:
tags: tags:
only: /^v.*$/ only: /^v\d+\.\d+\.\d+.*$/
branches: branches:
ignore: /^.*$/ ignore: /^.*$/
nodejs-dev:
jobs:
- nodejs-test:
filters:
branches:
ignore: /^main$/
nodejs: nodejs:
jobs: jobs:
- nodejs-test: - nodejs-test:
filters: filters:
tags: tags:
only: /^v.*$/ only: /^v\d+\.\d+\.\d+.*$/
branches: branches:
only: /^.*$/ ignore: /^.*$/
- nodejs-publish: - nodejs-publish:
requires: [nodejs-test] requires: [nodejs-test]
context: [npm-wrynegade] context: [npm-wrynegade]
filters: filters:
tags: tags:
only: /^v.*$/ only: /^v\d+\.\d+\.\d+.*$/
branches: branches:
ignore: /^.*$/ ignore: /^.*$/

View File

@ -55,7 +55,8 @@ runs:
--name scwrypts/virtualenv/update-all \ --name scwrypts/virtualenv/update-all \
--group scwrypts \ --group scwrypts \
--type zsh \ --type zsh \
> $HOME/.scwrypts.virtualenv.log 2>&1 ;
#> $HOME/.scwrypts.virtualenv.log 2>&1
echo "CI_SCWRYPTS_READY=1" >> $GITHUB_ENV echo "CI_SCWRYPTS_READY=1" >> $GITHUB_ENV
exit 0 exit 0

3
py/lib/.gitignore vendored
View File

@ -1 +1,4 @@
dist/ dist/
__pycache__/
*.py[cod]
*.so

View File

@ -55,6 +55,5 @@ source = 'versioningit'
[tool.hatch.build.targets.wheel] [tool.hatch.build.targets.wheel]
packages = ['./'] packages = ['./']
[tool.versioningit] [tool.versioningit.vcs]
match = ['v*'] match = ['v[0-9]*.[0-9]*.[0-9]*']

View File

@ -41,7 +41,7 @@ def scwrypts(*args, patterns=None, name=None, group=None, _type=None, log_level=
depth = int(depth) + 1 depth = int(depth) + 1
return run( return run(
f'SUBSCWRYPT={depth} {executable} {pre_args} -- {" ".join(args)}', f'SUBSCWRYPT={depth} {executable} {" ".join(pre_args)} -- {" ".join(args)}',
shell=True, shell=True,
executable='/bin/zsh', executable='/bin/zsh',
check=False, check=False,