Skip to content

Commit

Permalink
Enable installation with setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bickel committed Nov 26, 2024
1 parent 218147e commit 86af0f4
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 8 deletions.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
PACKAGE_NAME = entry_cli

.PHONY: init install uninstall test

init:
conda env create -f environment.yml

install:
pip install --upgrade pip setuptools
pip install -e .

test:
nosetests tests

.PHONY: init test
uninstall:
pip uninstall -y $(PACKAGE_NAME)
13 changes: 6 additions & 7 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: entry-cli-env
channels:
- rdkit
- conda-forge
- defaults
dependencies:
- python
- numpy
- nose
- openbabel=3.1.1
- rdkit=2019.03.4.0
- python=3.7
- numpy
- nose
- conda-forge::openbabel=3.1.1
- rdkit::rdkit=2019.03.4.0
- setuptools
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "entry-cli"
description = "Command line app for predicting bacterial accumulation."
dynamic = ["version"]
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
authors = [
{name = "Bryon Drown"},
{name = "swansonk14", email = "[email protected]"},
{name = "Andrew Wilkinson"}
]
requires-python = ">= 3"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
keywords = []

[project.urls]
Repository = "https://github.com/HergenrotherLab/entry-cli"

[project.scripts]
entry-cli = "entry_cli.calc_props:main"

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

[tool.setuptools.dynamic]
version = {attr = "entry_cli.__version__"}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ nose
numpy
openbabel=3.1.1
rdkit=2019.03.4.0
setuptools

0 comments on commit 86af0f4

Please sign in to comment.