Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bsch63 committed Nov 21, 2022
2 parents 26e2f40 + c1b56d3 commit bc21a50
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 39 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/publish-to-package-index

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/publish-to-testpypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Publish to TestPyPI repository

on:
push:
branches:
- 'main'

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
39 changes: 39 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [created, published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
7 changes: 4 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[metadata]
name = wave_train
version = 0.1
version = 1.0.0
author = Jerome Riedel, Patrick Gelß, Burkhard Schmidt
author_email = burkhard.schmidt@fu-berlin.de
description = Numerical quantum mechanics of chain-like systems based on tensor trains
license = GNU v3.0
long_description = file: README.md
long_description_content_type = text/markdown

[options]
packages = find:
python_requires = >=3.7, <4
install_requires =
matplotlib>=3.4.3
numpy>=1.21.2
scikit_tt @ git+https://github.com/PGelss/scikit_tt.git
scipy>=1.7.1
sympy>=1.9
sympy>=1.9

0 comments on commit bc21a50

Please sign in to comment.