Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Nov 17, 2019
1 parent c1b495d commit b781c9a
Show file tree
Hide file tree
Showing 13 changed files with 626 additions and 626 deletions.
16 changes: 8 additions & 8 deletions .devcontainer/DockerFile
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
64 changes: 32 additions & 32 deletions .github/workflows/pythonpublish.yml
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/*
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
graft hacs_frontend
graft hacs_frontend
global-exclude *.py[cod]
18 changes: 9 additions & 9 deletions hacs_frontend/__init__.py
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"
24 changes: 12 additions & 12 deletions setup.py
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,
)
Loading

0 comments on commit b781c9a

Please sign in to comment.