2019-01-02 16:20:37 -07:00
|
|
|
[tox]
|
2019-09-23 04:59:58 -06:00
|
|
|
envlist = flake8,isort,yapf,pylint,build,pytest,docs
|
2019-05-09 11:18:21 -06:00
|
|
|
|
2019-09-01 17:22:15 -06:00
|
|
|
[depversions]
|
2020-03-27 11:32:22 -06:00
|
|
|
flake8 = 3.7.9
|
|
|
|
isort = 4.3.21
|
|
|
|
yapf = 0.28.0
|
|
|
|
pylint = 2.4.4
|
New SatNOGS DB user interface
Initial commit of new UI. There is still some work to be done before this goes into dev, but here is the work so far:
* Updated dependencies to latest 2.x django
* Updated to Bootstrap 4
* New home screen to display most recent satellite entries, most recent data, and contributors
* Adopted django-bootstrap-modal-forms for handling satellite and transmitter creation and update, with more of an emphasis on django's model/view/form model - and a dynamic flow where the modals and details are only loaded when the proper icon is clicked, reducing the overall page size
* Adopted AdminLTE 3.x framework atop Bootstrap 4
* Created reusable cards for satellite and transmitters
* Cards and Modals are organized into subdirectories for template includes and base templates, respectively
* New stats display widgets using BS4 and AdminLTE 3
* Satellite search is redesigned and now accessible from any page of the site
* Introduced datatables for an "All Satellites" view and a modification of the new "All Transmitters" view
* Focus on all UI scaling down to mobile devices
* New model created for Operator (/ Owner): name, names, description, website
* Added django-countries for support of CountryField
* Satellite model expanded to include: Operator, (satellite) website, countries, launched datetime, deployed datetime
* Transmitter suggestions can now be approved in the UI by superusers
* Satellite entries can now be edited in the UI by users with the change satellite permission
* Satellite page is now broken into 'tabbed' panels (Profile, Map, Transmitters, etc) - with the tab menu options appearing in the sidebar or at the top depending on screen size
* Other cleanup and changes that I'm missing for sure.
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-25 16:08:44 -06:00
|
|
|
pylint_django = 2.0.15
|
2019-09-20 09:00:31 -06:00
|
|
|
sphinx_rtd_theme = 0.4.3
|
2020-02-13 15:34:58 -07:00
|
|
|
twine = 3.1.1
|
2019-09-01 17:22:15 -06:00
|
|
|
|
2019-09-01 16:10:47 -06:00
|
|
|
[testenv:flake8]
|
2019-01-02 16:20:37 -07:00
|
|
|
deps =
|
2019-09-01 17:22:15 -06:00
|
|
|
flake8=={[depversions]flake8}
|
2019-01-02 16:20:37 -07:00
|
|
|
skip_install = True
|
2019-05-09 09:03:25 -06:00
|
|
|
commands = flake8
|
2019-01-07 04:23:02 -07:00
|
|
|
|
2019-05-09 09:33:02 -06:00
|
|
|
[testenv:isort]
|
2019-04-27 04:56:53 -06:00
|
|
|
deps =
|
2019-09-01 17:22:15 -06:00
|
|
|
isort=={[depversions]isort}
|
2020-02-13 15:31:28 -07:00
|
|
|
extras = dev
|
2019-05-09 09:05:27 -06:00
|
|
|
commands = isort -rc -c -df
|
2019-04-27 04:56:53 -06:00
|
|
|
|
2019-05-09 09:38:47 -06:00
|
|
|
[testenv:isort-apply]
|
|
|
|
deps =
|
2019-09-01 17:22:15 -06:00
|
|
|
isort=={[depversions]isort}
|
2020-02-13 15:31:28 -07:00
|
|
|
extras = dev
|
2019-05-09 09:38:47 -06:00
|
|
|
commands = isort -rc -y
|
|
|
|
|
2019-05-09 09:33:02 -06:00
|
|
|
[testenv:yapf]
|
2019-04-27 03:04:49 -06:00
|
|
|
deps =
|
2019-09-01 17:22:15 -06:00
|
|
|
yapf=={[depversions]yapf}
|
2019-04-27 03:04:49 -06:00
|
|
|
skip_install = True
|
2019-05-09 09:07:58 -06:00
|
|
|
commands = yapf -d -r .
|
2019-04-27 03:04:49 -06:00
|
|
|
|
2019-05-09 09:38:47 -06:00
|
|
|
[testenv:yapf-apply]
|
|
|
|
deps =
|
2019-09-01 17:22:15 -06:00
|
|
|
yapf=={[depversions]yapf}
|
2019-05-09 09:38:47 -06:00
|
|
|
skip_install = True
|
|
|
|
commands = yapf -i -r .
|
|
|
|
|
2019-09-01 16:10:47 -06:00
|
|
|
[testenv:pylint]
|
2019-07-02 07:38:18 -06:00
|
|
|
deps =
|
2019-09-01 17:22:15 -06:00
|
|
|
pylint=={[depversions]pylint}
|
|
|
|
pylint-django=={[depversions]pylint_django}
|
2019-07-02 07:38:18 -06:00
|
|
|
extras = dev
|
2019-09-01 16:49:51 -06:00
|
|
|
commands = pylint \
|
2019-07-02 07:38:18 -06:00
|
|
|
{envsitepackagesdir}/db \
|
|
|
|
{envsitepackagesdir}/auth0login
|
|
|
|
|
2019-09-20 09:00:31 -06:00
|
|
|
[testenv:build]
|
|
|
|
skip_install = True
|
|
|
|
commands =
|
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
|
2020-02-13 15:34:58 -07:00
|
|
|
[testenv:upload]
|
|
|
|
deps =
|
|
|
|
twine=={[depversions]twine}
|
|
|
|
skip_install = True
|
|
|
|
commands =
|
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
twine upload -u "{env:PYPI_USERNAME}" -p "{env:PYPI_PASSWORD}" dist/*
|
|
|
|
|
2019-09-20 09:00:31 -06:00
|
|
|
[testenv:docs]
|
|
|
|
deps =
|
|
|
|
sphinx_rtd_theme=={[depversions]sphinx_rtd_theme}
|
|
|
|
changedir = {toxinidir}/docs
|
|
|
|
commands =
|
|
|
|
sphinx-build -b html . "_build/html"
|
|
|
|
|
2019-01-07 07:08:10 -07:00
|
|
|
[testenv:deps]
|
|
|
|
install_command = python -m pip install --no-deps {opts} {packages}
|
|
|
|
recreate = True
|
|
|
|
deps =
|
|
|
|
-rrequirements-dev.txt
|
|
|
|
extras = dev
|
|
|
|
commands = pip check
|
|
|
|
|
2019-09-01 16:10:47 -06:00
|
|
|
[testenv:pytest]
|
2019-01-07 07:08:10 -07:00
|
|
|
install_command = python -m pip install --no-deps {opts} {packages}
|
2019-01-07 04:23:02 -07:00
|
|
|
deps =
|
2019-01-07 05:39:59 -07:00
|
|
|
-rrequirements-dev.txt
|
2019-01-07 04:23:02 -07:00
|
|
|
extras = dev
|
|
|
|
commands = pytest
|