Skip to content

Commit

Permalink
Update package build
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed Mar 1, 2024
1 parent 0fc0402 commit 5253ef1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
25 changes: 9 additions & 16 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
include setup.py
include README.md
include LICENSE
include *.txt
include MANIFEST.in

# All source files
recursive-include rdatasets *

# Add build and testing tools
include pytest.ini

# Exclude what we don't want to include
prune build
prune dist
prune doc/build
prune util
prune */__pycache__
prune rdatasets_orig
prune convertCSVtoPickle.py
prune convertHTMLtoPickle.py

global-exclude *.py[cod] *.egg *.egg-info
global-exclude *~ *.bak *.swp
exclude .gitignore
exclude .gitmodules
exclude .pre-commit-config.yaml
exclude .flake8
recursive-exclude */__pycache__
recursive-exclude * *.py[co]
prune rdatasets_orig/
exclude convertCSVtoPickle.py
exclude convertHTMLtoPickle.py
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
requires = ["setuptools >=61", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
Expand Down Expand Up @@ -40,7 +40,6 @@ classifiers=[
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
]

dynamic=["version"]

[tool.setuptools_scm]
Expand Down
15 changes: 14 additions & 1 deletion rdatasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,17 @@
from .rdatasets import data, descr, get_data_path, items, packages, summary


__all__ = ['packages', 'items', 'data', 'get_data_path', 'descr', 'summary']
__all__ = [
'packages',
'items',
'data',
'get_data_path',
'descr',
'summary',
'__version__',
]

try:
from ._version import version as __version__
except ImportError:
__version__ = "unknown"

0 comments on commit 5253ef1

Please sign in to comment.