-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
eebb443
commit ccafad5
Showing
9 changed files
with
32 additions
and
53 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 |
---|---|---|
|
@@ -3,4 +3,4 @@ index-servers=pypi | |
|
||
[pypi] | ||
repository=https://upload.pypi.org/legacy/ | ||
username=openworkload | ||
username=__token__ |
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
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
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,12 @@ | ||
#!/usr/bin/env python3 | ||
#!/usr/bin/env python | ||
# coding: utf-8 | ||
|
||
import os | ||
import sys | ||
from codecs import open # to use a consistent encoding | ||
from os import path | ||
from subprocess import check_output | ||
|
||
from distutils.core import setup | ||
from pathlib import Path | ||
from setuptools import find_packages | ||
from setuptools import setup, find_packages | ||
|
||
HERE = Path(__file__).parent.resolve() | ||
|
||
def get_version(): | ||
cmd = "git describe --tags" | ||
|
@@ -21,65 +20,43 @@ def get_version(): | |
|
||
|
||
def get_long_description(): | ||
with open(os.path.join(HERE, "README.md"), encoding="utf-8") as f: | ||
here = path.abspath(path.dirname(__file__)) | ||
with open(path.join(here, "README.md"), encoding="utf-8") as f: | ||
long_description = f.read() | ||
return long_description | ||
|
||
|
||
setup_args = dict( | ||
name='swm_jupyter_spawner', | ||
setup( | ||
name="swmjupyter", | ||
version=get_version(), | ||
description="""A spawner for Jupyterhub to spawn notebooks over Sky Port""", | ||
description="A spawner for JupyterHub to spawn notebooks over Sky Port", | ||
long_description=get_long_description(), | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/openworkload/swm-jupyter-term", | ||
author="Taras Shapovalov", | ||
author_email="[email protected]", | ||
url="https://github.com/openworkload/swm-jupyter-term", | ||
license="BSD", | ||
platforms="Linux, Mac OS X, Windows", | ||
packages=find_packages(), | ||
license="BSD", | ||
include_package_data=True, | ||
python_requires=">=3.10, <4", | ||
platforms="Linux", | ||
keywords=[ | ||
"HPC", | ||
"High Performance Computing", | ||
"Cloud Computing", | ||
"Sky Port", | ||
"Open Workload" | ||
"Open Workload", | ||
"Sky Port" | ||
], | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Framework :: Jupyter", | ||
"Framework :: Jupyter :: JupyterLab", | ||
"Framework :: Jupyter :: JupyterLab :: 3", | ||
"Framework :: Jupyter :: JupyterLab :: Extensions", | ||
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt", | ||
], | ||
project_urls={ | ||
"Bug Reports": "https://github.com/openworkload/swm-jupyter-term/issues", | ||
"Source": "https://github.com/openworkload/swm-jupyter-term", | ||
}, | ||
) | ||
|
||
# setuptools requirements | ||
if "setuptools" in sys.modules: | ||
setup_args["install_requires"] = install_requires = [] | ||
with open("requirements.txt") as f: | ||
for line in f.readlines(): | ||
req = line.strip() | ||
if not req or req.startswith(("-e", "#")): | ||
continue | ||
install_requires.append(req) | ||
|
||
|
||
def main(): | ||
setup(**setup_args) | ||
|
||
if __name__ == "__main__": | ||
main() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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