Skip to content

Commit

Permalink
Installable package with pyproject.toml
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit d6469be
Author: vvcb <[email protected]>
Date:   Sun Feb 5 22:51:45 2023 +0000

    Working pyproject.toml setup

commit 523f5e0
Author: vvcb <[email protected]>
Date:   Sun Feb 5 21:52:36 2023 +0000

    Initial commit for pip installer
  • Loading branch information
vvcb committed Feb 5, 2023
1 parent c96b49f commit 8dc40c0
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 21 deletions.
4 changes: 4 additions & 0 deletions avoidable_admissions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from xml.etree.ElementTree import VERSION

from avoidable_admissions import data, features, models, utils, visualization

__all__ = ["data", "features", "models", "utils", "visualization"]

VERSION = "0.1.0"
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "avoidable_admissions"
description = "HDRUK Collaboration on Avoidable Admissions in the NHS"
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
authors = [
{ name = "LTHTR Data Science Team", email = "[email protected]" },
]
dependencies = ["pandas", "pandera", "python-dotenv"]
dynamic = ["version"]

[tool.setuptools]
packages = ["avoidable_admissions"]

[tool.setuptools.dynamic]
version = {attr = "avoidable_admissions.VERSION"}

[project.urls]
Homepage = "https://github.com/LTHTR-DST/hdruk_avoidable_admissions/"
Documentation = "https://lthtr-dst.github.io/hdruk_avoidable_admissions/"

[project.optional-dependencies]
eda = [
"black",
"bokeh",
"holoviews",
"isort",
"jupyterlab_code_formatter",
"jupyterlab",
"seaborn",
]
dev = [
"mkdocs-material",
"mkdocs",
"mkdocstrings-python",
"mkdocstrings",
"nbstripout",
"pre-commit",
]

[tool.isort]
profile = "black"
12 changes: 0 additions & 12 deletions requirements.txt

This file was deleted.

11 changes: 2 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
from setuptools import find_packages, setup
from setuptools import setup

setup(
name="avoidable_admissions",
packages=find_packages(),
version="0.1.0",
description="HDRUK Data Science Collaboration on Avoidable Admissions in the NHS",
author="LTHTR-DST",
license="MIT",
)
setup()

0 comments on commit 8dc40c0

Please sign in to comment.