Skip to content

Commit 25ff20b

Browse files
authored
Merge pull request #2001 from cmu-delphi/revert-1984-1973-clean-up-delphi_utils
Revert "Clean up delphi_utils "
2 parents 13de21a + 526c142 commit 25ff20b

File tree

18 files changed

+65
-81
lines changed

18 files changed

+65
-81
lines changed

.github/workflows/python-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
python-version: 3.8
5353
cache: "pip"
54-
cache-dependency-path: "pyproject.toml"
54+
cache-dependency-path: "setup.py"
5555
- name: Install testing dependencies
5656
run: |
5757
python -m pip install --upgrade pip

_delphi_utils_python/.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ commit = True
44
message = chore: bump delphi_utils to {new_version}
55
tag = False
66

7-
[bumpversion:file:pyproject.toml]
7+
[bumpversion:file:setup.py]
88

99
[bumpversion:file:delphi_utils/__init__.py]

_delphi_utils_python/DEVELOP.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To install the module in your default version of Python, run the
99
following from this directory:
1010

1111
```
12-
pip install -e '.[dev]'
12+
pip install .
1313
```
1414

1515
As described in each of the indicator code directories, you will want to install

_delphi_utils_python/Makefile

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ venv:
66
install: venv
77
. env/bin/activate; \
88
pip install wheel ; \
9-
pip install -e '.[dev]'
9+
pip install -e .
1010

1111
install-ci: venv
1212
. env/bin/activate; \
13-
pip install 'build[virtualenv]' pylint pytest pydocstyle wheel twine ; \
14-
pip install '.[dev]'
13+
pip install wheel ; \
14+
pip install .
1515

1616
lint:
1717
. env/bin/activate; pylint delphi_utils --rcfile=../pyproject.toml
@@ -30,5 +30,4 @@ clean:
3030

3131
release: lint test
3232
. env/bin/activate ; \
33-
pip install 'build[virtualenv]' ; \
34-
python -m build --sdist --wheel
33+
python setup.py sdist bdist_wheel

_delphi_utils_python/pyproject.toml

-60
This file was deleted.

_delphi_utils_python/setup.py

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
from setuptools import setup
2+
from setuptools import find_packages
3+
4+
with open("README.md", "r") as f:
5+
long_description = f.read()
6+
7+
required = [
8+
"boto3",
9+
"covidcast",
10+
"cvxpy",
11+
"scs<3.2.6", # TODO: remove this ; it is a cvxpy dependency, and the excluded version appears to break our jenkins build. see: https://github.com/cvxgrp/scs/issues/283
12+
"darker[isort]~=2.1.1",
13+
"epiweeks",
14+
"freezegun",
15+
"gitpython",
16+
"importlib_resources>=1.3",
17+
"mock",
18+
"moto~=4.2.14",
19+
"numpy",
20+
"pandas>=1.1.0",
21+
"pydocstyle",
22+
"pylint==2.8.3",
23+
"pytest-cov",
24+
"pytest",
25+
"requests-mock",
26+
"slackclient",
27+
"structlog",
28+
"xlrd"
29+
]
30+
31+
setup(
32+
name="delphi_utils",
33+
version="0.3.24",
34+
description="Shared Utility Functions for Indicators",
35+
long_description=long_description,
36+
long_description_content_type="text/markdown",
37+
author="",
38+
author_email="",
39+
url="https://github.com/cmu-delphi/",
40+
install_requires=required,
41+
classifiers=[
42+
"Development Status :: 5 - Production/Stable",
43+
"Intended Audience :: Developers",
44+
"Programming Language :: Python :: 3.8",
45+
],
46+
packages=find_packages(),
47+
package_data={'': ['data/20*/*.csv']}
48+
)

changehc/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

claims_hosp/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

doctor_visits/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

google_symptoms/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

hhs_hosp/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

nchs_mortality/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

nchs_mortality/setup.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
from setuptools import find_packages
33

44
required = [
5-
"boto3",
65
"darker[isort]~=2.1.1",
76
"delphi-utils",
87
"epiweeks",
98
"freezegun",
10-
"moto~=4.2.14",
119
"numpy",
1210
"pandas",
1311
"pydocstyle",

nssp/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

nwss_wastewater/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

quidel_covidtest/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

quidel_covidtest/setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from setuptools import find_packages
33

44
required = [
5-
"boto3",
65
"covidcast",
76
"darker[isort]~=2.1.1",
87
"delphi-utils",

sir_complainsalot/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: venv
1313
install-ci: venv
1414
. env/bin/activate; \
1515
pip install wheel ; \
16-
pip install '../_delphi_utils_python[dev]' ;\
16+
pip install ../_delphi_utils_python ;\
1717
pip install .
1818

1919
lint:

0 commit comments

Comments
 (0)