We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09b0caf + 38cc72f commit 165fd92Copy full SHA for 165fd92
5 files changed
.travis.yml
@@ -1,10 +1,11 @@
1
language: python
2
python:
3
- - '3.5'
+ - '3.7'
4
+ - '3.8'
5
install:
6
- pip install -r requirements.txt
- - pip install .
7
+ - pip install '.[all]'
8
- pip install pyflakes
9
script:
10
- pyflakes smart_fact_crawler
- - python setup.py test
11
+ - pytest
MANIFEST.in
@@ -0,0 +1 @@
+graft smart_fact_crawler/resources
pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["setuptools >= 40.6.0", "wheel"]
+build-backend = "setuptools.build_meta"
setup.py
@@ -1,5 +1,11 @@
from setuptools import setup
+extras_require = {
+ "tests": ['pytest>=3.0', 'freezegun'],
+}
+extras_require['all'] = extras_require['tests']
+
setup(
name='smart_fact_crawler',
@@ -12,16 +18,13 @@
12
18
packages=[
13
19
'smart_fact_crawler',
14
20
],
15
- package_data={
16
- 'smart_fact_crawler': [
17
- 'resources/20160703_233149/*.data',
- 'resources/20160703_233149_broken_fsc/fsc.data',
- ]
- },
21
install_requires=[
22
'requests',
23
24
- tests_require=['pytest>=3.0', 'freezegun'],
25
- setup_requires=['pytest-runner'],
26
- zip_safe=True,
+ include_package_data=True,
+ package_data={
+ 'smart_fact_crawler': ['resources/*'],
27
+ },
28
+ extras_require=extras_require,
29
+ zip_safe=False,
30
)
smart_fact_crawler/__init__.py
@@ -245,7 +245,7 @@ def status(url=None, timeout=None, fallback=False):
245
storage_newdaq = Quantity(s2f(value), unit)
246
247
value, unit = get(table, 32, 1, default='nan nan').split(' ')[:2]
248
- storage_daq = Quantity(s2f(value), unit)
+ storage_newdata = Quantity(s2f(value), unit)
249
250
return to_namedtuple('StatusPage', {
251
'timestamp': sft2dt(get(table, 0, 0)),
@@ -280,7 +280,7 @@ def status(url=None, timeout=None, fallback=False):
280
'chat_server': get(table, 29, 1),
281
'skype_client': get(table, 30, 1),
282
'free_space_newdaq': storage_newdaq,
283
- 'free_space_daq': storage_daq,
+ 'free_space_newdata': storage_newdata,
284
'smartfact_runtime': get(table, 33, 1),
285
})
286
0 commit comments