Skip to content

Commit

Permalink
Ready for uploading to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
xianghuzhao committed Feb 14, 2017
1 parent 21a3a93 commit 63148dd
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 6 deletions.
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include jsub/support/jsubrc.example
recursive-include jsub/exts/action *
recursive-include jsub/exts/bootstrap *
recursive-include jsub/exts/launcher *
recursive-include jsub/exts/navigator *
recursive-include jsub/exts *.yml
File renamed without changes.
2 changes: 1 addition & 1 deletion jsub/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.0.dev1
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
# 3. If at all possible, it is good practice to do this. If you cannot, you
# will need to generate wheels for each Python version that you support.
universal=1
43 changes: 38 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import sys
import os

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

from jsub import version

class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]

Expand All @@ -17,16 +16,50 @@ def run_tests(self):
errno = pytest.main(self.pytest_args)
sys.exit(errno)


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

version_file = open(os.path.join(here, 'jsub', 'VERSION'))
version = version_file.read().strip()

with open(os.path.join(here, 'README.rst')) as f:
long_description = f.read()

setup(
name = 'jsub',
version = version(),
description = 'Job submission toolkit',
packages = find_packages(),
version = version,
description = 'Job submission toolkit bundle',
long_description = long_description,
url = 'https://jsubpy.github.io/',
author = 'Xianghu Zhao',
author_email = 'zhaoxh@ihep.ac.cn',
license = 'MIT',

classifiers = [
'Development Status :: 2 - Pre-Alpha',

'Intended Audience :: Science/Research',
'Topic :: System :: Distributed Computing',

'License :: OSI Approved :: MIT License',

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],

keywords = 'Job submission tools',
packages = find_packages(exclude=[]),
install_requires = [
'click',
'PyYAML',
'pytoml',
],
include_package_data = True,
tests_require = [
'pytest',
],
Expand Down

0 comments on commit 63148dd

Please sign in to comment.