Skip to content

Commit

Permalink
pip support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dainius-P committed Jul 26, 2019
1 parent 74b43f4 commit aa64db2
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
11 changes: 11 additions & 0 deletions .pypirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[distutils]
index-servers=
pypi
testpypi

[testpypi]
repository: https://test.pypi.org/legacy/
username: dainiusp

[pypi]
username: dainiusp
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ A dashboard specifically used for scrapyd servers to manipulate scrapy spiders (

### Demo

[Demo website](https://www.example.com)
[Demo website](https://scrapyddash.herokuapp.com/)

Username: **demo**

Password: **demo**

### Installing

Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==2.2.2
requests==2.22.0
APScheduler==3.6.0
djangorestframework==3.9.4
Django==2.2.2
djangorestframework==3.9.4
requests==2.22.0
1 change: 1 addition & 0 deletions scrapyd_dash/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Task(models.Model):
update_datetime = models.DateTimeField(auto_now=True)

deleted = models.BooleanField(null=False, default=False)
stopping = models.BooleanField(null=False, default=False)

"""
Prints out start datetime in a custom format
Expand Down
2 changes: 1 addition & 1 deletion scrapyd_dash/utils/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def start_updater():

scheduler.add_job(check_servers.update_servers, 'cron', second=0)
scheduler.add_job(projects_list.update_projects, 'cron', second=30)
scheduler.add_job(tasks_list.update_tasks, 'interval', seconds=5)
scheduler.add_job(tasks_list.update_tasks, 'interval', seconds=10)


scheduler.start()
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@


setup(
name='scrapyd-dash',
version='0.0.1',
name='scrapyd_dash',
version='0.1.1',
packages=find_packages(),
include_package_data=True,
license='BSD License', # example license
license='BSD License',
description='A dashboard for scrapy project using scrapyd and logparser',
install_requires=install_requires,
long_description=README,
long_description_content_type="text/markdown",
url='https://github.com/Dainius-P/scrapyd-dash',
author='Dainius Preimantas',
author_email='[email protected]',
Expand Down

0 comments on commit aa64db2

Please sign in to comment.