Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize package configuration #358

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ docs/build/
*.egg-info/
build/
dist/

# Auto-generated by setup.py
apptools/version.py
16 changes: 0 additions & 16 deletions apptools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +0,0 @@
# (C) Copyright 2005-2024 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The license
# is also available online at http://www.enthought.com/licenses/BSD.txt
#
# Thanks for using Enthought open source!

try:
from apptools.version import version as __version__
except ImportError:
# If we get here, we're using a source tree that hasn't been created via
# the setup script.
__version__ = "unknown"
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
# All configuration values have a default value; values that are commented out
# serve to show the default value.

import apptools
import importlib.metadata

import enthought_sphinx_theme

# General configuration
Expand Down Expand Up @@ -53,7 +54,7 @@

# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
version = release = apptools.__version__
version = release = importlib.metadata.version("apptools")

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down
1 change: 0 additions & 1 deletion etstool.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ def flake8(edm, runtime, environment):
"apptools",
"docs",
"etstool.py",
"setup.py",
"examples",
"integrationtests",
]
Expand Down
53 changes: 52 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
[build-system]
requires = ['setuptools', 'wheel']
requires = ['setuptools']
build-backend = 'setuptools.build_meta'

[project]
name = 'apptools'
version = '5.4.0'
description = 'application tools'
readme = 'README.rst'
requires-python = '>= 3.8'
license = { file = 'LICENSE.txt' }
authors = [{ name = 'Enthought', email = '[email protected]' }]
dependencies = ['traits >= 6.2.0']
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: OS Independent',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
]

[project.optional-dependencies]
docs = ['enthought_sphinx_theme', 'sphinx']
gui = ['pyface', 'traitsui']
# PyTables is currently incompatible with NumPy 2.0
# https://github.com/enthought/apptools/issues/345
h5 = ['numpy < 2.0', 'pandas', 'tables']
persistence = ['numpy < 2.0']
preferences = ['configobj']
test = ["importlib-resources>=1.1.0; python_version<'3.9'"]


[project.urls]
documentation = 'https://docs.enthought.com/apptools'
repository = 'https://github.com/enthought/apptools'
issues = 'https://github.com/enthought/apptools/issues'

[tool.setuptools.packages.find]
include = ['apptools*']

[tool.setuptools.package-data]
apptools = [
'logger/plugin/*.ini',
'logger/plugin/view/images/*.png',
'preferences/tests/*.ini',
]
Loading
Loading