Skip to content

Commit 1dc5c3d

Browse files
committed
Revert "Updating pyproject.toml and removing reqs"
This reverts commit 7a1b290.
1 parent 7a1b290 commit 1dc5c3d

13 files changed

Lines changed: 117 additions & 84 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
popd
3434
3535
pip install .
36-
pip install ".[dev]"
36+
pip install -r requirements-dev.txt
3737
pip list
3838
- name: Build Docs
3939
run: |

.github/workflows/docs_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
popd
4646
4747
pip install .
48-
pip install ".[dev]"
48+
pip install -r requirements-dev.txt
4949
pip list
5050
- name: Build Docs
5151
run: |

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install dev dependencies
2727
run: |
2828
set -vxeuo pipefail
29-
pip install ".[dev]"
29+
pip install -r requirements-dev.txt
3030
python -m pip list
3131
3232
- name: Run pre-commit

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
5959
pip install --upgrade pip
6060
pip install .
61-
pip install ".[dev]"
61+
pip install -r requirements-dev.txt
6262
# pip install "pydantic${{ matrix.pydantic-version }}"
6363
# pip install bluesky==1.11.0
6464

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ include AUTHORS.rst
22
include CONTRIBUTING.rst
33
include LICENSE
44
include README.rst
5+
include requirements.txt
6+
57
include bluesky_httpserver/database/alembic.ini.template
68
include bluesky_httpserver/database/migrations/env.py
79
include bluesky_httpserver/database/migrations/script.py.mako

continuous_integration/dockerfiles/test.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313

1414
WORKDIR /workspace
1515

16+
COPY requirements.txt requirements-dev.txt ./
1617
COPY pyproject.toml setup.py setup.cfg MANIFEST.in versioneer.py README.rst AUTHORS.rst LICENSE ./
1718
COPY bluesky_httpserver ./bluesky_httpserver
1819

1920
RUN python -m pip install --upgrade pip setuptools wheel numpy && \
2021
python -m pip install git+https://github.com/bluesky/bluesky-queueserver.git && \
2122
python -m pip install git+https://github.com/bluesky/bluesky-queueserver-api.git && \
22-
python -m pip install ".[dev]"
23+
python -m pip install -r requirements-dev.txt && \
24+
python -m pip install .
2325

2426
COPY scripts/docker/run_shard_in_container.sh /usr/local/bin/run_shard_in_container.sh
2527
RUN chmod +x /usr/local/bin/run_shard_in_container.sh

docs/source/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Install the HTTP Server in editable mode::
9898

9999
Install development dependencies::
100100

101-
$ pip install -e ".[dev]"
101+
$ pip install -r requirements-dev.txt
102102

103103

104104
Setting up `pre-commit`

pyproject.toml

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,3 @@
1-
[build-system]
2-
requires = ["setuptools>=64", "wheel"]
3-
build-backend = "setuptools.build_meta"
4-
5-
[project]
6-
name = "bluesky-httpserver"
7-
dynamic = ["version"]
8-
description = "HTTP Server for communicating with Bluesky Queue Server"
9-
readme = "README.rst"
10-
requires-python = ">=3.7"
11-
license = "BSD-3-Clause"
12-
authors = [{ name = "Brookhaven National Laboratory" }]
13-
classifiers = [
14-
"Development Status :: 2 - Pre-Alpha",
15-
"Natural Language :: English",
16-
"Programming Language :: Python :: 3",
17-
]
18-
dependencies = [
19-
"alembic",
20-
"bluesky-queueserver",
21-
"bluesky-queueserver-api",
22-
"cachetools",
23-
"fastapi",
24-
"httpx",
25-
"ldap3",
26-
"orjson",
27-
"pamela",
28-
"pydantic",
29-
"pydantic-settings",
30-
"python-jose",
31-
"pyzmq",
32-
"sqlalchemy",
33-
"starlette",
34-
"typing-extensions; python_version < '3.8'",
35-
"uvicorn",
36-
]
37-
38-
[project.optional-dependencies]
39-
dev = [
40-
"black",
41-
"codecov",
42-
"coverage",
43-
"cryptography",
44-
"fastapi[all]",
45-
"flake8",
46-
"ipython",
47-
"isort",
48-
"matplotlib",
49-
"numpydoc",
50-
"pandas",
51-
"pre-commit",
52-
"py",
53-
"pytest",
54-
"pytest-asyncio",
55-
"pytest-xprocess",
56-
"requests",
57-
"respx",
58-
"sphinx",
59-
"sphinx_rtd_theme",
60-
]
61-
62-
[project.scripts]
63-
start-bluesky-httpserver = "bluesky_httpserver.server:start_server"
64-
65-
[tool.setuptools]
66-
include-package-data = true
67-
68-
[tool.setuptools.packages.find]
69-
exclude = ["docs", "tests"]
70-
71-
[tool.setuptools.dynamic]
72-
version = { attr = "bluesky_httpserver.__version__" }
73-
741
[tool.black]
752
line-length = 115
763
target-version = ['py37']

requirements-dev.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# These are required for developing the package (running the tests, building
2+
# the documentation) but not necessarily required for _using_ it.
3+
black
4+
codecov
5+
coverage
6+
cryptography
7+
fastapi[all]
8+
flake8
9+
isort
10+
pre-commit
11+
pytest
12+
pytest-asyncio
13+
pytest-xprocess
14+
py
15+
respx
16+
sphinx
17+
ipython
18+
numpydoc
19+
matplotlib
20+
pandas
21+
sphinx
22+
sphinx_rtd_theme
23+
requests

requirements.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
alembic
2+
bluesky-queueserver
3+
bluesky-queueserver-api
4+
cachetools
5+
fastapi
6+
httpx
7+
ldap3
8+
orjson
9+
pamela
10+
pydantic
11+
pydantic-settings
12+
python-jose
13+
pyzmq
14+
sqlalchemy
15+
starlette
16+
typing-extensions;python_version<'3.8'
17+
uvicorn

0 commit comments

Comments
 (0)