diff --git a/.pypirc b/.pypirc new file mode 100644 index 0000000..1809b2c --- /dev/null +++ b/.pypirc @@ -0,0 +1,11 @@ +[distutils] +index-servers= + pypi + testpypi + +[testpypi] +repository: https://test.pypi.org/legacy/ +username: dainiusp + +[pypi] +username: dainiusp \ No newline at end of file diff --git a/README.md b/README.md index 093e193..aa97a62 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/requirements.txt b/requirements.txt index e379e21..4751e00 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django==2.2.2 -requests==2.22.0 APScheduler==3.6.0 -djangorestframework==3.9.4 \ No newline at end of file +Django==2.2.2 +djangorestframework==3.9.4 +requests==2.22.0 \ No newline at end of file diff --git a/scrapyd_dash/models.py b/scrapyd_dash/models.py index 423700a..3cd4957 100644 --- a/scrapyd_dash/models.py +++ b/scrapyd_dash/models.py @@ -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 diff --git a/scrapyd_dash/utils/updater.py b/scrapyd_dash/utils/updater.py index 3a8b2ba..d7c70c4 100644 --- a/scrapyd_dash/utils/updater.py +++ b/scrapyd_dash/utils/updater.py @@ -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() \ No newline at end of file diff --git a/setup.py b/setup.py index 141b2ea..2513403 100644 --- a/setup.py +++ b/setup.py @@ -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='preimantasd@gmail.com',