Skip to content

Commit b781c9a

Browse files
committed
Updates
1 parent c1b495d commit b781c9a

13 files changed

+626
-626
lines changed

.devcontainer/DockerFile

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM ludeeus/devcontainer:base
2-
3-
## Additional things for HACS
4-
RUN apk add \
5-
nodejs \
6-
npm \
7-
autoconf \
8-
automake
1+
FROM ludeeus/devcontainer:base
2+
3+
## Additional things for HACS
4+
RUN apk add \
5+
nodejs \
6+
npm \
7+
autoconf \
8+
automake

.github/workflows/pythonpublish.yml

+32-32
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
name: Upload Python Package
2-
3-
on:
4-
release:
5-
types: [created]
6-
7-
jobs:
8-
deploy:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v1
12-
- name: Set up Python
13-
uses: actions/setup-python@v1
14-
with:
15-
python-version: '3.x'
16-
- name: "Set version number"
17-
run: |
18-
sed -i '/version=/c\version="${{ github.ref }}",' ./setup.py
19-
sed -i 's|refs/heads/||' ./setup.py
20-
sed -i 's|refs/tags/||' ./setup.py
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
25-
npm install
26-
- name: Build and publish
27-
env:
28-
TWINE_USERNAME: __token__
29-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
30-
run: |
31-
npm run build
32-
python setup.py sdist bdist_wheel
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.x'
16+
- name: "Set version number"
17+
run: |
18+
sed -i '/version=/c\version="${{ github.ref }}",' ./setup.py
19+
sed -i 's|refs/heads/||' ./setup.py
20+
sed -i 's|refs/tags/||' ./setup.py
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
npm install
26+
- name: Build and publish
27+
env:
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
30+
run: |
31+
npm run build
32+
python setup.py sdist bdist_wheel
3333
twine upload dist/*

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
graft hacs_frontend
1+
graft hacs_frontend
22
global-exclude *.py[cod]

hacs_frontend/__init__.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
"""HACS Frontend"""
2-
3-
def locate_dir():
4-
return __path__[0]
5-
6-
def locate_js():
7-
return f"{__path__[0]}/main.js"
8-
9-
def locate_gz():
1+
"""HACS Frontend"""
2+
3+
def locate_dir():
4+
return __path__[0]
5+
6+
def locate_js():
7+
return f"{__path__[0]}/main.js"
8+
9+
def locate_gz():
1010
return f"{__path__[0]}/main.js.gz"

setup.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
from setuptools import setup, find_packages
2-
3-
setup(
4-
name="hacs-frontend",
5-
version="VERSION",
6-
description="The HACS frontend",
7-
url="https://github.com/hacs/frontend",
8-
author="Joakim Sorensen",
9-
author_email="[email protected]",
10-
packages=find_packages(include=["hacs_frontend", "hacs_frontend.*"]),
11-
include_package_data=True,
12-
zip_safe=False,
1+
from setuptools import setup, find_packages
2+
3+
setup(
4+
name="hacs-frontend",
5+
version="VERSION",
6+
description="The HACS frontend",
7+
url="https://github.com/hacs/frontend",
8+
author="Joakim Sorensen",
9+
author_email="[email protected]",
10+
packages=find_packages(include=["hacs_frontend", "hacs_frontend.*"]),
11+
include_package_data=True,
12+
zip_safe=False,
1313
)

0 commit comments

Comments
 (0)