Skip to content

Commit d5d36da

Browse files
authored
Merge pull request #13 from antoniojbt/codex/review-project-for-improvements-and-updates
Modernize packaging
2 parents 494de57 + 27ed0ce commit d5d36da

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Please raise an issue if you have problems.
108108
Dependencies
109109
============
110110

111-
- Python >3.5
111+
- Python >=3.8
112112
- If you run the examples option you will need many more tools. See
113113
the Dockerfiles included for specific instructions.
114114

project_quickstart/__init__.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# Python 2 to 3 changed the use of __init__.py
2-
# To avoid namespace problems use this for 2 and 3 compatibility
3-
# https://packaging.python.org/namespace_packages/?highlight=__init__
4-
# Otherwise omit __init__.py entirely unless you have sub-packages
1+
"""project_quickstart package."""
52

6-
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
3+
from .version import set_version
74

8-
# from .project_quickstart import project_quickstart
9-
# from .project_quickstart import projectQuickstart
5+
__all__ = ["__version__"]
6+
7+
__version__ = set_version()

project_quickstart/version.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
def set_version():
2-
__version__ = '0.3.7'
3-
return(__version__)
2+
"""Return the current package version."""
3+
4+
__version__ = "0.3.8"
5+
return __version__

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[build-system]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "project_quickstart"
7+
version = "0.3.8"
8+
description = "Boilerplate tools and templates for setting up a data analysis project."
9+
readme = "README.rst"
10+
requires-python = ">=3.8"
11+
dependencies = ["docopt"]
12+
license = {file = "LICENSE"}
13+

0 commit comments

Comments
 (0)