Skip to content

Commit

Permalink
Merge pull request #1054 from dandi/fix-version
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt authored Apr 29, 2022
2 parents 3794e59 + fb6103c commit dd0ab84
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 2,423 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- uses: actions/checkout@v3

- name: Run E2E tests
uses: docker://ghcr.io/girder/pytest-pyppeteer:v0.0.10
uses: docker://ghcr.io/girder/pytest-pyppeteer:v0.0.11
with:
install_directory: web
install_command: yarn install
Expand Down Expand Up @@ -156,7 +156,6 @@ jobs:
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('setup.py') }}

- name: Install dandi-api dependencies
if: steps.pip-cache.outputs.cache-hit != 'true'
run: pip install --upgrade --upgrade-strategy eager -e .[dev]

- name: Apply migrations to API server
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/update-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [released]

jobs:
release:
reset-release-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -14,11 +14,19 @@ jobs:
token: ${{ secrets.GH_TOKEN }} # use PAT with permissions to push to master
ref: release

- name: Reset release branch
- name: Perform reset
run: |
git reset --hard ${{ github.ref }}
git push --force origin release
production-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch history for all branches and tags
ref: release

- name: Deploy to Heroku
uses: akhileshns/heroku-deploy@v3.12.12
with:
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# Include any data files such as templates or static assets in the source distribution
graft dandiapi
include versioneer.py
include dandiapi/_version.py
9 changes: 3 additions & 6 deletions dandiapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# This project module is imported for us when Django starts. To ensure that Celery app is always
# defined prior to any shared_task definitions (so those tasks will bind to the app), import
# the Celery module here for side effects.
from ._version import get_versions
from .celery import app as _celery_app # noqa: F401
from pkg_resources import get_distribution

# Do not import anything else from this file, to avoid interfering with the startup order of the
# Celery app and Django's settings.
from .celery import app as _celery_app # noqa: F401

__version__ = get_versions()['version']
del get_versions
__version__ = get_distribution('dandiapi').version
Loading

0 comments on commit dd0ab84

Please sign in to comment.