-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update packaging, use pyproject.toml, setuptools_scm and setup.cfg
- Loading branch information
1 parent
b4ff256
commit 437398a
Showing
6 changed files
with
71 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from .routes import app, CONF | ||
from ._version import __version__ | ||
|
||
__all__ = ['app', 'CONF'] | ||
__all__ = ['app', 'CONF', '__version__'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "graphdash/_version.py" | ||
write_to_template = "__version__ = \"{version}\"\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[metadata] | ||
name = GraphDash | ||
description = A web-based dashboard built from graphs and their metadata | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
url = https://github.com/AmadeusITGroup/graphdash' | ||
author = Alex Prengère | ||
author_email = [email protected] | ||
license_files = LICENSE | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
[options] | ||
zip_safe = False | ||
packages = find: | ||
install_requires = | ||
PyYAML | ||
Flask | ||
Markdown | ||
Pygments | ||
stop-words | ||
python_requires = >=3.6.1 | ||
setup_requires = | ||
setuptools_scm | ||
scripts = | ||
GraphDashManage | ||
[options.package_data] | ||
graphdash = | ||
templates/*.html | ||
assets/css/* | ||
assets/js/* | ||
assets/img/* | ||
[options.entry_points] | ||
console_scripts = | ||
tfl = tfl.__main__:main | ||
GraphDash = graphdash.__main__:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,5 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
Packaging | ||
""" | ||
|
||
from __future__ import with_statement | ||
from setuptools import setup, find_packages | ||
|
||
with open('README.rst') as f: | ||
LONG_DESCRIPTION = f.read() | ||
|
||
with open('LICENSE') as f: | ||
LICENSE = f.read() | ||
|
||
INSTALL_REQUIRES = [ | ||
'PyYAML', | ||
'Flask', | ||
'Markdown', | ||
'Pygments', | ||
'stop-words', | ||
] | ||
from setuptools import setup | ||
|
||
setup( | ||
name='GraphDash', | ||
version='0.10.3', | ||
author='Alex Prengere', | ||
author_email='[email protected]', | ||
url='https://github.com/AmadeusITGroup/graphdash', | ||
description='A web-based dashboard built on graphs and their metadata.', | ||
long_description=LONG_DESCRIPTION, | ||
license=LICENSE, | ||
packages=find_packages(), | ||
package_data={ | ||
'graphdash': [ | ||
'templates/*.html', | ||
'assets/css/*', | ||
'assets/js/*', | ||
'assets/img/*', | ||
], | ||
}, | ||
zip_safe=False, | ||
install_requires=INSTALL_REQUIRES, | ||
entry_points={ | ||
'console_scripts': [ | ||
'GraphDash=graphdash.__main__:main', | ||
], | ||
}, | ||
scripts=[ | ||
'GraphDashManage', | ||
], | ||
use_scm_version=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters