Skip to content

Commit

Permalink
Merge pull request #14 from mrf345/testing
Browse files Browse the repository at this point in the history
Cleanups and refactoring
  • Loading branch information
mrf345 authored Jul 22, 2024
2 parents 3d2f4d2 + b7d5457 commit ce8a85d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 21 deletions.
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test: install
pytest
lint:
lint: install
flake8
run: install
python tests/integration.py
Expand All @@ -11,4 +11,4 @@ release: install clean
clean:
rm -rf dist build *.egg-info .eggs
install:
pip install --quiet -r requirements/main.txt
pip install --quiet -r requirements/dev.txt
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
```python
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_datepicker import datepicker
from flask_datepicker import Datepicker

app = Flask(__name__)
Bootstrap(app)
datepicker(app)
datepicker = Datepicker(app)
```

#### - Inside jinja template:
Expand Down
3 changes: 2 additions & 1 deletion flask_datepicker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from flask_datepicker.main import datepicker # noqa
from flask_datepicker.main import Datepicker # noqa
from flask_datepicker.main import Datepicker as datepicker # noqa
from flask_datepicker.about import (__license__, __version__, __author__, __doc__, __email__) # noqa
2 changes: 1 addition & 1 deletion flask_datepicker/about.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.15'
__version__ = '0.16'
__doc__ = 'A Flask extension for jQueryUI DatePicker.'
__license__ = 'MIT'
__author__ = 'Mohamed Feddad'
Expand Down
2 changes: 1 addition & 1 deletion flask_datepicker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from flask_datepicker.utils import find, cache_output


class datepicker(object):
class Datepicker(object):
def __init__(self, app=None, local=[], version='1.12.1'):
'''Extension to help with loading and using jQueryUI Datepicker.
Expand Down
2 changes: 2 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r ./main.txt
twine

0 comments on commit ce8a85d

Please sign in to comment.