Skip to content

Commit 9db6fd0

Browse files
committed
remove unnecessary dependencies
1 parent 61c08bc commit 9db6fd0

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](./LICENSE)
2+
3+
# CIFTools Python
4+
5+
A library for reading and writing (Binary)CIF files in Python.
6+
17
## Linting
28

39
```

‎ciftools/cif_format/binary/column_types/undefined_cif_column.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
from __future__ importannotations# supposed to be in python 3.10 but reverted; maybe in python 3.11?
2-
31
fromciftools.cif_format.baseimportCIFColumnBase
42
fromciftools.cif_format.value_presenceimportValuePresenceEnum
5-
frompydanticimportBaseModel
63

74

8-
classUndefinedCIFColumn(CIFColumnBase, BaseModel):
5+
classUndefinedCIFColumn(CIFColumnBase):
96
defis_defined(self) ->bool:
107
returnFalse
118

‎requirements.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy>=1.11.1
2+
msgpack>=1.0.3

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
author_email="[email protected]",
99
description="A library for handling (Binary)CIF files.",
1010
packages=["ciftools"],
11-
install_requires=["numpy >= 1.11.1", "msgpack >= 1.0.3", "requests >= 2.27.1", "pydantic >= 1.9.0"],
11+
install_requires=["numpy >= 1.11.1", "msgpack >= 1.0.3"],
1212
)

‎tests/_decoding.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
importunittest
2+
importurllib.request
23

34
importmsgpack
4-
importrequests
5+
56
fromciftools.cif_format.binary.fileimportBinaryCIFFile
67
fromciftools.cif_format.value_presenceimportValuePresenceEnum
78

@@ -11,7 +12,7 @@ def test(self):
1112
# TODO: set assert expectations
1213

1314
print("mmCIF test")
14-
data=requests.get("https://models.rcsb.org/1tqn.bcif").content
15+
data=urllib.request.urlopen("https://models.rcsb.org/1tqn.bcif").read()
1516
parsed=BinaryCIFFile.loads(data, lazy=False)
1617

1718
atom_site=parsed["1TQN"].atom_site
@@ -32,9 +33,9 @@ def test(self):
3233
# print([[f"_{c.name}.{f}" for f in c.field_names] for c in parsed[0].categories.values()])
3334

3435
print("Volume Data test")
35-
data=requests.get(
36+
data=urllib.request.urlopen(
3637
"https://ds.litemol.org/x-ray/1tqn/box/-22.367,-33.367,-21.634/-7.106,-10.042,-0.937?detail=1"
37-
).content
38+
).read()
3839
parsed=BinaryCIFFile.loads(msgpack.loads(data))
3940

4041
print([b.headerforbinparsed.data_blocks])

0 commit comments

Comments
(0)