Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Modifications to make qhub_jupyterhub_theme a package
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Jan 11, 2021
1 parent 373b8ac commit bc28f41
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Release"

on:
push:
tags:
- 'v*'

jobs:
release:
name: 'PyPi Release'
runs-on: ubuntu-latest
steps:
- name: 'Checkout Infastructure'
uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install twine
run: |
pip install twine
- name: Build and Distribute
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
share
jupyterhub-proxy.pid
jupyterhub.sqlite
jupyterhub_cookie_secret
jupyterhub_cookie_secret

# python
dist
build
.git
*.egg-info
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.md

graft qhub_jupyterhub_theme
6 changes: 6 additions & 0 deletions qhub_jupyterhub_theme/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os

HERE = os.path.dirname(__file__)

TEMPLATE_PATH = os.path.join(HERE, 'templates')
STATIC_PATH = os.path.join(HERE, 'static')
File renamed without changes.
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
from setuptools import setup, find_packages
import os

here = os.path.abspath(os.path.dirname(__file__))
share_qhub_jupyterhub_theme = os.path.join(here, 'share', 'qhub_jupyterhub_theme')


# Get the long description from the README file
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()


setup(
name="qhub_jupyterhub_theme",
version='0.2.0',
description="QHub jupyterhub theme",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/quansight/qhub_jupyterhub_theme",
author="Quansight",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords="jupyterhub theme",
packages=['qhub_jupyterhub_theme'],
python_requires="!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4",
install_requires=[
"jupyterhub"
],
package_data={
'qhub_jupyterhub_theme': [
'templates/*',
'custom/css/*',
'custom/images/*'
]
},
include_package_data=True,
project_urls={
"Bug Reports": "https://github.com/quansight/qhub_jupyterhub_theme",
"Source": "https://github.com/quansight/qhub_jupyterhub_theme",
},
)

0 comments on commit bc28f41

Please sign in to comment.