Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed Nov 28, 2024
1 parent 66d991c commit c6b7916
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Build and publish
python -m pip install setuptools build twine
- name: Build
run: make build python=python
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
make upload python=python
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ jobs:
activate-environment: rmsd-dev
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
- run: |
ls
pwd
which python
conda info
- run: pip install .
- run: which calculate_rmsd
- run: |
make test python=python
- run: |
make format python=python
- run: |
make build python=python
make test-dist python=python
pip install dist/*
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ types:
cov:
${python} -m pytest --cov=${package} --cov-config .coveragerc --cov-report html tests

compile:
${python} _compile.py

build:
${python} -m build --sdist --skip-dependency-check .

Expand Down

0 comments on commit c6b7916

Please sign in to comment.