-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #485 from nucleic/pep621
Use pyproject.toml based install and latest cppy features
- Loading branch information
Showing
12 changed files
with
175 additions
and
198 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
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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# -------------------------------------------------------------------------------------- | ||
# Copyright (c) 2013-2022, Nucleic Development Team. | ||
# | ||
# Distributed under the terms of the Modified BSD License. | ||
# | ||
# The full license is in the file LICENSE, distributed with this software. | ||
# -------------------------------------------------------------------------------------- | ||
|
||
[project] | ||
name = "enaml" | ||
description = "Declarative DSL for building rich user interfaces in Python" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE"} | ||
authors = [ | ||
{name = "The Nucleic Development Team", email = "sccolbert@gmail.com"} | ||
] | ||
maintainers = [ | ||
{name = "Matthieu C. Dartiailh", email = "m.dartiailh@gmail.com"} | ||
] | ||
classifiers = [ | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
] | ||
dependencies = [ | ||
"ply", | ||
"atom>=0.8.0", | ||
"kiwisolver>=1.2.0", | ||
"bytecode>=0.13.0", | ||
] | ||
dynamic=["version"] | ||
|
||
[project.optional-dependencies] | ||
qt5-pyqt = ["qtpy", "pyqt5"] | ||
qt5-pyside = ["qtpy", "pyside2"] | ||
qt6-pyqt = ["qtpy>=2.0.1", "pyqt6>=6.2"] | ||
qt6-pyside = ["qtpy>=2.0.1", "pyside6>=6.2.3"] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/nucleic/enaml" | ||
documentation = "https://enaml.readthedocs.io/en/latest/" | ||
repository = "https://github.com/nucleic/enaml" | ||
changelog = "https://github.com/nucleic/enaml/blob/main/releasenotes.rst" | ||
|
||
[project.scripts] | ||
enaml-run = "enaml.runner:main" | ||
enaml-compileall = "enaml.compile_all:main" | ||
|
||
[build-system] | ||
requires = ["setuptools>=61.2", "wheel", "setuptools_scm[toml]>=3.4.3", "cppy>=1.2.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
include-package-data = false | ||
[tools.setuptools.package-data] | ||
"enaml.applib" = ['*.enaml'] | ||
"enaml.stdlib" = ['*.enaml'] | ||
"enaml.workbench.core" = ['*.enaml'] | ||
"enaml.workbench.ui" = ['*.enaml'] | ||
"enaml.qt.docking" = [ | ||
'dock_images/*.png', | ||
'dock_images/*.py', | ||
'enaml_dock_resources.qrc' | ||
] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "enaml/version.py" | ||
write_to_template = """ | ||
# -------------------------------------------------------------------------------------- | ||
# Copyright (c) 2013-2022, Nucleic Development Team. | ||
# | ||
# Distributed under the terms of the Modified BSD License. | ||
# | ||
# The full license is in the file LICENSE, distributed with this software. | ||
# -------------------------------------------------------------------------------------- | ||
# This file is auto-generated by setuptools-scm do NOT edit it. | ||
from collections import namedtuple | ||
#: A namedtuple of the version info for the current release. | ||
_version_info = namedtuple("_version_info", "major minor micro status") | ||
parts = "{version}".split(".", 3) | ||
version_info = _version_info( | ||
int(parts[0]), | ||
int(parts[1]), | ||
int(parts[2]), | ||
parts[3] if len(parts) == 4 else "", | ||
) | ||
# Remove everything but the 'version_info' from this module. | ||
del namedtuple, _version_info, parts | ||
__version__ = "{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
Oops, something went wrong.