Skip to content

Commit

Permalink
Make coldfront installable via pip
Browse files Browse the repository at this point in the history
- Add setup.py
- Add cli entry named coldfront
  • Loading branch information
aebruno committed Oct 24, 2018
1 parent ebd0efe commit bb31926
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.py[cod]
*.swp
coldfront.egg-info
dist
*._*
*.DS_Store
Expand Down
7 changes: 7 additions & 0 deletions coldfront/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import os
import sys

def manage():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "coldfront.config.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Empty file modified manage.py
100644 → 100755
Empty file.
52 changes: 52 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/usr/bin/env python

from setuptools import setup, find_packages

setup(
name='coldfront',
version='0.0.2',
description='HPC Resource Allocation System ',
keywords='high-performance-computing resource-allocation',
url='http://coldfront.io',
project_urls={
'Bug Tracker': 'https://github.com/ubccr/coldfront/issues',
'Documentation': 'https://ubccr.github.io/coldfront-docs/',
'Source Code': 'https://github.com/ubccr/coldfront',
},
author='Andrew E. Bruno, Dori Sajdak, Mohammad Zia',
license='GPLv3',
packages=find_packages(),
install_requires=[
'arrow==0.12.1',
'bibtexparser==1.0.1',
'blessed==1.15.0',
'certifi==2018.10.15',
'chardet==3.0.4',
'Django==2.1.2',
'django-crispy-forms==1.7.2',
'django-model-utils==3.1.2',
'django-picklefield==1.1.0',
'django-q==1.0.1',
'django-simple-history==2.5.1',
'django-sslserver==0.20',
'django-su==0.8.0',
'doi2bib==0.3.0',
'future==0.16.0',
'humanize==0.5.1',
'idna==2.7',
'pyparsing==2.2.2',
'python-dateutil==2.7.3',
'python-memcached==1.59',
'pytz==2018.5',
'redis==2.10.6',
'requests==2.20.0',
'six==1.11.0',
'urllib3==1.24',
'wcwidth==0.1.7',
],
entry_points={
'console_scripts': [
'coldfront = coldfront:manage',
],
}
)

0 comments on commit bb31926

Please sign in to comment.