-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
626 additions
and
626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM ludeeus/devcontainer:base | ||
|
||
## Additional things for HACS | ||
RUN apk add \ | ||
nodejs \ | ||
npm \ | ||
autoconf \ | ||
automake | ||
FROM ludeeus/devcontainer:base | ||
## Additional things for HACS | ||
RUN apk add \ | ||
nodejs \ | ||
npm \ | ||
autoconf \ | ||
automake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: "Set version number" | ||
run: | | ||
sed -i '/version=/c\version="${{ github.ref }}",' ./setup.py | ||
sed -i 's|refs/heads/||' ./setup.py | ||
sed -i 's|refs/tags/||' ./setup.py | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
npm install | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
npm run build | ||
python setup.py sdist bdist_wheel | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: "Set version number" | ||
run: | | ||
sed -i '/version=/c\version="${{ github.ref }}",' ./setup.py | ||
sed -i 's|refs/heads/||' ./setup.py | ||
sed -i 's|refs/tags/||' ./setup.py | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
npm install | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
npm run build | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
graft hacs_frontend | ||
graft hacs_frontend | ||
global-exclude *.py[cod] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
"""HACS Frontend""" | ||
|
||
def locate_dir(): | ||
return __path__[0] | ||
|
||
def locate_js(): | ||
return f"{__path__[0]}/main.js" | ||
|
||
def locate_gz(): | ||
"""HACS Frontend""" | ||
|
||
def locate_dir(): | ||
return __path__[0] | ||
|
||
def locate_js(): | ||
return f"{__path__[0]}/main.js" | ||
|
||
def locate_gz(): | ||
return f"{__path__[0]}/main.js.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name="hacs-frontend", | ||
version="VERSION", | ||
description="The HACS frontend", | ||
url="https://github.com/hacs/frontend", | ||
author="Joakim Sorensen", | ||
author_email="[email protected]", | ||
packages=find_packages(include=["hacs_frontend", "hacs_frontend.*"]), | ||
include_package_data=True, | ||
zip_safe=False, | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name="hacs-frontend", | ||
version="VERSION", | ||
description="The HACS frontend", | ||
url="https://github.com/hacs/frontend", | ||
author="Joakim Sorensen", | ||
author_email="[email protected]", | ||
packages=find_packages(include=["hacs_frontend", "hacs_frontend.*"]), | ||
include_package_data=True, | ||
zip_safe=False, | ||
) |
Oops, something went wrong.