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

Update setup py for pypi distribution #26

Merged
merged 4 commits into from
Jan 8, 2020
Merged
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
18 changes: 10 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
from distutils.core import setup

from setuptools import find_packages


Expand All @@ -14,8 +15,8 @@ def long_desc(root_path):
yield f.read()


HERE = os.path.abspath(os.path.dirname(__file__))
long_description = "\n\n".join(long_desc(HERE))
PATH_OF_RUNNING_SCRIPT = os.path.abspath(os.path.dirname(__file__))
long_description = "\n\n".join(long_desc(PATH_OF_RUNNING_SCRIPT))


def get_version(root_path):
Expand All @@ -26,31 +27,31 @@ def get_version(root_path):


tests_require = [
'factory_boy>=2.6.1',
'psycopg2>=2.6.1',
'factory_boy>=2.11.1',
]


setup(
name='django-rq-scheduler',
version=get_version(HERE),
version=get_version(PATH_OF_RUNNING_SCRIPT),
description='A database backed job scheduler for Django RQ',
long_description=long_description,
packages=find_packages(),
include_package_data=True,
author='Chad Shryock',
author_email='chad@isl.co',
author='ISL',
author_email='dev@isl.co',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on what the email should change to?

url='https://github.com/istrategylabs/django-rq-scheduler',
zip_safe=True,
install_requires=[
'django>=1.9.0',
'django-model-utils>=2.4.0',
'django-rq>=0.9.3',
'rq-scheduler>=0.6.0',
'pytz>=2015.7',
'pytz>=2018.5',
'croniter>=0.3.24',
],
tests_require=tests_require,
test_suite='scheduler.tests',
extras_require={
'test': tests_require,
},
Expand All @@ -62,6 +63,7 @@ def get_version(root_path):
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Framework :: Django',
],
)