Skip to content

Commit

Permalink
Improved project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jun 9, 2021
1 parent eeeffd3 commit f79481c
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject

venv
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
29 changes: 29 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[metadata]
name = Flask-Moment
version = 0.11.0
author = Miguel Grinberg
author_email = miguel.grinberg@gmail.com
description = Formatting of dates and times in Flask templates using moment.js.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/miguelgrinberg/flask-moment
project_urls =
Bug Tracker = https://github.com/miguelgrinberg/flask-moment/issues
classifiers =
Intended Audience :: Developers
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent

[options]
zip_safe = False
include_package_data = True
package_dir =
= src
packages = find:
python_requires = >=3.6
install_requires =
Flask

[options.packages.find]
where = src
36 changes: 2 additions & 34 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,3 @@
"""
Flask-Moment
------------
import setuptools

Formatting of dates and times in Flask templates using moment.js.
"""
from setuptools import setup


setup(
name='Flask-Moment',
version='0.11.0',
url='http://github.com/miguelgrinberg/flask-moment/',
license='MIT',
author='Miguel Grinberg',
author_email='miguelgrinberg50@gmail.com',
description='Formatting of dates and times in Flask templates using moment.js.',
long_description=__doc__,
py_modules=['flask_moment'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask'
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
setuptools.setup()
File renamed without changes.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ deps=

[testenv:flake8]
commands=
flake8 flask_moment.py tests example
flake8 src/flask_moment.py tests example
deps=
flake8

Expand Down

0 comments on commit f79481c

Please sign in to comment.