diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 445588380..6b713e876 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,32 +6,6 @@ on: - 'v*' jobs: - conda-publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: publish-to-conda - uses: felix5572/conda-publish-action@v1.9 - with: - subdir: 'conda' - anacondatoken: ${{ secrets.ANACONDA_TOKEN }} - platforms: 'noarch' - construct-and-publish: - runs-on: ubuntu-latest - needs: conda-publish - steps: - - uses: actions/checkout@master - - uses: s-weigand/setup-conda@v1 - - run: conda install constructor jinja2 -y - - run: constructor ./conda - - name: Upload to release - uses: softprops/action-gh-release@master - if: startsWith(github.ref, 'refs/tags/') - with: - files: dpgen-*.sh - repository: ${{ env.GITHUB_REPOSITORY }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release-to-pypi: name: Release to pypi runs-on: ubuntu-latest diff --git a/conda/conda_build_config.yaml b/conda/conda_build_config.yaml deleted file mode 100644 index 9c44fb84b..000000000 --- a/conda/conda_build_config.yaml +++ /dev/null @@ -1,5 +0,0 @@ -channel_sources: - - defaults - - conda-forge -channel_targets: - - deepmodeling diff --git a/conda/construct.yaml b/conda/construct.yaml deleted file mode 100644 index 83c1b0822..000000000 --- a/conda/construct.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{% set version = os.popen('git describe --tags --abbrev=0').read().strip('\n').lstrip('v').replace('-', '_') %} - -name: dpgen -version: {{ version }} - -channels: - - defaults - - conda-forge - - deepmodeling - -specs: - - python 3.9 - - pip - - dpgen {{ version }} - -ignore_duplicate_files: True - -license_file: ../LICENSE diff --git a/conda/meta.yaml b/conda/meta.yaml deleted file mode 100644 index b7541087d..000000000 --- a/conda/meta.yaml +++ /dev/null @@ -1,60 +0,0 @@ -{% set name = "dpgen" %} -{% set version = os.popen('git describe --tags --abbrev=0').read().strip('\n').lstrip('v').replace('-', '_') %} - -package: - name: {{ name|lower }} - version: {{ version }} - -source: - path: .. - -build: - number: 0 - noarch: python - script: python -m pip install --no-deps --ignore-installed . - -requirements: - build: - - git - host: - - python >=3.6 - - pip - - setuptools_scm - - dargs - - paramiko - - requests - - dpdata - - dpdispatcher - - ase - - GromacsWrapper - - custodian - - netCDF4 - - run: - - python >=3.6 - - dargs - - paramiko - - requests - - dpdata - - dpdispatcher - - pymatgen - - ase - - GromacsWrapper - - custodian - - netCDF4 - -test: - imports: - - dpgen - -about: - home: https://github.com/deepmodeling/dpgen - license: LGPL-3.0 - license_family: LGPL - license_file: LICENSE - doc_url: https://github.com/deepmodeling/dpgen - dev_url: https://github.com/deepmodeling/dpgen - -extra: - recipe-maintainers: - - felix5572