Skip to content

Commit

Permalink
modify pypi version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedore committed Apr 20, 2023
1 parent a2753a6 commit f750143
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 47 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/python-publish-6315.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ jobs:
- name: Publish a Python distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/


test-linux:
Expand Down Expand Up @@ -128,8 +128,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 6315
- name: Install openctp-ctp-6315
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-6315
# run: pip install openctp-ctp-6315
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-6315
run: pip install openctp-ctp-6315
- name: Test
working-directory: openctp-ctp-6315
run: pytest tests
Expand Down Expand Up @@ -159,8 +159,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 6315
- name: Install openctp-ctp-6315
# run: pip install openctp-ctp-6315
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-6315
run: pip install openctp-ctp-6315
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-6315
- name: Test
working-directory: openctp-ctp-6315
run: pytest tests
14 changes: 7 additions & 7 deletions .github/workflows/python-publish-6319.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ jobs:
- name: Publish a Python distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/


test-linux:
Expand Down Expand Up @@ -128,8 +128,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 6319
- name: Install openctp-ctp-6319
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-6319
# run: pip install openctp-ctp-6319
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-6319
run: pip install openctp-ctp-6319
- name: Test
working-directory: openctp-ctp-6319
run: pytest tests
Expand Down Expand Up @@ -159,8 +159,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 6319
- name: Install openctp-ctp-6319
# run: pip install openctp-ctp-6319
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-6319
run: pip install openctp-ctp-6319
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-6319
- name: Test
working-directory: openctp-ctp-6319
run: pytest tests
14 changes: 7 additions & 7 deletions .github/workflows/python-publish-651.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ jobs:
- name: Publish a Python distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/


test-linux:
Expand Down Expand Up @@ -128,8 +128,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 651
- name: Install openctp-ctp-651
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-651
# run: pip install openctp-ctp-651
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-651
run: pip install openctp-ctp-651
- name: Test
working-directory: openctp-ctp-651
run: pytest tests
Expand Down Expand Up @@ -159,8 +159,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 651
- name: Install openctp-ctp-651
# run: pip install openctp-ctp-651
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-651
run: pip install openctp-ctp-651
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-651
- name: Test
working-directory: openctp-ctp-651
run: pytest tests
14 changes: 7 additions & 7 deletions .github/workflows/python-publish-661.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ jobs:
- name: Publish a Python distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/


test-linux:
Expand Down Expand Up @@ -128,8 +128,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 661
- name: Install openctp-ctp-661
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-661
# run: pip install openctp-ctp-661
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-661
run: pip install openctp-ctp-661
- name: Test
working-directory: openctp-ctp-661
run: pytest tests
Expand Down Expand Up @@ -159,8 +159,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 661
- name: Install openctp-ctp-661
# run: pip install openctp-ctp-661
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-661
run: pip install openctp-ctp-661
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-661
- name: Test
working-directory: openctp-ctp-661
run: pytest tests
18 changes: 9 additions & 9 deletions .github/workflows/python-publish-667.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ jobs:
- name: Publish a Python distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/


test-linux:
Expand Down Expand Up @@ -160,8 +160,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 667
- name: Install openctp-ctp-667
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-667
# run: pip install openctp-ctp-667
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-667
run: pip install openctp-ctp-667
- name: Test
working-directory: openctp-ctp-667
run: pytest tests
Expand Down Expand Up @@ -191,8 +191,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 667
- name: Install openctp-ctp-667
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-667
# run: pip install openctp-ctp-667
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-667
run: pip install openctp-ctp-667
- name: Test
working-directory: openctp-ctp-667
run: pytest tests/test_mdapi.py
Expand Down Expand Up @@ -222,8 +222,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 667
- name: Install openctp-ctp-667
# run: pip install openctp-ctp-667
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-667
run: pip install openctp-ctp-667
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-667
- name: Test
working-directory: openctp-ctp-667
run: pytest tests
18 changes: 9 additions & 9 deletions .github/workflows/python-publish-669.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ jobs:
- name: Publish a Python distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/


test-linux:
Expand Down Expand Up @@ -160,8 +160,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 669
- name: Install openctp-ctp-669
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-669
# run: pip install openctp-ctp-669
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-669
run: pip install openctp-ctp-669
- name: Test
working-directory: openctp-ctp-669
run: pytest tests
Expand Down Expand Up @@ -191,8 +191,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 669
- name: Install openctp-ctp-669
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-669
# run: pip install openctp-ctp-669
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-669
run: pip install openctp-ctp-669
- name: Test
working-directory: openctp-ctp-669
run: pytest tests/test_mdapi.py
Expand Down Expand Up @@ -222,8 +222,8 @@ jobs:
- name: Generate projects files
run: python templates/sync.py 669
- name: Install openctp-ctp-669
# run: pip install openctp-ctp-669
run: pip install -i https://test.pypi.org/simple/ openctp-ctp-669
run: pip install openctp-ctp-669
# run: pip install -i https://test.pypi.org/simple/ openctp-ctp-669
- name: Test
working-directory: openctp-ctp-669
run: pytest tests
2 changes: 1 addition & 1 deletion templates/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def target_file(*filenames):
print('Sync __about__.py')
with open(src_file('__about__.py'), 'r') as file_obj:
text = file_obj.read()
new_text = text.replace('PKG_VERSION', '3.0.6')
new_text = text.replace('PKG_VERSION', '1.0.2')
with open(target_file('libs', '__about__.py'), 'w') as file_obj:
file_obj.write(new_text)

Expand Down

0 comments on commit f750143

Please sign in to comment.