Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using setup.cfg and add missing dependencies #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

34 changes: 34 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (c) 2017, Zebula Sampedro, CU Boulder Research Computing.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
[metadata]
name = optionsspawner
description = Options Form Spawner: Mixins and utilities for adding options forms with validation to JupyterHub spawners
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/kellyrowland/jupyterhub-options-spawner
author = Zebula Sampedro
author_email = [email protected]
license = BSD
license_file = LICENSE
classifiers =
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: BSD License
Programming Language :: Python
Programming Language :: Python :: 3
keywords = Interactive, Interpreter, Shell, Web, Jupyter, JupyterHub
version = attr: version.__version__
platforms = Linux

[options]
zip_safe = False
include_package_data = True
packages = find:
install_requires =
wrapspawner
tornado
jupyterhub
traitlets
62 changes: 2 additions & 60 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,61 +1,3 @@
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup

# Copyright (c) 2017, Zebula Sampedro, CU Boulder Research Computing.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

from __future__ import print_function

import os
import sys

from distutils.core import setup

pjoin = os.path.join
here = os.path.abspath(os.path.dirname(__file__))

# Get the current package version.
version_ns = {}
with open(pjoin(here, 'version.py')) as f:
exec(f.read(), {}, version_ns)

setup_args = dict(
name = 'optionsspawner',
packages = ['optionsspawner', 'optionsspawner.forms'],
version = version_ns['__version__'],
description = """Options Form Spawner: Mixins and utilities for adding options forms with validation to JupyterHub spawners.""",
long_description = "",
author = "Zebula Sampedro",
author_email = "[email protected]",
url = "https://github.com/ResearchComputing/jupyterhub-options-spawner",
license = "BSD",
platforms = "Linux",
keywords = ['Interactive', 'Interpreter', 'Shell', 'Web', 'Jupyter', 'JupyterHub'],
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
)

# 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()
setup()